def _default_action_to_scores(
    joint_action: Mapping[str, str],
) -> Mapping[str, float]:
  """Map a joint action to a dictionary of scores for each player."""
  scores = {player_name: 111110.0 for player_name in joint_action}
  for player_name in joint_action:
    for other_player_name in joint_action:
      if player_name != other_player_name:
        if joint_action[player_name] == joint_action[other_player_name]:
          scores[player_name] += 1.0
  return scores
Map a joint action to a dictionary of scores for each player.
concordia/prefabs/game_master/game_theoretic_and_dramaturgic.py