Skip to content
/ SnakeGA Public

Genetic algorithm utilizing continuous values and tournament selection to play Snake

Notifications You must be signed in to change notification settings

rueey/SnakeGA

Repository files navigation

SnakeGA

Genetic Algorithm to play Snake using Tournament selection and random mutation per allele for each genotype

Controls:

Space = Next generation
A = Toggle autogenerate
S = Toggle viewing current fittest snake
R = Reset entire population
E = Toggle speed of updates
T = Toggle time limit
G = Draw and output graph of average fitness

Example of fittest snake at Generation 122

alt text

Average Fitness Graph over 200 generations

alt text

About

Genetic algorithm utilizing continuous values and tournament selection to play Snake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages