colosseumrl.config module¶
Central configuration file, primarily used for listing the available environments.
-
colosseumrl.config.
ENVIRONMENT_CLASSES
= {'blokus': <function blokus>, 'test': <function test_game>, 'tictactoe': <function tic_tac_toe.<locals>.ttt>, 'tictactoe_3p': <function tic_tac_toe.<locals>.ttt>, 'tictactoe_4p': <function tic_tac_toe.<locals>.ttt>, 'tron': <function tron>}¶
-
colosseumrl.config.
available_environments
() → List[str][source]¶ See all currently available environments.
- Returns
A list of environment names that can be accessed with get_environment.
- Return type
List[str]
-
colosseumrl.config.
get_environment
(environment: str) → Type[colosseumrl.BaseEnvironment.BaseEnvironment][source]¶ Get an environment class by name.
Run available_environments() to see all currently implemented games.
- Parameters
environment (str) – The environment name.
- Returns
The environment type
- Return type
Type[BaseEnvironment]