A version of snake for OpenAI Gym.
git clone [email protected]:sagelywizard/gym_snake.git
cd gym_snake
pip install -e .
import gym_snake
import gym
env = gym.make('snake-v0')
state = env.reset()
done = False
while not done:
action = policy(state)
state, reward, done, info = env.step(action)
env.render()