Created
August 22, 2018 02:14
-
-
Save fabito/081aba27bc3365d75d4ab9d8f0886be5 to your computer and use it in GitHub Desktop.
neyboy_env - constructor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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