This project features a classic Snake game implemented in Python, alongside a reinforcement learning agent developed using PyTorch. The agent is trained to play the Snake game autonomously.
-
Clone the repository:
git clone https://github.com/erudzitis/Snake_RL.git
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
- Run the Snake game:
python src/game.py
This project is licensed under the MIT License. See the LICENSE
file for details.