Bug 824 - Cannot play a wild card
Summary: Cannot play a wild card
Status: RESOLVED FIXED
Alias: None
Product: .CS3343 Group2 2324A Uno Game
Classification: Unclassified
Component: Cmd (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: tinloklee2-c
URL:
Depends on:
Blocks:
 
Reported: 2023-12-08 23:57 HKT by pybehardi2-c
Modified: 2023-12-09 00:27 HKT (History)
0 users

See Also:


Attachments
User played the wild card which should be playable, but the system marks it as unplayable (13.31 KB, image/png)
2023-12-08 23:57 HKT, pybehardi2-c
Details

Note You need to log in before you can comment on or make changes to this bug.
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.