Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Screenshots Panic Mandelbr Planets Comanche Calc7 Savehd7 Compiler Dnafight Sudoku Wator Tar7 Sydir7 Ftp7 Castle Tetris Make7 Ftpserv Basic Pairs Shisen Eliza Toutf8 Lander Wiz Startrek Mahjong
Tetris Source Code
 previous   up   next 

Tetris is a classic puzzle game originally designed in 1985.

The object is to place tetrominoes which are falling down the playing field. A tetromino is a geometric shape composed of four connected squares. The tetrominos are randomly chosen and fall down one by one. The falling speed depends on the severity level and increases with time. The currently falling tetromino is controlled with the cursor keys:

  • The horizontal cursor keys move it sideways.
  • The cursor up key rotates it counterclockwise by 90 degrees.
  • The cursor down key makes it fall down instantly.
When a horizontal line of blocks without gaps is created, it disappears, and any block above the deleted line will fall down.

The Seed7 package contains two versions of the Tetris game: A graphical version (tetg.sd7) and a text only version (tet.sd7).



Tetris Textversion

 previous   up   next