experiments/mario/gym-super-mario-bros-master/gym_super_mario_bros/_registration.py
def _register_mario_env(id, is_random=False, **kwargs):
    """
    Register a Super Mario Bros. (1/2) environment with OpenAI Gym.

    Args:
        id (str): id for the env to register
        is_random (bool): whether to use the random levels environment
        kwargs (dict): keyword arguments for the SuperMarioBrosEnv initializer

    Returns:
        None

    """
    # if the is random flag is set
    if is_random:
        # set the entry point to the random level environment
        entry_point = 'gym_super_mario_bros:SuperMarioBrosRandomStagesEnv'
    else:
        # set the entry point to the standard Super Mario Bros. environment
        entry_point = 'gym_super_mario_bros:SuperMarioBrosEnv'
    # register the environment
    gym.envs.registration.register(
        id=id,
        entry_point=entry_point,
        max_episode_steps=9999999,
        reward_threshold=9999999,
        kwargs=kwargs,
        nondeterministic=True,
    )

    Register a Super Mario Bros. (1/2) environment with OpenAI Gym.

    Args:
        id (str): id for the env to register
        is_random (bool): whether to use the random levels environment
        kwargs (dict): keyword arguments for the SuperMarioBrosEnv initializer

    Returns:
        None

    
Register a Super Mario Bros. (1/2) environment with OpenAI Gym.
Register a Super Mario Bros . ( 1 / 2 ) environment with OpenAI Gym .
def _register_mario_env(id, is_random=False, **kwargs):
    if is_random:
        entry_point = 'gym_super_mario_bros:SuperMarioBrosRandomStagesEnv'
    else:
        entry_point = 'gym_super_mario_bros:SuperMarioBrosEnv'
    gym.envs.registration.register(
        id=id,
        entry_point=entry_point,
        max_episode_steps=9999999,
        reward_threshold=9999999,
        kwargs=kwargs,
        nondeterministic=True,
    )
def _register_mario_env ( id , is_random = False , ** kwargs ) : if is_random : entry_point = 'gym_super_mario_bros:SuperMarioBrosRandomStagesEnv' else : entry_point = 'gym_super_mario_bros:SuperMarioBrosEnv' gym . envs . registration . register ( id = id , entry_point = entry_point , max_episode_steps = 9999999 , reward_threshold = 9999999 , kwargs = kwargs , nondeterministic = True , )
Register a Super Mario Bros. (1/2) environment with OpenAI Gym.
Register a Super Mario Bros . ( 1 / 2 ) environment with OpenAI Gym .
"""
    Register a Super Mario Bros. (1/2) environment with OpenAI Gym.

    Args:
        id (str): id for the env to register
        is_random (bool): whether to use the random levels environment
        kwargs (dict): keyword arguments for the SuperMarioBrosEnv initializer

    Returns:
        None

    """ # if the is random flag is set # set the entry point to the random level environment # set the entry point to the standard Super Mario Bros. environment # register the environment
None
id
id for the env to register
id for the env to register
is_random
whether to use the random levels environment
whether to use the random levels environment
kwargs
keyword arguments for the SuperMarioBrosEnv initializer
keyword arguments for the SuperMarioBrosEnv initializer