Python Reinforcement Learning, teaching AI to play Snake
A reinforcement learning based snake player, that tries to play the classic snake game. I used Pygame library for the game, matplotlib for the plotting of the game score and Q-function to get the best states in a reinfocement learning environment.
- Python 3.11.1
- pygame 2.3.0
- torch 2.0.0
- Clone the repository and install all the dependecies.
- Run the python file named main.py.
- Enjoy the snake trying to improve itself.