pymasep.engine.external_controller ================================== .. py:module:: pymasep.engine.external_controller Classes ------- .. autoapisummary:: pymasep.engine.external_controller.ExternalController Module Contents --------------- .. py:class:: ExternalController(environment) Bases: :py:obj:`pymasep.common.Controller` External controller to receive action from an interface (local or remote) :param environment: environment for the controller .. py:attribute:: engine :value: None .. py:method:: action_choice(observation, agent) Choose the action. Get it from the action message in the current_event of the engine. If the current coordination method is MULTIPLAYER_COORDINATION_TURN, Act only if it is the turn of the agent that sends the action message. Otherwise, the agent can act whenever he wants. :param observation: The observation used to choose the action. :param agent: The agent who chooses the action. :return: The action chosen for the agent.