Update README.md
This commit is contained in:
parent
c59d48f68b
commit
cbd4c7c5fa
14
README.md
14
README.md
@ -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()
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user