add initial Python files
This commit is contained in:
parent
f8682f30d1
commit
9a87c6fcef
10
gym_random_walk/__init__.py
Normal file
10
gym_random_walk/__init__.py
Normal file
@ -0,0 +1,10 @@
|
||||
from gym.envs.registration import register
|
||||
|
||||
register(
|
||||
id='random_walk-v0',
|
||||
entry_point='gym_random_walk.envs:RandomWalkEnv',
|
||||
)
|
||||
#register(
|
||||
# id='foo-extrahard-v0',
|
||||
# entry_point='gym_foo.envs:FooExtraHardEnv',
|
||||
#)
|
1
gym_random_walk/envs/__init__.py
Normal file
1
gym_random_walk/envs/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from gym_random_walk.envs.random_walk_env import RandomWalkEnv
|
15
gym_random_walk/envs/random_walk_py
Normal file
15
gym_random_walk/envs/random_walk_py
Normal file
@ -0,0 +1,15 @@
|
||||
import gym
|
||||
from gym import error, spaces, utils
|
||||
from gym.utils import seeding
|
||||
|
||||
class RandomWalkEnv(gym.Env):
|
||||
metadata = {'render.modes': ['human']}
|
||||
|
||||
def __init__(self):
|
||||
print("init")
|
||||
def _step(self, action):
|
||||
print("step")
|
||||
def _reset(self):
|
||||
print("reset")
|
||||
def _render(self, mode='human', close=False):
|
||||
print("render")
|
Loading…
Reference in New Issue
Block a user