Play Tetris game automatically!
- AI for Tetris
- Simple ncurses based user interface
auto-tetris
requires ncurses.
Debian/Ubuntu Dependencies:
sudo apt install libncurses5-dev
To build auto-tetris
, run make
inside the directory where you have the source.
make
To play the game, run the executable 'tetris'.
./tetris
Key mapping:
- space: Pause toggle
- Q: Quit the game
- Replace ncurses with direct terminal I/O. See libtetris for tty graphics.
- Refine memory management. At present, leaks and buffer overrun exist.
- Colorize the blocks. libtetris does the elegant work.
- Allow external programs to train the AI.
auto-tetris
is available under a permissive MIT-style license.
Use of this source code is governed by a MIT license that can be found in the LICENSE file.