How to implement mahjong?

Mahjong is one of the most popular games in Asia (not the solitaire style found in Windows 7). There have been many Mahjong games, including online from Yahoo or offline back in DOS days!

Another day I thought to myself: how can I write one (excluding the GUI)?

The data modeling part is simple.

Rules for winning and scoring ... match patterns?

The strategic part of the game, such as determining which tiles to throw and when to make Chow or Pong choirs, is the hardest part. How to implement this?

Thank!

Study:

+5
source share
1 answer

All Articles