Artificial intelligence for the Snake game.
Alternatives To Snake
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Warriorjs8,571272 years ago4July 06, 201826mitJavaScript
🏰 An exciting game of programming and Artificial Intelligence
515 years ago12March 05, 2017mitPython
Universe: a software platform for measuring and training an AI's general intelligence across the world's supply of games, websites and other applications.
21 hours ago120zlibC++
Navigation-mesh Toolset for Games
a day ago296otherC++
OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
5 years ago44mitJavaScript
🦄 An Artificial Inteligence to teach Google's Dinosaur to jump cactus
2 months ago93otherC#
behaviac is a framework of the game AI development, and it also can be used as a rapid game prototype design tool. behaviac supports the behavior tree, finite state machine and hierarchical task network(BT, FSM, HTN)
2 years ago47otherC++
An End-To-End, Lightweight and Flexible Platform for Game Research
Rlcard2,0221a month ago38March 23, 202251mitPython
Reinforcement Learning / AI Bots in Card (Poker) Games - Blackjack, Leduc, Texas, DouDizhu, Mahjong, UNO.
15 hours ago34mitC++
Behavior Trees Library in C++. Batteries included.
Awesome Unity3d1,591
20 hours ago1unlicense
A categorized collection of awesome opensource unity3d repos
Alternatives To Snake
Select To Compare

Alternative Project Comparisons


The project focuses on the artificial intelligence of the Snake game. The snake's goal is to eat the food continuously and fill the map with its bodies as soon as possible. Originally, the project was written in C++. It has now been rewritten in Python for a user-friendly GUI and the simplicity in algorithm implementations.

Algorithms >


We use two metrics to evaluate the performance of an AI:

  1. Average Length: Average length the snake has grown to (max: 64).
  2. Average Steps: Average steps the snake has moved.

Test results (averaged over 1000 episodes):

Solver Demo (optimal) Average Length Average Steps
Hamilton 63.93 717.83
Greedy 60.15 904.56
24.44 131.69


Requirements: Python 3.5+ (64-bit) with Tkinter installed.

pip install -r requirements.txt
python [-h]

Run unit tests:

python -m pytest -v


See the COPYING file for license rights and limitations.

Popular Video Game Projects
Popular Artificial Intelligence Projects
Popular Games Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Artificial Intelligence
Reinforcement Learning
Deep Reinforcement Learning
Graph Theory