Skip to content

Instantly share code, notes, and snippets.

@fabito
Created August 22, 2018 02:14
Show Gist options
  • Save fabito/081aba27bc3365d75d4ab9d8f0886be5 to your computer and use it in GitHub Desktop.
Save fabito/081aba27bc3365d75d4ab9d8f0886be5 to your computer and use it in GitHub Desktop.
neyboy_env - constructor
def __init__(self):
headless = os.environ.get('GYM_NEYBOY_ENV_NON_HEADLESS', None) is None
self.game = SyncGame.create(headless=headless)
self.state = self.game.get_state()
self.viewer = None
self.observation_space = spaces.Box(low=0, high=255, shape=self.state.snapshot.shape, dtype=np.uint8)
self.action_space = spaces.Discrete(3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment