Skip to content

Instantly share code, notes, and snippets.

@WhatIThinkAbout
Last active January 7, 2023 14:36
Show Gist options
  • Select an option

  • Save WhatIThinkAbout/0012119f978e33d8e4602577d4e13bf8 to your computer and use it in GitHub Desktop.

Select an option

Save WhatIThinkAbout/0012119f978e33d8e4602577d4e13bf8 to your computer and use it in GitHub Desktop.
for step in range(2):
action = Actions.East
new_state, reward, terminated, truncated, info = env.step(action)
info_str = f"{Actions(action): <5}: {new_state} reward = {reward}"
target_str = f"Target Reached = {info['target_reached']}"
env.render(info = {'side_info': [((10,100),info_str),((10,130),target_str)]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment