chynl/snake
Artificial intelligence for the Snake game.
Implements three distinct solver algorithms—Hamilton cycle pathfinding for near-optimal play, greedy heuristic search, and experimental deep Q-learning—evaluated across 1000-episode trials measuring final snake length and step efficiency. Built in Python with Tkinter visualization and includes comprehensive unit tests for algorithm validation.
1,757 stars. Actively maintained with 2 commits in the last 30 days.
Stars
1,757
Forks
553
Language
Python
License
MIT
Category
Last pushed
Mar 07, 2026
Commits (30d)
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/chynl/snake"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related frameworks
Eliastik/snakeia
A modern Snake game featuring an artificial intelligence powered by Deep Q-Learning...
ZYunfeii/DRL4SnakeGame
Using deep reinforcement learning to play Snake game(贪吃蛇).
hayderkharrufa/snake_pathfinding_ai
AI plays snake game using BFS (Breadth-First Search) algorithm.
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.