Skip to content

sagelywizard/gym_snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake for OpenAI Gym

A version of snake for OpenAI Gym.

snake gif

Installation

git clone [email protected]:sagelywizard/gym_snake.git
cd gym_snake
pip install -e .

Usage

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()

About

A version of snake as a gym environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages