A implementation of the classic snake game and a neural networking using the q-learning algorithm to solve the game.
Here is a walkthrough of how I did,
https://hugosjoberg.github.io/walkthrough/2017/11/19/snake-q-learn.html
- Python 3.6
- Keras
- pygame
- scikit-image
git clone https://github.com/hugocool24/Snake-qlearn.git
cd Snake-qlearn
python qlearn.py -m "Run"
python qlearn.py -m "Train"