parameters: (self)
return_statement: return [(action, 1 / len(self._ACTION_TO_MOVE))
              for action in self._ACTION_TO_MOVE]
docstring: Returns the possible chance outcomes and their probabilities.
docstring_summary: Returns the possible chance outcomes and their probabilities.
docstring_tokens: Returns the possible chance outcomes and their probabilities .
function: def chance_outcomes(self) -> List[Tuple[int, float]]:
      """Returns the possible chance outcomes and their probabilities."""
      if self._is_position_init:
        if (self._population is None or
            not 0 <= self._population < self.num_players()):
          raise ValueError(f"Invalid population {self._population}")
        # Make each population start in one corner (this works best when
        # we have 4 populations). When there are more than 4
        # populations, there will be some corners will at least 2
        # populations.
        p = self._population % 4
        initial_position = np.array(
            [p % 2 * (self.size - 1), p // 2 * (self.size - 1)])
        return [(pos_to_merged(initial_position, self.size), 1.)]
      # Uniform distribution over actions.
      return [(action, 1 / len(self._ACTION_TO_MOVE))
              for action in self._ACTION_TO_MOVE]
function_tokens: def chance_outcomes ( self ) -> List [ Tuple [ int , float ] ] : if self . _is_position_init : if ( self . _population is None or not 0 <= self . _population < self . num_players ( ) ) : raise ValueError ( f"Invalid population {self._population}" ) # Make each population start in one corner (this works best when # we have 4 populations). When there are more than 4 # populations, there will be some corners will at least 2 # populations. p = self . _population % 4 initial_position = np . array ( [ p % 2 * ( self . size - 1 ) , p // 2 * ( self . size - 1 ) ] ) return [ ( pos_to_merged ( initial_position , self . size ) , 1. ) ] # Uniform distribution over actions. return [ ( action , 1 / len ( self . _ACTION_TO_MOVE ) ) for action in self . _ACTION_TO_MOVE ]