Skip to content

Crude machine learning using a genetic algorithm, learns how to play Snake reasonably well.

License

Notifications You must be signed in to change notification settings

phunanon/snake-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake AI

Crude machine learning using a genetic algorithm, learns how to play Snake reasonably well. The brain is quite reusable for any project.

sudo apt install libsfml-dev cmake make
git clone --depth=1 https://github.com/phunanon/snake-ai.git
cd snake-ai && mkdir build && cd build
cmake ../src
make
./SnakeAI

https://www.youtube.com/watch?v=zIkBYwdkuTk
https://towardsdatascience.com/first-neural-network-for-beginners-explained-with-code-4cfd37e06eaf
https://medium.com/technology-invention-and-more/how-to-build-a-simple-neural-network-in-9-lines-of-python-code-cc8f23647ca1

About

Crude machine learning using a genetic algorithm, learns how to play Snake reasonably well.

Topics

Resources

License

Stars

Watchers

Forks