Skip to content

rasca0027/Mahjong4RL

Mahjong4RL 🀄

Mahjong MIT license PR closed hacktoberfest

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.

🚀 Usage

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"

👀 Run Tests

python -m unittest

📝 Documentation and TODOs

👤 Author

📄 License

MIT

About

Mahjong4RL is a project that recreates the game of Japanese Mahjong and use deep reinforcement learning to play it.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages