Bug 335 - Stright of Single detected as illigeal handtype
Summary: Stright of Single detected as illigeal handtype
Status: CONFIRMED
Alias: None
Product: Bro_Doudizhu
Classification: Unclassified
Component: entities (show other bugs)
Version: v_1.0
Hardware: PC Windows
: High enhancement
Deadline: 2019-11-21
Assignee: patrick123huang
URL:
Depends on:
Blocks:
 
Reported: 2019-12-04 12:06 HKT by Xiong Alex
Modified: 2019-12-04 12:11 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!!