This is a simple implementation of a Mahjong Riichi game. The game allows players to play Mahjong Riichi with basic rules and functionalities. For now, the game supports one-player mode against AI opponents.
- AI uses either tile efficiency or Deep CNN to make decisions.
- Basic game follows Mahjong Riichi rules strictly: Hanchan, 4 players, Akadora, Open tanyao (半荘喰断アリアリ赤).
- Graphical User Interface (GUI) using Pygame.
- Tile animations for discarding tiles.
- Player interactions for calling tiles (Chi, Pon, Minkan/Ankan/Chakan, Ron, Tsumo, Ryuukyoku).
npm run setup to download all neccessary packages
-
For normal gameplay:
python main.pyornpm startto start the game. -
Optional argv:
debug- to reveal all players hand and draw hitboxdata=<data_file.json>- to input predefine data for testing each edge case, some data may not be the same because of latest bots' AI update.
- Python 3.13+
pygamenumpytorchmahjong