tetris - ncarrier/tetris GitHub Wiki
About
Tetris is a C implementation of the classic Tetris game, base on the original game boy BW version and runs on a console compatible with ANSI escape sequences. For now it has only be tested with Linux but should be fine with any Unix. It shouldn't work under Windows unless perhaps using Cygwin. It has nearly no dependency apart from C and UNIX standard libraries.
Features
It implements the 3 game modes present in the original game :
- 1 player classic "survival" mode (game A)
- 1 player with a 25 lines goal to achieve (game B)
- 2 player mode, across the network
Differences from the original game
- No music
- Keyboard repeat messes the gameplay and makes "drop" score unavailable
- No mario face
- No commercial success
- Well... maybe no success at all
Ongoing developments
- HUGE code cleanup
- Avoid the key repeat problem, when the user has the rights on either /dev/console or /dev/inputX
- Music ?
Known bugs
- Improper ways of shutting down (signal) Tetris can mess the console a little. A reset in gnome-terminal/dash can recover form this situation.
Usage
- git clone git://github.com/ncarrier/tetris.git
- make
- ./tetris
More info on the usage file or with ./tetris -h