Skip to content

Commit 5af8d2a

Browse files
kjurgielajtismarcharper
authored andcommitted
Changed test name to 'Graaskamp:0.05
1 parent 654bcd7 commit 5af8d2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

axelrod/strategies/axelrod_first.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def strategy(self, opponent: Player) -> Action:
262262
return D
263263
return C
264264

265-
# Check if opponent plays randomly, if so, defect
265+
# Check if opponent plays randomly, if so, defect for the rest of the game
266266
p_value = chisquare([opponent.cooperations, opponent.defections]).pvalue
267267
self.opponent_is_random = (p_value >= self.alpha) or self.opponent_is_random
268268

axelrod/tests/strategies/test_axelrod_first.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_strategy(self):
146146

147147
class TestGraaskamp(TestPlayer):
148148

149-
name = "Graaskamp"
149+
name = "Graaskamp: 0.05"
150150
player = axelrod.Graaskamp
151151
expected_classifier = {
152152
'memory_depth': float("inf"),

0 commit comments

Comments
 (0)