Ron/Tsumo/Riichi calls (V2) #9
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Baplar/ResoniteMahjong#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Computing shanten is expensive, and counting yaku somewhat as well.
Ron/Tsumo (V3?)to Ron/Tsumo (V2)Ron/Tsumo (V2)to Ron/Tsumo/Riichi calls (V2)Inspiration: https://github.com/MahjongRepository/mahjong/blob/master/mahjong/shanten.py
Need to adapt it so that when the hand is tenpai, we also return the isolated tiles to discard with a 3n+2 hand, and the winning tiles with a 3n+1 hand (isolated + pairs if there are 2 pairs + both sides of tatsu first + middle of tatsu second)
Once that is done, we can run https://github.com/MahjongRepository/mahjong/blob/master/mahjong/hand_calculating/hand.py for each possible winning tile to check for invalid hands eg no yaku.