Gym environment for Snake
Contains a gym environment for the classic game snake.
Implementation for the NEAT algorithm and RL agents can be found in
env.render()is not implemented, running it will raise
env.reset()opens the GUI for the game.
env.fpscontains 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-ai pip install -e .
You can install the latest release by
pip install snake_gym
Creating The Environment
The environment can be created by doing the following:
import gym import snake_gym env = gym.make("snake-v0")