(self)
The Observation Space for each agent.

        There are a total of 3*board_size^2+12 observations:
        - all of the board (board_size^2)
        - bomb blast strength (board_size^2).
        - bomb life (board_size^2)
        - agent's position (2)
        - player ammo counts (1)
        - blast strength (1)
        - can_kick (1)
        - teammate (one of {AgentDummy.value, Agent3.value}).
        - enemies (three of {AgentDummy.value, Agent3.value}).
The Observation Space for each agent.
The Observation Space for each agent .
def _set_observation_space(self):
        """The Observation Space for each agent.

        There are a total of 3*board_size^2+12 observations:
        - all of the board (board_size^2)
        - bomb blast strength (board_size^2).
        - bomb life (board_size^2)
        - agent's position (2)
        - player ammo counts (1)
        - blast strength (1)
        - can_kick (1)
        - teammate (one of {AgentDummy.value, Agent3.value}).
        - enemies (three of {AgentDummy.value, Agent3.value}).
        """
        bss = self._board_size**2
        min_obs = [0] * 3 * bss + [0] * 5 + [constants.Item.AgentDummy.value
                                            ] * 4
        max_obs = [len(constants.Item)] * bss + [self._board_size
                                                ] * bss + [25] * bss
        max_obs += [self._board_size] * 2 + [self._num_items] * 2 + [1]
        max_obs += [constants.Item.Agent3.value] * 4
        self.observation_space = spaces.Box(
            np.array(min_obs), np.array(max_obs))
def _set_observation_space ( self ) : bss = self . _board_size ** 2 min_obs = [ 0 ] * 3 * bss + [ 0 ] * 5 + [ constants . Item . AgentDummy . value ] * 4 max_obs = [ len ( constants . Item ) ] * bss + [ self . _board_size ] * bss + [ 25 ] * bss max_obs += [ self . _board_size ] * 2 + [ self . _num_items ] * 2 + [ 1 ] max_obs += [ constants . Item . Agent3 . value ] * 4 self . observation_space = spaces . Box ( np . array ( min_obs ) , np . array ( max_obs ) )