Skip to content

Commit 07ca6d5

Browse files
author
Svetlana Karslioglu
authored
Update mario_rl_tutorial.py
1 parent f72b6a4 commit 07ca6d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

intermediate_source/mario_rl_tutorial.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@
103103
# 1. jump right
104104
env = JoypadSpace(env, [["right"], ["right", "A"]])
105105

106+
action = env.action_space.sample()
107+
106108
env.reset()
107-
next_state, reward, done, truncated, info = env.step(action=0)
108-
print(f"{next_state.shape},\n {reward},\n {done},\n truncated{},\n {info}")
109+
obs, reward, terminated, truncated, info = env.step(action)
110+
print(f"{obs.shape},\n {reward},\n {terminated},\n {truncated},\n {info}")
109111

110112

111113
######################################################################

0 commit comments

Comments
 (0)