https://github.com/jserv/tetris
A text-mode tetris game
https://github.com/jserv/tetris
Last synced: 6 months ago
JSON representation
A text-mode tetris game
- Host: GitHub
- URL: https://github.com/jserv/tetris
- Owner: jserv
- License: mit
- Created: 2020-01-05T19:38:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T07:33:49.000Z (almost 6 years ago)
- Last Synced: 2025-04-22T22:57:07.117Z (over 1 year ago)
- Language: C
- Size: 16.6 KB
- Stars: 147
- Watchers: 7
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tetris: A text-mode tetris game
Tetris is a simple game written in C, using NCurses for the terminal I/O.
It requires POSIX Thread and NCurses.
## Build and Run
To build tetris, run 'make' inside the directory where you have the source.
```shell
$ make
```
Debian/Ubuntu Dependencies:
```shell
$ sudo apt install libncurses5-dev
```
To play the game, run the executable 'tetris'.
```shell
$ ./tetris
```
Key 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.
## License
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.