File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -209,16 +209,22 @@ def strategy(self, opponent: Player) -> Action:
209
209
class Graaskamp (Player ):
210
210
"""
211
211
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:
213
214
214
215
1. Plays Tit For Tat for the first 50 rounds;
215
216
2. Defects on round 51;
216
217
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.
222
228
223
229
This strategy came 9th in Axelrod’s original tournament.
224
230
You can’t perform that action at this time.
0 commit comments