Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 629 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 629 Bytes

Genetic-Tetris

Genetic algorithm used to play Tetris

Practicum write up

Instructions to run

Run "python main.py" to train the genetic algorithm

Run "python tetris.py" to play Tetris

Files

  • main.py - Run this in order to run Tetris AI training

  • tetris.py - Basic Tetris game source code

  • tetris_ai.py - Genetic algorithm for Tetris

  • tetris_trainer.py - This script is ran in main.py to train the AI

  • test.py - Basic tests for functions in tetris_ai