We have generated a framework for the application with the Application Wizard.
We added the classes Square and ColorGrid that keep track of the game grid.
We defined the document class. It holds the data of the game and keeps track of when the game is over.
We defined the view class, it accepts keyboard input and draws the figures and the game grid.
The
Figure
class manages a single figure, it keeps track of its position and decides whether it is valid to move it into another position.The
Figure
info files store information of the seven kinds of figures.
Microsoft Visual C++ Windows Applications by Example
By :
Microsoft Visual C++ Windows Applications by Example
By:
Overview of this book
Table of Contents (15 chapters)
Microsoft Visual C++ Windows Applications by Example
Credits
About the Author
About the Reviewer
Preface
Free Chapter
Introduction to C++
Object-Oriented Programming in C++
Windows Development
Ring: A Demonstration Example
Utility Classes
The Tetris Application
The Draw Application
The Calc Application
The Word Application
Index
Customer Reviews