Here is my Python source code for training an agent to play Snake using the Deep Q-learning.
⭐ If you find this project interesting or helpful, please consider giving it a star on GitHub — it really motivates me to keep improving and sharing more AI projects!
With my code, you can:
- Train your model by running
python train.py. - Test your trained model by running
python evaluate.py.
- numpy
- pygame
- torch
