Tetris is a puzzle with the shapes each consisting of several squares, that are falling down the well. When playing a tetris game, one turns them or moves left and right, trying to arrange the shapes in a line. When a line of squares makes a line from edge to edge, it disappears and all the pieces move down by a square. When the well is filled up, the player loses.
Delphi BLOCKS
If you have over 25 years chances are that you've played Tetris when you were "young" :)
Delphi XE ships with a Tetris clone called "Delphi Blocks".
The source code to "Delphi BLOCKS", a Delphi Tetris clone, can be located under the "C:\Documents and Settings\All Users\Documents\RAD Studio\8.0\Samples\Delphi\VCL\Blocks" folder (on a default Windows XP install).
By exploring the Delphi Blocks source code you will learn how to program:
- Delphi records,
- Arrays of records,
- Canvas drawing,
- Painting a TPaintBox,
- Keyboard events,
- TTimer, ...
p.s.
There are a few more games that ship with Delphi under the "samples" folder.

