8000 GitHub - gyume2021/game-collection
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gyume2021/game-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teach Agent To Play Snake! Reinforcement Learning With PyTorch and Pygame

In this Python Reinforcement Learning Tutorial series we teach an AI to play Snake! We build everything from scratch using Pygame and PyTorch. The origin idea is from python engineer

Get started

Environment: Ubuntu 20.04

chmod +x install_python.sh
./install_python.sh
sudo apt-get install python3-tk
pip3 install -r requirements.txt

Play by human

python snake_game_human.py

Train snake agent

python agent.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0