Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Snake Ga | 360 | 2 years ago | 9 | Python | ||||||
AI Agent that learns how to play Snake with Deep Q-Learning | ||||||||||
Slitherin | 70 | 2 years ago | 3 | mit | Python | |||||
AI research environment for the game of Snake 🐍 . | ||||||||||
Q Snake | 23 | 2 years ago | JavaScript | |||||||
A Q-learning web visualizer for Snake written in React.js | ||||||||||
Snake.ai | 14 | 5 years ago | 2 | mit | Python | |||||
Multiplayer snake AI | ||||||||||
Snake On Pygame | 11 | 4 months ago | mit | Python | ||||||
Snake game implemented in Pygame that can be controlled by human input and AI agents (DQN). Who's best? :snake: :robot: | ||||||||||
Snake Gym | 9 | 3 years ago | 13 | December 11, 2019 | 1 | mit | Python | |||
A gym environment for the game snake, with a tiled version. Contains implementations for NEAT and RL. | ||||||||||
Naagin Naggin | 6 | 6 years ago | Python | |||||||
Using RL approaches for playing the classic snake game. | ||||||||||
Self Play On Multi Snakes Environment | 6 | 3 years ago | Python | |||||||
Meta Rl Bandits | 5 | 4 years ago | Python | |||||||
A simple RNN meta-learner | ||||||||||
Deep Sea Snake | 4 | 5 years ago | 1 | Python | ||||||
Deep RL applied to a series-elastic snake robot |
Contains a gym environment for the classic game snake.
env.render()
is not implemented, running it will raise NotImplementedError
.env.reset()
opens the GUI for the game.env.fps
contains the fps to run the game at. You can set it using:
env.fps = 60
For the latest installation, run
git clone https://github.com/vivek3141/snake-gym
pip install -e .
You can install the latest release by
pip install snake-gym
The environment can be created by doing the following:
import gym
import snake_gym
env = gym.make("snake-v0")
snake-v0
Returns a 150x150 RGB image in the form of a numpy array for the observationssnake-tiled-v0
Returns a 10x10 matrix for the observations.
0
is empty space1
is the snake2
is the food