 # Cock-eyed Mahjong (Riichi Mahjong) #### Application for simulating, analyzing, and playing [Three-Player mahjong](https://corp.mahjongclub.com/3-player-riichi). #### Example ------- For an example of the mahjong application and AI visit [http://gleitzman.com/apps/mahjong](http://gleitzman.com/apps/mahjong). Usage ----- Install dependencies with `npm update`. Start the application with node app.js Then visit [http://localhost:3000](http://localhost:3000). To analyze a hand visit [http://localhost:3000/analyze/1p 123456789s BGR9](http://localhost:3000/analyze/1p%20123456789s%20BGR9). Development ------ `sudo docker run -d --restart unless-stopped -p 27027-27029:27017-27019 --name mongodb-2.6.12 mongo:2.6.12` Install dev dependencies with `npm install` and start the application with `grunt`. Author ------ - Benjamin Gleitzman ([@gleitz](http://github.com/gleitz)) Notes ----- - Special thanks to Sebastian Heuchler for shanten calculation.