Skip to content

Commit d0c3679

Browse files
committed
Merge pull request #1 from JasYoung314/patch-1
Added docstring to Grudger's strategy method
2 parents 3eeec92 + cf50611 commit d0c3679

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

axelrod/strategies/grudger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Grudger(Player):
66
"""
77
def strategy(self, opponent):
88
"""
9+
Begins by playing C, then plays D for the remaining rounds if the opponent ever plays D
910
"""
1011
if 'D' in opponent.history:
1112
return 'D'

0 commit comments

Comments
 (0)