Tetris is a simple game written in C, using NCurses for the terminal I/O. It requires POSIX Thread and NCurses.
To build tetris, run 'make' inside the directory where you have the source.
$ makeDebian/Ubuntu Dependencies:
$ sudo apt install libncurses5-devTo play the game, run the executable 'tetris'.
$ ./tetrisKey mapping:
- Arrow Up / k: rotate the block
- Arrow Down / j: drop the block
- Arrow Left / h: move left
- Arrow Right / l: move right
- Q: Quit or Pause
If you get into trouble with terminal display, you can set environment variable TERM to vt100.
Tetris is released under the MIT license. Use of this source code is governed by a MIT license that can be found in the LICENSE file.