Bug 335

Summary: Stright of Single detected as illigeal handtype
Product: Bro_Doudizhu Reporter: Xiong Alex <yifaxiong3-c>
Component: entitiesAssignee: patrick123huang
Status: CONFIRMED ---    
Severity: enhancement    
Priority: High    
Version: v_1.0   
Hardware: PC   
OS: Windows   
Deadline: 2019-11-21   

Description Xiong Alex 2019-12-04 12:06:58 HKT
some correct Stright of Single will be spread into invalid hand(ILLEGAL), like 3,4,5,6,7,7 with be cut into 3,4,5,6 and 7,7. There's must be something wrong with the spreadCard() function.

Step to reproduce:
-Run landload.java
-stat game with single-player mode
-after election, input a card like 3
-check the cards and Handlist of robot
Except result: If there is SOS, we can find it in handlist and there's no Illegal hand.
Actual result: There's illegal hand which is a SOS with 4 cards.
Comment 1 Xiong Alex 2019-12-04 12:10:04 HKT
wrong defined in speardCard(), only add (length-1) cards of SOS into HandList. Have modified the code and bug fixed. COOL!!