Skip to content

A project I worked on summer after freshman year in high school. At this time I became interested in machine learning, and I implemented a neural network structure and genetic algorithm (GA) to learn how to play Snake from scratch. I used a Snake game I had coded earlier. All of the code was built from scratch.

License

Notifications You must be signed in to change notification settings

jwang541/snake-genetic-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake-genetic-algorithm

A project I worked on summer after freshman year in high school. At this time I became interested in machine learning, and I implemented a neural network structure and genetic algorithm (GA) to learn how to play Snake from scratch. I used a Snake game I had coded earlier. I used SFML to render the graphics.

Below are 2 screenshots. The first shows the untrained neural network playing Snake, and the second shows a neural network that I trained for a while playing Snake.

Screenshots

Alt text Alt text

About

A project I worked on summer after freshman year in high school. At this time I became interested in machine learning, and I implemented a neural network structure and genetic algorithm (GA) to learn how to play Snake from scratch. I used a Snake game I had coded earlier. All of the code was built from scratch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages