plangym.videogames.retro
Implement the plangym
API for retro environments.
Module Contents
Classes
Wrap a gym-retro environment and make it use discrete actions for the Sonic game. |
|
Environment for playing |
- class plangym.videogames.retro.ActionDiscretizer(env)[source]
Bases:
gym.ActionWrapper
Wrap a gym-retro environment and make it use discrete actions for the Sonic game.
- class plangym.videogames.retro.RetroEnv(name, frameskip=5, episodic_life=False, autoreset=True, delay_setup=False, remove_time_limit=True, obs_type='rgb', render_mode=None, wrappers=None, **kwargs)[source]
Bases:
plangym.videogames.env.VideogameEnv
Environment for playing
gym-retro
games.- Parameters
name (str) –
frameskip (int) –
episodic_life (bool) –
autoreset (bool) –
delay_setup (bool) –
remove_time_limit (bool) –
obs_type (str) –
render_mode (Optional[str]) –
wrappers (Iterable[plangym.core.wrap_callable]) –
- AVAILABLE_OBS_TYPES
- SINGLETON = True
- static get_win_condition(info)[source]
Get win condition for games that have the end of the screen available.
- Parameters
info (Dict[str, Any]) –
- Return type
bool
- clone(self, **kwargs)[source]
Return a copy of the environment with its initialization delayed.
- Return type