get_neighbourhood_states

ludics.main.get_neighbourhood_states(state, number_of_strategies)

Finds all states that differ from a state in exactly one position

Parameters:

  • state: numpy.array - the focal state
  • number_of_strategies: int - how many strategies the players in the state can play

Returns:

  • np.array - an array of states adjacent to the focal state