Bug 794

Summary: Bug logic with card type number
Product: .CS3343 Group2 2324A Uno Game Reporter: pybehardi2-c
Component: CardAssignee: tinloklee2-c
Status: RESOLVED FIXED    
Severity: major CC: kaiskafel2-c
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
Attachments: The current card is GREEN 9, and user played RED 0 which shouldn't be possible

Description pybehardi2-c 2023-11-28 21:36:35 HKT
Created attachment 153 [details]
The current card is GREEN 9, and user played RED 0 which shouldn't be possible

When the current card is a number card, if the next card played is also a number card, the system must check both its colour and number to check if it is valid. However, when the next number card has a different colour and number, the system thinks it is a valid card.

Steps to reproduce:
1. Run the main function
2. Play the game until it is the user's turn, and the current card is a number card
3. Play a number card which has a different colour and number than the current card

Expected result: the game declines the new card and asks the user to input again

Actual result: the game accepts the new card, and it is the next player's turn