A Tetris clone that runs directly in your terminal.
Pythoncurses
←,→,↓: Move the blocks↑: Rotate a blockp: Pause / unpause the gameq: QuitCtrl+C: Quit
- Python 3.10+
- A terminal that supports
cursesand colors (most modern terminals)
I have not packaged this game. To use it, you can clone it.
git clone https://github.com/jonahkraft/tetris.gitThen use the following commands to start the game.
cd tetris
python3 main.pyThe game itself does not have any dependencies outside Python's standard library.
You can create an alias to play it from anywhere. Just add
alias tetris="python3 ~/path/to/tetris/main.py"to your .bashrc or .zshrc file. Use tetris to start the game.
I am using FiraCode Nerd Font in this preview. Depending on your Terminal Emulator and Terminal Font, this might look
different.
Distributed under the MIT License. See LICENSE file for more information. Do whatever you want with these scripts.
