base_agent

class rbgame.agent.base_agent.BaseAgent[source]

Bases: ABC

Base agent. All agents should inherit this class.

abstract get_action(obs)[source]

Compute action from observation.

Parameters:

obs (dict[str, ndarray]) – Observation and action mask from game.

Return type:

int

Returns:

Action.