Skip to content

Commit

Permalink
Add pypi to readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkesj committed Jun 29, 2019
1 parent 675ee83 commit 6deebab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
</p>

```sh
$ git clone https://github.com/fomorians/gym_pycolab.git
$ (cd gym_pycolab; pip install -e .)
$ pip install gym-pycolab
```

# API
Expand All @@ -29,17 +28,17 @@ from gym import spaces
class MyGameEnv(gym_pycolab.PyColabEnv):
"""A pycolab game env."""

def __init__(self,
def __init__(self,
max_iterations=10,
default_reward=-1.):
super(MyGameEnv, self).__init__(
max_iterations=max_iterations,
max_iterations=max_iterations,
default_reward=default_reward,
action_space=spaces.Discrete(4))

def make_game(self):
return my_game

def make_colors(self):
return {'#': (0, 0, 255)}

Expand Down

0 comments on commit 6deebab

Please sign in to comment.