Mahjong4RL is a project that recreates the game of Japanese Mahjong and use deep reinforcement learning to play it.
Japanese Mahjong, or Riichi Mahjong, is a variation of mahjong. While the basic rules to the game are retained, the variation emphasizes on player's menzenchin and features a unique set of rules such as riichi and doras.
We aim to create a game system of Japanese Mahjong from scratch. We will be implementing this paper afterwards.
from mahjong.game import Game
names = ['Kelly', 'Leo', 'Ball', 'Hao']
game = Game(names)
game.start_game()
can add your own config json file to configs/
and change the following in python to use your config file
game = Game(names, YOUR_CONFIG_FILE_NAME)
available input: "inquirer" or "raw_input"
python -m unittest