From 96d1f93bda25b6b57a157a9e7b16b7093bcc8423 Mon Sep 17 00:00:00 2001 From: Vien Ngo Date: Fri, 28 Aug 2020 16:00:47 +0200 Subject: [PATCH] example.py --- example.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 example.py diff --git a/example.py b/example.py new file mode 100644 index 0000000..4cb210b --- /dev/null +++ b/example.py @@ -0,0 +1,13 @@ +import gym + + +if __name__ == "__main__": + env = gym.make('reacher:ReacherALREnv-v0') + #env = gym.make('Hopper-v2') + env.reset() + + for i in range(10000): + action = env.action_space.sample() + obs = env.step(action) + print("step",i) + env.render()