|
10 | 10 |
|
11 | 11 |
|
12 | 12 | class CollectiveStrategy(Player):
|
13 |
| - """Defined in [Li2009]. 'It always cooperates in the first move and defects |
| 13 | + """Defined in [Li2009]_. 'It always cooperates in the first move and defects |
14 | 14 | in the second move. If the opponent also cooperates in the first move and
|
15 | 15 | defects in the second move, CS will cooperate until the opponent defects.
|
16 | 16 | Otherwise, CS will always defect.'
|
@@ -50,6 +50,10 @@ class Prober(Player):
|
50 | 50 | """
|
51 | 51 | Plays D, C, C initially. Defects forever if opponent cooperated in moves 2
|
52 | 52 | and 3. Otherwise plays TFT.
|
| 53 | +
|
| 54 | + Names: |
| 55 | +
|
| 56 | + - Prober [Li2011]_ |
53 | 57 | """
|
54 | 58 |
|
55 | 59 | name = 'Prober'
|
@@ -83,6 +87,10 @@ class Prober2(Player):
|
83 | 87 | """
|
84 | 88 | Plays D, C, C initially. Cooperates forever if opponent played D then C
|
85 | 89 | in moves 2 and 3. Otherwise plays TFT.
|
| 90 | +
|
| 91 | + Names: |
| 92 | +
|
| 93 | + - Prober 2: [Prison1998]_ |
86 | 94 | """
|
87 | 95 |
|
88 | 96 | name = 'Prober 2'
|
@@ -116,6 +124,10 @@ class Prober3(Player):
|
116 | 124 | """
|
117 | 125 | Plays D, C initially. Defects forever if opponent played C in moves 2.
|
118 | 126 | Otherwise plays TFT.
|
| 127 | +
|
| 128 | + Names: |
| 129 | +
|
| 130 | + - Prober 3: [Prison1998]_ |
119 | 131 | """
|
120 | 132 |
|
121 | 133 | name = 'Prober 3'
|
@@ -153,7 +165,7 @@ class Prober4(Player):
|
153 | 165 |
|
154 | 166 | Names:
|
155 | 167 |
|
156 |
| - - prober4: [Prison1998]_ |
| 168 | + - Prober 4: [Prison1998]_ |
157 | 169 | """
|
158 | 170 |
|
159 | 171 | name = 'Prober 4'
|
@@ -208,6 +220,10 @@ class HardProber(Player):
|
208 | 220 | """
|
209 | 221 | Plays D, D, C, C initially. Defects forever if opponent cooperated in moves
|
210 | 222 | 2 and 3. Otherwise plays TFT.
|
| 223 | +
|
| 224 | + Names: |
| 225 | +
|
| 226 | + - Hard Prober: [Prison1998]_ |
211 | 227 | """
|
212 | 228 |
|
213 | 229 | name = 'Hard Prober'
|
@@ -243,10 +259,9 @@ class NaiveProber(Player):
|
243 | 259 | """
|
244 | 260 | Like tit-for-tat, but it occasionally defects with a small probability.
|
245 | 261 |
|
246 |
| - For reference see: "Engineering Design of Strategies for Winning |
247 |
| - Iterated Prisoner's Dilemma Competitions" by Jiawei Li, Philip Hingston, |
248 |
| - and Graham Kendall. IEEE TRANSACTIONS ON COMPUTATIONAL INTELLIGENCE AND AI |
249 |
| - IN GAMES, VOL. 3, NO. 4, DECEMBER 2011 |
| 262 | + Names: |
| 263 | +
|
| 264 | + - Naive Prober: [Li2011]_ |
250 | 265 | """
|
251 | 266 |
|
252 | 267 | name = 'Naive Prober'
|
@@ -289,17 +304,16 @@ class RemorsefulProber(NaiveProber):
|
289 | 304 | Like Naive Prober, but it remembers if the opponent responds to a random
|
290 | 305 | defection with a defection by being remorseful and cooperating.
|
291 | 306 |
|
292 |
| - For reference see: "Engineering Design of Strategies for Winning |
293 |
| - Iterated Prisoner's Dilemma Competitions" by Jiawei Li, Philip Hingston, |
294 |
| - and Graham Kendall. IEEE TRANSACTIONS ON COMPUTATIONAL INTELLIGENCE AND AI |
295 |
| - IN GAMES, VOL. 3, NO. 4, DECEMBER 2011 |
296 |
| -
|
297 |
| - A more complete description is given in "The Selfish Gene" |
298 |
| - (https://books.google.co.uk/books?id=ekonDAAAQBAJ): |
| 307 | + For reference see: [Li2011]_. A more complete description is given in "The |
| 308 | + Selfish Gene" (https://books.google.co.uk/books?id=ekonDAAAQBAJ): |
299 | 309 |
|
300 | 310 | "Remorseful Prober remembers whether it has just spontaneously defected, and
|
301 | 311 | whether the result was prompt retaliation. If so, it 'remorsefully' allows
|
302 | 312 | its opponent 'one free hit' without retaliating."
|
| 313 | +
|
| 314 | + Names: |
| 315 | +
|
| 316 | + - Remorseful Prober: [Li2011]_ |
303 | 317 | """
|
304 | 318 |
|
305 | 319 | name = 'Remorseful Prober'
|
|
0 commit comments