Skip to content

Simple bot for tenhou.net riichi mahjong server written in Python

Notifications You must be signed in to change notification settings

ruaruagerry/tenhou-python-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

What is it?

This is simple bot for the popular riichi mahjong server tenhou.net.

For now only Python 3.5 is supported.

How to run it?

  1. Install VirtualBox
  2. Install Vagrant
  3. Run vagrant up. It will take a while, also it will ask your system root password to setup NFS
  4. Run vagrant ssh
  5. Run python main.py it will connect to the tenhou.net and will play a match. After the end of match it will close connection to the server

Configuration instructions

  1. Put your own settings to the project/settings_local.py file. They will override settings from default settings.py file
  2. Also you can override some default settings with command argument. Use python main.py -h to check all available commands

Main information about bot AI

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.

About

Simple bot for tenhou.net riichi mahjong server written in Python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.7%
  • Shell 1.3%