collin/mahjong
f8f3a70cc3230505e3d54515563a240cf218a4e7 / TODO.md
| 1 | # TODO |
| 2 | |
| 3 | Ordered by how much they'd matter at a real table. |
| 4 | |
| 5 | ## 1. Undo across a hand boundary |
| 6 | |
| 7 | `undo()` is cleared by `startHand`, so a 下一局 tapped by mistake — and that |
| 8 | button sits right under someone's thumb — cannot be taken back. The deal is |
| 9 | already reshuffled by then. Would need the snapshot from before `nextHand` kept, |
| 10 | and the seed recorded, so the same wall could be rebuilt. |
| 11 | |
| 12 | ## 2. Settings mid-game |
| 13 | |
| 14 | 設定 is reachable from the lobby and the game-over panel, but not during a 將, so |
| 15 | a player who wants to fix a typo'd name has to wait it out. The `?` panel is |
| 16 | already anchored per-seat and rotated to face its own edge; settings could share |
| 17 | that treatment. |
| 18 | |
| 19 | ## 3. 花槓 and other flower house rules |
| 20 | |
| 21 | Flowers score, but some tables pay 花槓 out the moment it completes rather than |
| 22 | at settlement, and some deal 補花 differently at the start. Both are `Rules` |
| 23 | flags plus a payment hook. |