Skip to content

thomasy314/Genetic-Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Genetic algorithm used to play tetris

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages