Tetris genetic algorithm written in C++ inspired by this article, with some changes. This AI is able to clear 21.000+ lines.
If an agent better than the saved one gets generated during training, parameters are automatically updated.
git clone https://www.github.com/msmmb/genetic_tetris
cd genetic_tetris
make train
./train.o
git clone https://www.github.com/msmmb/genetic_tetris
cd genetic_tetris
make terminal
./terminal.o
To run the AI on a window raylib needs to be installed.
You can take/lose control of the game by pressing the c
key.
git clone https://www.github.com/msmmb/genetic_tetris
cd genetic_tetris
make window
./window.o