Bug 825

Summary: When a bot has 2 cards left and it plays a card, there is a bug with the saying "Uno" system
Product: .CS3343 Group2 2324A Uno Game Reporter: pybehardi2-c
Component: GameAssignee: tinloklee2-c
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
Attachments: The bot only has 2 cards left so when it plays a card, it says "UNO" but the system thinks it is an incorrect command

Description pybehardi2-c 2023-12-09 00:11:07 HKT
Created attachment 169 [details]
The bot only has 2 cards left so when it plays a card, it says "UNO" but the system thinks it is an incorrect command

When a bot has 2 cards left and plays a playable card, and the bot says "UNO", there is a bug in the system where it thinks the command is incorrect.

It seemed like the bot also said "UNO" twice instead of once, which may be the cause of the problem.

Steps to reproduce:
1. Run the main function
2. Play the game until a bot has 2 cards left, and at least one of its cards is a playable card, and the bot says "UNO"

Expected result: the bot plays the card, the system accepts the card, the bot only has 1 card left, and the game continues like normal

Actual result: The system thinks the command is incorrect and again asks the bot for its action. This happened until, eventually the bot didn't say "UNO", and then the game continued like normal.
Comment 1 tinloklee2-c 2023-12-09 00:25:58 HKT
This issue has been resolved. The bug was caused by an incorrect implementation of the cmd validation system. Thanks for reporting.