Pythonify the README example
This commit is contained in:
parent
0f09ba6547
commit
0080c9d0d6
@ -18,7 +18,7 @@ But if you want more customizable or minimal one, I recommend this.
|
|||||||
Importing `mujoco_maze` registers environments and environments listed
|
Importing `mujoco_maze` registers environments and environments listed
|
||||||
below are available via `gym.make`.
|
below are available via `gym.make`.
|
||||||
|
|
||||||
E.g.,
|
E.g.,:
|
||||||
```python
|
```python
|
||||||
import gym
|
import gym
|
||||||
import mujoco_maze # noqa
|
import mujoco_maze # noqa
|
||||||
@ -63,7 +63,7 @@ env = gym.make("Ant4Rooms-v0")
|
|||||||
You can define your own task by using components in `maze_task.py`,
|
You can define your own task by using components in `maze_task.py`,
|
||||||
like:
|
like:
|
||||||
|
|
||||||
```
|
```python
|
||||||
import gym
|
import gym
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from mujoco_maze.maze_env_utils import MazeCell
|
from mujoco_maze.maze_env_utils import MazeCell
|
||||||
|
Loading…
Reference in New Issue
Block a user