Skip to content

Computer learns how to play snake using a Q Learning NN through the PyTorch library

Notifications You must be signed in to change notification settings

MartinGurasvili/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake AI

cas


This Is A Snake AI that uses a Linear QNet network for the computer to learn how to play snake - written using pytorch

Install Source Code

Train or Load Pretrained Model

To Test the AI run the Snake_AI.py file
To train model select option 0
To load pretrained model select option 1

Screenshot 2022-02-26 at 7 11 24 pm

Play The Game Yourself

To play the game youself just run the Snake.py file

Screenshot 2022-02-26 at 7 11 24 pm