Based on 2048 games WIN32 API programming interface implemented

Game features

  1. Countdown

The game has a  15 Fenzhong  countdown, players need to complete the game within the specified time (ie consolidated figures for the 2048 box)

  1. Box appears Rules

In the game, the box appears completely random, it appears only in the empty squares in. When a block occurs, the digital block with a  90%  chance of 2,  a 10%  chance of 4

When the game starts, will be randomly selected from the two blocks into squares with numbers in all the empty squares in the block numbers in accordance with the above rules

After each move the player, will add a box on the board, the rules described above

  1. Box merger rules

Two identical block numbers to merge, generate a number twice the combined original block

  1. Scoring rules

Players score points only occur after block the merger, the combined players will get the box score for the new generation of digital

  1. Game over rule

The following situations will make the end of the game:

  1. Countdown

Combined to give figures for the 2048 box

Chessboard are full, you can not add new box, and the player can not carry out any operation to move the board to add a vacancy

https://write-bug.com/upload/image/43/4a801280f2cbd48195db401c4cb6a3f7.PNGhttps://write-bug.com/upload/image/43/c9eb9f8218b87755f10c8ee2958a220c.PNG

Click here to download the source code and documentation

Guess you like

Origin blog.csdn.net/demongwc/article/details/84566551