colosseumrl.data_model module

Data types that will be used by the Spacetime backend.

colosseumrl.data_model.Observation(observation_names: List[str])[source]

Creates a proper player class with the attributes necessary to transfer the observations.

class colosseumrl.data_model.Player(name, auth_key: str = '')[source]

Bases: object

property acknowledges_game_over
property action
property authentication_key
finalize_player(number: int, observation_port: int)[source]
property name
property number
property observation_port
property pid
property ready_for_action_to_be_taken
property ready_for_start
property reward_from_last_turn
property turn
property winner
class colosseumrl.data_model.ServerState(env_class_name, env_config, env_dimensions)[source]

Bases: object

property env_class_name
property env_config
property env_dimensions
property oid
property serialized_state
property server_no_longer_joinable
property terminal
property winners