Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- env.unwrapped.get_action_meanings()
- action = 0 # modify this!
- o = env.reset()
- for i in xrange(5): # repeat one action for five times
- o = env.step(action)[0]
- IPython.display.display(
- Image.fromarray(
- o[:,140:142] # extract your bat
- ).resize((300, 300)) # bigger image, easy for visualization
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement