Just for the record, you implemented shangai not mahjong. Your game uses mahjong tile but not the rules from mahjong.
Reading the title I was hoping for true mahjong :(
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Mahjong algorythms are hard as hell. I tried to think about ways to implement some parts of mahjong riichi many times but detecting valid hands is hard.
Your half right. Mahjong solitaire is a correct name too http://en.wikipedia.org/wiki/Mahjong_solitaire.Doing a (not solitaire) mahjong would be amazing, maybe next hackathon? :)
--