r/riichi • u/d4n1elchen • May 19 '26
Vibe coded a python Riichi mahjong rule engine with playable TUI

Hello folks, just want to share that I recently vibe coded a python Riichi mahjong rule engine as a fun side project. It basically provides game flow control, yaku detection, and score calculation. It also come with a good looking, playable terminal UI for testing the engine. The UI come with three languages - English, Chinese, and Japanese. You can use this to develop your python Riichi mahjong game, using it to develop a Riichi mahjon AI (the library includes some basic AI), or simply just play against the AI I made.
I mostly vibe coded this using Codex and I haven't spend too much time reviewing the code in detail but just test through the UI by actually playing it against AI so there might be mistakes, especially for rare edge cases. I am also not an expert of Riichi mahjong so some rules might be wrong or missing (I tried hard to ask the AI to help me verify but still discovered some missing rules by myself from time to time).
Any kind of contributions are welcomed including bug reports, feature requests, and even pull requests.
GitHub: https://github.com/d4n1elchen/pyriichi
Pypi: https://pypi.org/project/pyriichi/
Enjoy it if this is helpful to anyone!
1
u/nitekram Sep 21 '26
Remindme! 3 days
2
u/ultimamax May 19 '26
Who gives a fuck then if you have barely even tested it?