Guest User

Untitled

a guest
Aug 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. def __init__(self):
  2. headless = os.environ.get('GYM_NEYBOY_ENV_NON_HEADLESS', None) is None
  3. self.game = SyncGame.create(headless=headless)
  4. self.state = self.game.get_state()
  5. self.viewer = None
  6. self.observation_space = spaces.Box(low=0, high=255, shape=self.state.snapshot.shape, dtype=np.uint8)
  7. self.action_space = spaces.Discrete(3)
Add Comment
Please, Sign In to add comment