Skip to content

A program that slowly learns to play the snake game using genetically evolving neural networks(Only evolution of weight).

Notifications You must be signed in to change notification settings

basanthjenuhb/Snake-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake-AI

A program that slowly learns to play the snake game using genetically evolving neural networks(Only evolution of weight).

To Train - python main.py

main.py - contains code the run the program

population.py - Manages each generation of neural networks , calculate fitness , and reproduce

dna.py - Maintains data for a single neural network

snake_imp.py - Manages the snake game

To Directly see the trained snake:

$ git checkout playing

$ python2 play.py

About

A program that slowly learns to play the snake game using genetically evolving neural networks(Only evolution of weight).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages