Before starting, these components must be installed (requirements.txt has them, look below for instructions)
- python
- pip
- pygame
- torch
- numpy
- matplotlib (for plotting training results)
Start by cloning this repository into a local folder/directory:
git clone https://github.com/wylieglover/SnakeAI-with-AStar.git
Navigate into the repository's folder and run this command to download the necessary components:
pip install -r requirements.txt
Then finally run the agent.py
file with the command below to begin training!
python3 agent.py