Skip to content

atakhan27/SnakeGame-PyTorch-ReinforcementLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SnakeGame-PyTorch-ReinforcementLearning

Watch the Video

Alt text https://drive.google.com/file/d/1xyD8tbacuAqc0JzGO7GbdXzTDDJXauaj/view?usp=share_link

Installation

Create an environment

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 it

Activate the environment:

conda activate pytorch

Install PyTorch and dependencies

For Installation of PyTorch see official website.

You also need:

pip install pygame
pip install matplotlib
pip install ipython

Usage

To run the file:

python snake_ai.py

References

Huge thanks to Patrick Loeber for providing an incredible tutorial: https://youtu.be/L8ypSXwyBds

Releases

No releases published

Packages

No packages published

Languages