Book Image

Microsoft Visual C++ Windows Applications by Example

By : Stefan Bjornander, Stefan Björnander
Book Image

Microsoft Visual C++ Windows Applications by Example

By: Stefan Bjornander, Stefan Björnander

Overview of this book

Table of Contents (15 chapters)
Microsoft Visual C++ Windows Applications by Example
Credits
About the Author
About the Reviewer
Preface
Index

Summary


  • 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.