From 6deebabc30b5f465fbbe094927f19893c29f06ef Mon Sep 17 00:00:00 2001 From: wenkesj Date: Sat, 29 Jun 2019 18:57:25 -0400 Subject: [PATCH] Add pypi to readme. --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ccf59bf..2e77555 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,7 @@

```sh -$ git clone https://github.com/fomorians/gym_pycolab.git -$ (cd gym_pycolab; pip install -e .) +$ pip install gym-pycolab ``` # API @@ -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)}