gym-tic-tac-toe/gym_random_walk/envs/random_walk_py

16 lines
343 B
Plaintext
Raw Normal View History

2017-03-31 02:38:15 +04:00
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")