Skip to content

Commit 37946cb

Browse files
drvinceknightmarcharper
authored andcommitted
Edit docstring.
1 parent a02a289 commit 37946cb

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

axelrod/strategies/axelrod_first.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,22 @@ def strategy(self, opponent: Player) -> Action:
209209
class Graaskamp(Player):
210210
"""
211211
212-
This is one of the strategies from Robert Axelrod's first tournament and is described in the literature as:
212+
This is one of the strategies from Robert Axelrod's first tournament and is
213+
described in the literature as:
213214
214215
1. Plays Tit For Tat for the first 50 rounds;
215216
2. Defects on round 51;
216217
3. Plays 5 further rounds of Tit For Tat;
217-
4. A check is then made to see if the opponent is playing randomly in which case
218-
it defects for the rest of the game;
219-
5. The strategy also checks to see if the opponent is playing Tit For Tat or another strategy from a preliminary
220-
tournament called ‘Analogy’ (There is no information about 'Analogy' tournament. Step 5 is not implemented fully.)
221-
If so it plays Tit For Tat. If not it cooperates and randomly defects every 5 to 15 moves.
218+
4. A check is then made to see if the opponent is playing randomly in which
219+
case it defects for the rest of the game;
220+
5. The strategy also checks to see if the opponent is playing Tit For Tat or
221+
another strategy from a preliminary tournament called ‘Analogy’ If
222+
so it plays Tit For Tat. If not it cooperates and randomly defects every 5
223+
to 15 moves.
224+
225+
226+
Note that there is no information about 'Analogy' available thus Step 5 is
227+
not implemented fully.
222228
223229
This strategy came 9th in Axelrod’s original tournament.
224230

0 commit comments

Comments
 (0)