Bug 354 - The robot player may pass his round when he is the first player or no one wins his previous poker hand.
Summary: The robot player may pass his round when he is the first player or no one win...
Status: RESOLVED FIXED
Alias: None
Product: Group 8 (2019)
Classification: Unclassified
Component: Player (show other bugs)
Version: Version1.0
Hardware: PC Windows
: --- major
Assignee: ZLQ
URL:
Depends on:
Blocks:
 
Reported: 2019-12-05 14:53 HKT by SYR
Modified: 2019-12-05 14:56 HKT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SYR 2019-12-05 14:53:08 HKT
Steps to Reproduce:
1. Let the robot player be the first player.
2. You may need to run the program for several times. 

Expected Result:
The robot player should always play a poker hand.

Actual Result:
The robot player may pass his round.

More Information:
Check whether the previous poker hand is null, if so, just return any valid card combination instead of using the randomized algorithm.
Comment 1 ZLQ 2019-12-05 14:56:17 HKT
Thanks for reminding me. 
We add codes to check whether the current player has to play a poker hand in the RobotPlayer.play() methods. 
The problem has been fixed.