This is simple bot for the popular riichi mahjong server tenhou.net.
For now only Python 3.5 is supported.
- Install VirtualBox
- Install Vagrant
- Run
vagrant up. It will take a while, also it will ask your system root password to setup NFS - Run
vagrant ssh - Run
python main.pyit will connect to the tenhou.net and will play a match. After the end of match it will close connection to the server
- Put your own settings to the
project/settings_local.pyfile. They will override settings from defaultsettings.pyfile - Also you can override some default settings with command argument. Use
python main.py -hto check all available commands
Current version played 335 games (hanchans) and achieved only first dan on the tenhou (and lost it later, and achieved it again...)
| Result | |
|---|---|
| Average position | 2.78 |
| Win rate | 20.73% |
| Feed rate | 19.40% |
| Riichi rate | 36.17% |
So, even with current simple logic it can play and win.