Bug 795 - Cannot play any cards as user since play command doesn't work
Summary: Cannot play any cards as user since play command doesn't work
Status: RESOLVED FIXED
Alias: None
Product: .CS3343 Group2 2324A Uno Game
Classification: Unclassified
Component: Cmd (show other bugs)
Version: unspecified
Hardware: PC Windows
: Highest blocker
Assignee: tinloklee2-c
URL:
Depends on:
Blocks:
 
Reported: 2023-11-28 21:52 HKT by pybehardi2-c
Modified: 2023-12-07 22:18 HKT (History)
0 users

See Also:


Attachments
The user input "play 3" which should be a valid input, but instead system outputs "incorrect command" (10.60 KB, image/png)
2023-11-28 21:52 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-11-28 21:52:48 HKT
Created attachment 154 [details]
The user input "play 3" which should be a valid input, but instead system outputs "incorrect command"

The user cannot play any card. Each time the user writes a command to play a card, the system thinks it is an incorrect command and prompts the user to input again. Users can still write a command to draw a card.

Steps to reproduce:
1. Run the main function
2. Play the game until it is the user's turn
3. Write a play command to the console, such as "play 1"

Expected result: the system accepts the input, and decides if the card that the player wants to play is compatible with the current card

Actual result: the system accepts the input, and outputs "incorrect command"
Comment 1 tinloklee2-c 2023-12-07 22:18:14 HKT
This bug was caused by a validation issue. It is fixed now.