Bug 824

Summary: Cannot play a wild card
Product: .CS3343 Group2 2324A Uno Game Reporter: pybehardi2-c
Component: CmdAssignee: tinloklee2-c
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
Attachments: User played the wild card which should be playable, but the system marks it as unplayable

Description pybehardi2-c 2023-12-08 23:57:54 HKT
Created attachment 168 [details]
User played the wild card which should be playable, but the system marks it as unplayable

In the current player's hand, there is a wild card, and every time the player tries to play the wild card, the system thinks that the card is unplayable even though a wild card WILL ALWAYS BE PLAYABLE

Steps to reproduce:
1. Run the main function
2. Play the game until it is the user's turn, and until the user has a WILD_CARD in its deck
3. Write a play command and the WILD_CARD number to select the wild card as the card to be played

Expected result: the system sees that the card being played is a WILD_CARD and will mark the card as playable

Actual result: the system marks the played card as unplayable and asks the user to input another command
Comment 1 tinloklee2-c 2023-12-09 00:10:28 HKT
This bug cannot be reproduced on my PC. Can you provide more details?
Comment 2 tinloklee2-c 2023-12-09 00:27:10 HKT
This bug has been resolved. It was caused by an incorrect implementation of the colour validation method. Thank you for reporting.