Bug 330 - Wrong output from the Hand.toString() method
Summary: Wrong output from the Hand.toString() method
Status: CONFIRMED
Alias: None
Product: Bro_Doudizhu
Classification: Unclassified
Component: entities (show other bugs)
Version: v_1.0
Hardware: PC Windows
: --- enhancement
Assignee: chunxiaye2-c
URL:
Depends on:
Blocks:
 
Reported: 2019-12-02 22:19 HKT by chunxiaye2-c
Modified: 2019-12-02 22:20 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 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.