Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. env.unwrapped.get_action_meanings()
  2.  
  3. action = 0 # modify this!
  4. o = env.reset()
  5. for i in xrange(5): # repeat one action for five times
  6. o = env.step(action)[0]
  7. IPython.display.display(
  8. Image.fromarray(
  9. o[:,140:142] # extract your bat
  10. ).resize((300, 300)) # bigger image, easy for visualization
  11. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement