Snake

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
Universe7,191
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.
Recastnavigation5,386
21 hours ago120zlibC++
Navigation-mesh Toolset for Games
Openttd4,698
a day ago296otherC++
OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
Iamdinosaur2,760
5 years ago44mitJavaScript
🦄 An Artificial Inteligence to teach Google's Dinosaur to jump cactus
Behaviac2,534
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)
Elf2,046
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.
Behaviortree.cpp1,924
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
Readme

Snake

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 >

Experiments

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
DQN
(experimental)
24.44 131.69

Installation

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

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

Run unit tests:

python -m pytest -v

License

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.
Python
Game
Algorithms
Artificial Intelligence
Ai
Reinforcement Learning
Snake
Deep Reinforcement Learning
Graph Theory