https://drive.google.com/file/d/1xyD8tbacuAqc0JzGO7GbdXzTDDJXauaj/view?usp=share_link
Create a new environment with a specified name (e.g., "pytorch") and the Python version you want to use:
conda create --name pytorch python=3.8
Activate the environment:
conda activate pytorch
For Installation of PyTorch see official website.
You also need:
pip install pygame
pip install matplotlib
pip install ipython
To run the file:
python snake_ai.py
Huge thanks to Patrick Loeber for providing an incredible tutorial: https://youtu.be/L8ypSXwyBds