All Projects → chuyangliu → Snake

chuyangliu / Snake

Licence: mit
Artificial intelligence for the Snake game.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Snake

Pygame Learning Environment
PyGame Learning Environment (PLE) -- Reinforcement Learning Environment in Python.
Stars: ✭ 828 (-33.28%)
Mutual labels:  artificial-intelligence, game, reinforcement-learning, deep-reinforcement-learning
Reinforcement Learning
Learn Deep Reinforcement Learning in 60 days! Lectures & Code in Python. Reinforcement Learning + Deep Learning
Stars: ✭ 3,329 (+168.25%)
Mutual labels:  artificial-intelligence, reinforcement-learning, deep-reinforcement-learning
Applied Reinforcement Learning
Reinforcement Learning and Decision Making tutorials explained at an intuitive level and with Jupyter Notebooks
Stars: ✭ 229 (-81.55%)
Mutual labels:  artificial-intelligence, reinforcement-learning, deep-reinforcement-learning
Lagom
lagom: A PyTorch infrastructure for rapid prototyping of reinforcement learning algorithms.
Stars: ✭ 364 (-70.67%)
Mutual labels:  artificial-intelligence, reinforcement-learning, deep-reinforcement-learning
Aigames
use AI to play some games.
Stars: ✭ 422 (-66%)
Mutual labels:  algorithm, game, reinforcement-learning
Gdrl
Grokking Deep Reinforcement Learning
Stars: ✭ 304 (-75.5%)
Mutual labels:  artificial-intelligence, reinforcement-learning, deep-reinforcement-learning
Rlcard
Reinforcement Learning / AI Bots in Card (Poker) Games - Blackjack, Leduc, Texas, DouDizhu, Mahjong, UNO.
Stars: ✭ 980 (-21.03%)
Mutual labels:  game, reinforcement-learning, deep-reinforcement-learning
Awesome Deep Rl
For deep RL and the future of AI.
Stars: ✭ 985 (-20.63%)
Mutual labels:  game, reinforcement-learning, deep-reinforcement-learning
Drl papernotes
Notes and comments about Deep Reinforcement Learning papers
Stars: ✭ 65 (-94.76%)
Mutual labels:  reinforcement-learning, deep-reinforcement-learning
Mabalgs
👤 Multi-Armed Bandit Algorithms Library (MAB) 👮
Stars: ✭ 67 (-94.6%)
Mutual labels:  algorithm, reinforcement-learning
Graph 2d cnn
Code and data for the paper 'Classifying Graphs as Images with Convolutional Neural Networks' (new title: 'Graph Classification with 2D Convolutional Neural Networks')
Stars: ✭ 67 (-94.6%)
Mutual labels:  artificial-intelligence, graph-theory
Tastysnake
A two-player (Bluetooth) game on Android.
Stars: ✭ 61 (-95.08%)
Mutual labels:  game, snake
Max
Code for reproducing experiments in Model-Based Active Exploration, ICML 2019
Stars: ✭ 61 (-95.08%)
Mutual labels:  reinforcement-learning, deep-reinforcement-learning
Snake
🐍🎮 Snake game made with Expo & PIXI.js 👾 iOS, Android, and Web
Stars: ✭ 67 (-94.6%)
Mutual labels:  game, snake
Data Science Best Resources
Carefully curated resource links for data science in one place
Stars: ✭ 1,104 (-11.04%)
Mutual labels:  artificial-intelligence, reinforcement-learning
Hackerrank
This is the Repository where you can find all the solution of the Problems which you solve on competitive platforms mainly HackerRank and HackerEarth
Stars: ✭ 68 (-94.52%)
Mutual labels:  artificial-intelligence, algorithm
Ai Reading Materials
Some of the ML and DL related reading materials, research papers that I've read
Stars: ✭ 79 (-93.63%)
Mutual labels:  artificial-intelligence, reinforcement-learning
Tic Tac Toe
An unbeatable game of Tic Tac Toe.
Stars: ✭ 57 (-95.41%)
Mutual labels:  artificial-intelligence, game
Awesome Decision Making Reinforcement Learning
A selection of state-of-the-art research materials on decision making and motion planning.
Stars: ✭ 68 (-94.52%)
Mutual labels:  artificial-intelligence, reinforcement-learning
1 Year Machinelearning Journey
An advanced program in Machine Learning and Deep Learning
Stars: ✭ 69 (-94.44%)
Mutual labels:  reinforcement-learning, deep-reinforcement-learning

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.

$ pip3 install -r requirements.txt

# Use -h for more details
$ python3 run.py [-h]

Run unit tests:

$ python3 -m pytest -v

License

See the LICENSE file for license rights and limitations.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].