Update README.md

This commit is contained in:
ottofabian
2020-08-28 18:50:37 +02:00
committed by GitHub
parent c59d48f68b
commit cbd4c7c5fa
+13 -1
View File
@@ -31,7 +31,19 @@ cd alr_envs
```bash ```bash
pip install -e . pip install -e .
``` ```
4. Use (see example.py): 4. Use (see [example.py](./example.py)):
```python ```python
import gym
env = gym.make('alr_envs:SimpleReacher-v0') env = gym.make('alr_envs:SimpleReacher-v0')
state = env.reset()
for i in range(10000):
state, reward, done, info = env.step(env.action_space.sample())
if i % 5 == 0:
env.render()
if done:
state = env.reset()
``` ```