Skip to content

Commit

Permalink
Run black.
Browse files Browse the repository at this point in the history
  • Loading branch information
drvinceknight authored and marcharper committed May 24, 2021
1 parent af162c8 commit 974e850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions axelrod/strategies/darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def strategy(self, opponent: Player) -> Action:
return current

def reset(self):
""" Reset instance properties. """
"""Reset instance properties."""
super().reset()
Darwin.genome[0] = C # Ensure initial Cooperate

def mutate(self, outcome: tuple, trial: int) -> None:
""" Select response according to outcome. """
"""Select response according to outcome."""
if outcome[0] < 3 and (len(Darwin.genome) >= trial):
self.response = D if Darwin.genome[trial - 1] == C else C

Expand Down
4 changes: 3 additions & 1 deletion axelrod/tests/strategies/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,9 @@ def classifier_test(self, expected_class_classifier=None):

def test_strategy(self):
actions = [(C, C), (C, D), (D, C), (C, D), (D, C)]
self.versus_test(opponent=axl.Alternator(), expected_actions=actions, seed=11)
self.versus_test(
opponent=axl.Alternator(), expected_actions=actions, seed=11
)


class TestNMWEStochastic(TestMetaPlayer):
Expand Down

0 comments on commit 974e850

Please sign in to comment.