Bug 330

Summary: Wrong output from the Hand.toString() method
Product: Bro_Doudizhu Reporter: chunxiaye2-c
Component: entitiesAssignee: chunxiaye2-c
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: v_1.0   
Hardware: PC   
OS: Windows   

Description chunxiaye2-c 2019-12-02 22:19:42 HKT
Precondition:
List<Card> cards = Arrays.asList(c[5], c[5], c[5], c[5], c[3], c[4]);
Hand h = Hand.cards2hand(cards);

When the Hand object h is instantiated as above, the toString() method of h is expected to return String("QUAD 5 Kickers: SOLO 3 SOLO 4 1\n"). However, the method returns String("QUAD 5 Kickers: SOLO 3 1\n"), which misses the partial kicker information.

The bug can be reproduced in the case that kicker of a Hand object exists and the length of the kicker is larger than 1.