Requires pygame, which isn't on pip: https://bitbucket.org/pygame/pygame/downloads
The Tetris game part of this is based on https://gist.github.com/kch42/565419/download This project simplified that example and implemented the AI.
Uses genetic algorithms to evolve a Tetris AI. Fully documented, should be useful to learn how genetic algorithms and utility-based agents work.
Python
Requires pygame, which isn't on pip: https://bitbucket.org/pygame/pygame/downloads
The Tetris game part of this is based on https://gist.github.com/kch42/565419/download This project simplified that example and implemented the AI.