Skip to content

Commit

Permalink
Move Algorithmic Environments to Third Party Repo (#2344)
Browse files Browse the repository at this point in the history
* try removing algorithmic environments

* fix tests

* algorithmic environments

* Moved algorithmic environments (#2363)

* Moved algorithmic environments

Moved algorithmic environments

Moved algorithmic environments

* blacken

* remove bad link

Co-authored-by: Rohan138 <[email protected]>
  • Loading branch information
jkterry1 and Rohan138 authored Aug 27, 2021
1 parent 2bd436b commit 1504041
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 773 deletions.
18 changes: 6 additions & 12 deletions docs/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ specification of each task is in
[gym/envs/\_\_init\_\_.py](https://github.com/openai/gym/blob/master/gym/envs/__init__.py).
It's worth browsing through both.

### Algorithmic

These are a variety of algorithmic tasks, such as learning to copy a
sequence.

``` python
import gym
env = gym.make('Copy-v0')
env.reset()
env.render()
```

### Atari

The Atari environments are a variety of Atari video games. If you didn't
Expand Down Expand Up @@ -147,6 +135,12 @@ Learn more here: https://github.com/openai/roboschool

The gym comes prepackaged with many many environments. It's this common API around many environments that makes Gym so great. Here we will list additional environments that do not come prepacked with the gym. Submit another to this list via a pull-request.

### gym-algorithmic

These are a variety of algorithmic tasks, such as learning to copy a sequence, present in Gym prior to Gym 0.20.0.

Learn more here: https://github.com/Rohan138/gym-algorithmic

### gym-spoof

Spoof, otherwise known as "The 3-coin game", is a multi-agent (2 player), imperfect-information, zero-sum game.
Expand Down
47 changes: 0 additions & 47 deletions gym/envs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,5 @@
from gym.envs.registration import registry, register, make, spec

# Algorithmic
# ----------------------------------------

register(
id="Copy-v0",
entry_point="gym.envs.algorithmic:CopyEnv",
max_episode_steps=200,
reward_threshold=25.0,
)

register(
id="RepeatCopy-v0",
entry_point="gym.envs.algorithmic:RepeatCopyEnv",
max_episode_steps=200,
reward_threshold=75.0,
)

register(
id="ReversedAddition-v0",
entry_point="gym.envs.algorithmic:ReversedAdditionEnv",
kwargs={"rows": 2},
max_episode_steps=200,
reward_threshold=25.0,
)

register(
id="ReversedAddition3-v0",
entry_point="gym.envs.algorithmic:ReversedAdditionEnv",
kwargs={"rows": 3},
max_episode_steps=200,
reward_threshold=25.0,
)

register(
id="DuplicatedInput-v0",
entry_point="gym.envs.algorithmic:DuplicatedInputEnv",
max_episode_steps=200,
reward_threshold=9.0,
)

register(
id="Reverse-v0",
entry_point="gym.envs.algorithmic:ReverseEnv",
max_episode_steps=200,
reward_threshold=25.0,
)

# Classic
# ----------------------------------------

Expand Down
5 changes: 0 additions & 5 deletions gym/envs/algorithmic/__init__.py

This file was deleted.

Loading

0 comments on commit 1504041

Please sign in to comment.