The game in action

If you were successful in building the project, you should be able to run it by selecting Tasks | Run Task... from the VS Code menu and selecting the Start Executable task from the list. If everything was successful, you should see something like this:

Compiled game running natively

Our version of the game doesn't have a losing condition; it just increments the ROWS count by one for each row you clear. If one of the Tetriminos touches the top of the board, the game is over and the board resets. It's a rudimentary implementation of the game, but additional features increase the complexity and amount of code required. Let's review the code base in more detail.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset