Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.01 KB

auto-tetris

Play Tetris game automatically!

Features

  • AI for Tetris
  • Simple ncurses based user interface

Build and Run

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

TODO

  • 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.

License

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.