Skip to content

Commit

Permalink
Bump frozen lake Versions (openai#2315)
Browse files Browse the repository at this point in the history
* bump versions

* properly bump versions
  • Loading branch information
jkterry1 committed Aug 13, 2021
1 parent e5c4f8d commit 6ba690b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs/environments.md
Expand Up @@ -33,7 +33,7 @@ follows:

``` python
import gym
env = gym.make('SpaceInvaders-v0')
env = gym.make('SpaceInvaders-v4')
env.reset()
env.render()
```
Expand Down Expand Up @@ -64,7 +64,7 @@ enable rendering. You can get started with them via:

``` python
import gym
env = gym.make('CartPole-v0')
env = gym.make('CartPole-v1')
env.reset()
env.render()
```
Expand Down Expand Up @@ -92,7 +92,7 @@ you didn't do the full install.

``` python
import gym
env = gym.make('HandManipulateBlock-v0')
env = gym.make('HandManipulateBlock-v2')
env.reset()
env.render()
```
Expand All @@ -116,7 +116,7 @@ install, so to get started, you can just do:

``` python
import gym
env = gym.make('FrozenLake-v0')
env = gym.make('FrozenLake-v1')
env.reset()
env.render()
```
Expand Down
4 changes: 2 additions & 2 deletions gym/envs/__init__.py
Expand Up @@ -148,15 +148,15 @@
)

register(
id="FrozenLake-v0",
id="FrozenLake-v1",
entry_point="gym.envs.toy_text:FrozenLakeEnv",
kwargs={"map_name": "4x4"},
max_episode_steps=100,
reward_threshold=0.70, # optimum = 0.74
)

register(
id="FrozenLake8x8-v0",
id="FrozenLake8x8-v1",
entry_point="gym.envs.toy_text:FrozenLakeEnv",
kwargs={"map_name": "8x8"},
max_episode_steps=200,
Expand Down
4 changes: 2 additions & 2 deletions gym/envs/tests/test_envs.py
Expand Up @@ -46,7 +46,7 @@ def test_env(spec):

# Run a longer rollout on some environments
def test_random_rollout():
for env in [envs.make("CartPole-v0"), envs.make("FrozenLake-v0")]:
for env in [envs.make("CartPole-v0"), envs.make("FrozenLake-v1")]:
agent = lambda ob: env.action_space.sample()
ob = env.reset()
for _ in range(10):
Expand All @@ -62,7 +62,7 @@ def test_random_rollout():
def test_env_render_result_is_immutable():
environs = [
envs.make("Taxi-v3"),
envs.make("FrozenLake-v0"),
envs.make("FrozenLake-v1"),
envs.make("Reverse-v0"),
]

Expand Down
2 changes: 1 addition & 1 deletion gym/envs/tests/test_registration.py
Expand Up @@ -53,7 +53,7 @@ def test_spec():

def test_spec_with_kwargs():
map_name_value = "8x8"
env = gym.make("FrozenLake-v0", map_name=map_name_value)
env = gym.make("FrozenLake-v1", map_name=map_name_value)
assert env.spec._kwargs["map_name"] == map_name_value


Expand Down
2 changes: 1 addition & 1 deletion gym/vector/tests/test_vector_env_wrapper.py
Expand Up @@ -14,7 +14,7 @@ def reset_async(self):


def test_vector_env_wrapper_inheritance():
env = make("FrozenLake-v0", asynchronous=False)
env = make("FrozenLake-v1", asynchronous=False)
wrapped = DummyWrapper(env)
wrapped.reset()
assert wrapped.counter == 1
2 changes: 1 addition & 1 deletion gym/wrappers/monitoring/tests/test_video_recorder.py
Expand Up @@ -62,7 +62,7 @@ def test_record_breaking_render_method():


def test_text_envs():
env = gym.make("FrozenLake-v0")
env = gym.make("FrozenLake-v1")
video = VideoRecorder(env)
try:
env.reset()
Expand Down

0 comments on commit 6ba690b

Please sign in to comment.