Skip to content

Commit f8b6807

Browse files
committed
Run black.
1 parent a45d82f commit f8b6807

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

axelrod/moran.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,4 +576,3 @@ def _get_scores_from_cache(self, player_names: Tuple) -> Tuple:
576576
except KeyError: # If players are stored in opposite order
577577
match_scores = self.cached_outcomes[player_names[::-1]].sample()
578578
return match_scores[::-1]
579-

axelrod/tests/unit/test_moran.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,15 @@ def test_different_match(self):
198198
# results of `test_different_game` where the same seed is used.
199199
class StandInMatch(axl.Match):
200200
"""A Match were all players get a score of 3"""
201+
201202
def final_score_per_turn(self):
202203
return 0, 3
204+
203205
p1, p2 = axl.Cooperator(), axl.Defector()
204206
game = axl.Game(r=4, p=2, s=1, t=6)
205-
mp = MoranProcess((p1, p2), turns=5, game=game, match_class=StandInMatch, seed=3)
207+
mp = MoranProcess(
208+
(p1, p2), turns=5, game=game, match_class=StandInMatch, seed=3
209+
)
206210
populations = mp.play()
207211
self.assertEqual(mp.winning_strategy_name, str(p2))
208212

0 commit comments

Comments
 (0)