ZYunfeii/DRL4SnakeGame
Using deep reinforcement learning to play Snake game(贪吃蛇).
Implements PPO (Proximal Policy Optimization) for discrete action spaces with a custom PyTorch neural network architecture, achieving convergence in approximately 30 minutes of training. The project includes a pygame-based Snake environment simulator, reward visualization via matplotlib/seaborn, and modular separation between the RL agent, network architecture, and game environment for easy extension or adaptation to other discrete control problems.
No commits in the last 6 months.
Stars
82
Forks
18
Language
Python
License
MIT
Category
Last pushed
Sep 12, 2021
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/ZYunfeii/DRL4SnakeGame"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
chynl/snake
Artificial intelligence for the Snake game.
Eliastik/snakeia
A modern Snake game featuring an artificial intelligence powered by Deep Q-Learning...
italohdc/LearnSnake
🐍 AI that learns to play Snake using Q-Learning (Reinforcement Learning)
gmamaladze/deep-snake
A snake game trained using simple deep learning implemented in client side javascript.
hayderkharrufa/snake_pathfinding_ai
AI plays snake game using BFS (Breadth-First Search) algorithm.