Bug 301

Summary: compareTo() return wrong result
Product: Bro_Doudizhu Reporter: chaohuili0627
Component: entitiesAssignee: chaohuili0627
Status: RESOLVED FIXED    
Severity: critical    
Priority: High    
Version: v_1.0   
Hardware: PC   
OS: Windows   

Description chaohuili0627 2019-11-02 23:17:15 HKT
3 4 5 or 33 44 can be played while cardToHand() returns Illegal. There may be some logical errors in compareTo() in Hand.java
Comment 1 chaohuili0627 2019-11-10 11:22:29 HKT
There were some logic problems in Card.compareTo() because of its complex logic flow. The bug has been well fixed by combining compareTo() and isSameCatogory() and defining the return type as boolean.