def get_scores(self) -> Mapping[str, float]:
    """Return the cumulative score for each player."""
    player_scores = {player.name: 0.0 for player in self._players}
    for player in self._players:
      inventory = self._inventory.get_player_inventory(player.name)
      targets = self._targets[player.name]
      for target in targets:
        if self._verbose:
          print(termcolor.colored(
              f'{player.name} -- target = {target}, inventory = {inventory}',
              'yellow'))
        if target in list(inventory.keys()) and inventory[target] > 0:
          if self._verbose:
            print(termcolor.colored('    target found in inventory.', 'yellow'))
          num_on_target = inventory[target]
          player_scores[player.name] += num_on_target

    return player_scores
Return the cumulative score for each player.
concordia/components/game_master/deprecated/inventory_based_score.py