Skip to content

Commit 974e850

Browse files
drvinceknightmarcharper
authored andcommitted
Run black.
1 parent af162c8 commit 974e850

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

axelrod/strategies/darwin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ def strategy(self, opponent: Player) -> Action:
7676
return current
7777

7878
def reset(self):
79-
""" Reset instance properties. """
79+
"""Reset instance properties."""
8080
super().reset()
8181
Darwin.genome[0] = C # Ensure initial Cooperate
8282

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

axelrod/tests/strategies/test_meta.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,9 @@ def classifier_test(self, expected_class_classifier=None):
633633

634634
def test_strategy(self):
635635
actions = [(C, C), (C, D), (D, C), (C, D), (D, C)]
636-
self.versus_test(opponent=axl.Alternator(), expected_actions=actions, seed=11)
636+
self.versus_test(
637+
opponent=axl.Alternator(), expected_actions=actions, seed=11
638+
)
637639

638640

639641
class TestNMWEStochastic(TestMetaPlayer):

0 commit comments

Comments
 (0)