We use an evolution strategy, the noisy cross entropy method, to learn the weights for a linear combination of heuristics to play the game of Tetris.
To compile:
mkdir build
cd build
cmake ..
make
To play the game with some learnt weights (~24h to learn those weights):
./play -w ../resource/weights.txt
you can see the different options with: ./play -h
.
To learn the weights:
./learn -w ../resource/weights.txt
you can see the different options with: ./learn -h
.