This project features an AI trained to play the classic Snake game using Reinforcement Learning. The implementation leverages PyTorch for the neural network and Pygame for game visualization.
To set up the environment, ensure the following dependencies are installed:
- Python 3.8 or higher
- PyTorch
- Pygame
- NumPy
- Matplotlib (optional, for training visualizations)
git clone https://github.com/Kongesque/snakeAI
cd snakeAIpython agent.py