Bug 354

Summary: The robot player may pass his round when he is the first player or no one wins his previous poker hand.
Product: Group 8 (2019) Reporter: SYR <yuransun2-c>
Component: PlayerAssignee: ZLQ <leqizheng2-c>
Status: RESOLVED FIXED    
Severity: major CC: leqizheng2-c, yanglou3-c
Priority: ---    
Version: Version1.0   
Hardware: PC   
OS: Windows   

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.