A project to train the snake agent how to play using Deep Q-Learning/Deep Reinforcement Learning
This project requires the following prerequisites:
-Python 3.6(unless Tensorflow is supported on higher versions)
-Tensorflow
-Keras
-Pygame
-h5py
After cloning or downloading the project change the file paths in SnakeGameAI, to the path they lie in on your computer.
The file paths are on line 11,20,27,128 and 222.
If you want to train the model further, set the train variable on line 226 to True.
If you want to use the trained model, set load_weights on line 224 to True.