File size: 296 Bytes
079c32c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import time
import gym
import gym_hybrid

if __name__ == '__main__':
    env = gym.make('Sliding-v0')
    env.reset()

    done = False
    while not done:
        _, _, done, _ = env.step(env.action_space.sample())
        env.render()
        time.sleep(0.1)

    time.sleep(1)
    env.close()