def build_wins(self):
        wins = [[0 for rep in range(self.nrepetitions)] for _ in
                range(self.nplayers)]

        for rep, inter_dict in enumerate(self.interactions):
            for index_pair, interactions in inter_dict.items():
                if index_pair[0] != index_pair[1]:  # Ignore self interactions
                    for player in range(2):
                        player_index = index_pair[player]

                        winner_index = iu.compute_winner_index(interactions)
                        if winner_index is not False and player == winner_index:
                            wins[player_index][rep] += 1

        return wins
Returns:
dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/result_set.py/ResultSet.build_wins