Skip to content

FOSSClubSIT/snakegameAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snakegameAI

Dependencies (Fedora):

sudo dnf install python3 python3-pip python3-numpy python3-pygame python3-ipython
pip3 install torch

Dependencies (Windows): Install VC_Redist 2015-19 from here. Open a Windows Terminal instance.

winget install python pip
pip install torch matplotlib numpy pygame

Structure of repo:

----- game_human.py: vanilla game
----- game_ai.py: AI version of the game, with bindings for AI inputs and SPEED var changed.
----- model.py: Main script for reinforcement learning QNet code.
----- train.py: calls model.py, trains model with checkpoints saved to disk and multiple threads
----- inference.py: script to load last checkpoint and run the game from that without any learning

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published