Update index.md (#91)

This commit is contained in:
Will Dudley
2022-10-29 13:19:09 +01:00
committed by GitHub
parent 6f94a2a0bf
commit a3d185c47e

View File

@@ -21,7 +21,7 @@ import gymnasium as gym
env = gym.make("LunarLander-v2", render_mode="human")
observation, info = env.reset(seed=42)
for _ in range(1000):
action = policy(observation) # User-defined policy function
action = env.action_space.sample() # this is where you would insert your policy
observation, reward, terminated, truncated, info = env.step(action)
if terminated or truncated: