| Summary: | compareTo() return wrong result | ||
|---|---|---|---|
| Product: | Bro_Doudizhu | Reporter: | chaohuili0627 |
| Component: | entities | Assignee: | 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
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. |