Bug 331 - Player cannot play out a QUAD with a PAIR as kicker
Summary: Player cannot play out a QUAD with a PAIR as kicker
Status: RESOLVED FIXED
Alias: None
Product: Bro_Doudizhu
Classification: Unclassified
Component: entities (show other bugs)
Version: v_1.0
Hardware: PC Windows
: --- critical
Assignee: chunxiaye2-c
URL:
Depends on:
Blocks:
 
Reported: 2019-12-03 14:53 HKT by chunxiaye2-c
Modified: 2019-12-09 15:08 HKT (History)
1 user (show)

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-03 14:53:04 HKT
Precondition:
The player wants to play out the hand that is a QUAD with a PAIR as kicker, e.g. 3333 + 44

The cards2hand() method inside the Hand class judges this hand as ILLEGAL. However, according to the rule of the game, this is a valid hand. The bug is reproducible simply by playing out a a QUAD with a PAIR as kicker on the terminal.
Comment 1 chunxiaye2-c 2019-12-05 10:44:40 HKT
Inside Hand.carsd2Hand() method, this situation was neglected and such that was judged as Illegal.