Skip to content

AlexandreOuellet/gym-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gym-snake

The snake environment is a single agent environment that plays the snake game. Each step requires a discrete movement where 0=up, 1=down, 2=left, 3=right. It will move the snake's head in that direction, and the tail will follow. If you eat a fruit, the snake's body will grow by 1. You get 1 reward for completing eating a fruit, and -100 for going out of bound, or hitting yourself

Installation

cd gym-snake
pip install -e .

Usage

import gym
from gym import wrappers, logger
import gym_snake

About

A snake environment for openAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages