Skip to content

Commit 657b917

Browse files
committed
Remove the match_class from tournament.
The way the results are calculated in a tournament is not consistent with the calculations being done in the match. This would involve a bit more work.
1 parent b42bb0f commit 657b917

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

axelrod/tournament.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def __init__(
3434
edges: List[Tuple] = None,
3535
match_attributes: dict = None,
3636
seed: int = None,
37-
match_class = Match,
3837
) -> None:
3938
"""
4039
Parameters
@@ -79,7 +78,6 @@ def __init__(
7978
turns = DEFAULT_TURNS
8079

8180
self.turns = turns
82-
self.match_class = match_class
8381
self.prob_end = prob_end
8482
self.match_generator = MatchGenerator(
8583
players=players,
@@ -453,7 +451,7 @@ def _play_matches(self, chunk, build_results=True):
453451
player2 = self.players[p2_index].clone()
454452
match_params["players"] = (player1, player2)
455453
match_params["seed"] = seed
456-
match = self.match_class(**match_params)
454+
match = Match(**match_params)
457455
for _ in range(repetitions):
458456
match.play()
459457

0 commit comments

Comments
 (0)