15
15
16
16
17
17
class MetaPlayer (Player ):
18
- """A generic player that has its own team of players."""
18
+ """
19
+ A generic player that has its own team of players.
20
+
21
+ Names:
22
+
23
+ - Meta Player: Original name by Karol Langner
24
+ """
19
25
20
26
name = "Meta Player"
21
27
classifier = {
@@ -86,7 +92,12 @@ def reset(self):
86
92
87
93
88
94
class MetaMajority (MetaPlayer ):
89
- """A player who goes by the majority vote of all other non-meta players."""
95
+ """A player who goes by the majority vote of all other non-meta players.
96
+
97
+ Names:
98
+
99
+ - Meta Marjority: Original name by Karol Langner
100
+ """
90
101
91
102
name = "Meta Majority"
92
103
@@ -101,7 +112,12 @@ def meta_strategy(results, opponent):
101
112
102
113
103
114
class MetaMinority (MetaPlayer ):
104
- """A player who goes by the minority vote of all other non-meta players."""
115
+ """A player who goes by the minority vote of all other non-meta players.
116
+
117
+ Names:
118
+
119
+ - Meta Minority: Original name by Karol Langner
120
+ """
105
121
106
122
name = "Meta Minority"
107
123
@@ -116,7 +132,12 @@ def meta_strategy(results, opponent):
116
132
117
133
118
134
class MetaWinner (MetaPlayer ):
119
- """A player who goes by the strategy of the current winner."""
135
+ """A player who goes by the strategy of the current winner.
136
+
137
+ Names:
138
+
139
+ - Meta Winner: Original name by Karol Langner
140
+ """
120
141
121
142
name = "Meta Winner"
122
143
@@ -162,7 +183,7 @@ class MetaWinnerEnsemble(MetaWinner):
162
183
163
184
Names:
164
185
165
- Meta Winner Ensemble: Original name by Marc Harper
186
+ - Meta Winner Ensemble: Original name by Marc Harper
166
187
"""
167
188
168
189
name = "Meta Winner Ensemble"
@@ -182,7 +203,12 @@ def meta_strategy(self, results, opponent):
182
203
183
204
184
205
class MetaHunter (MetaPlayer ):
185
- """A player who uses a selection of hunters."""
206
+ """A player who uses a selection of hunters.
207
+
208
+ Names
209
+
210
+ - Meta Hunter: Original name by Marc Harper
211
+ """
186
212
187
213
name = "Meta Hunter"
188
214
classifier = {
@@ -225,7 +251,12 @@ def meta_strategy(results, opponent):
225
251
226
252
227
253
class MetaHunterAggressive (MetaPlayer ):
228
- """A player who uses a selection of hunters."""
254
+ """A player who uses a selection of hunters.
255
+
256
+ Names
257
+
258
+ - Meta Hunter: Original name by Marc Harper
259
+ """
229
260
230
261
name = "Meta Hunter Aggressive"
231
262
classifier = {
@@ -264,7 +295,12 @@ def meta_strategy(results, opponent):
264
295
265
296
266
297
class MetaMajorityMemoryOne (MetaMajority ):
267
- """MetaMajority with the team of Memory One players"""
298
+ """MetaMajority with the team of Memory One players
299
+
300
+ Names
301
+
302
+ - Meta Majority Memory One: Original name by Marc Harper
303
+ """
268
304
269
305
name = "Meta Majority Memory One"
270
306
@@ -275,7 +311,12 @@ def __init__(self):
275
311
276
312
277
313
class MetaMajorityFiniteMemory (MetaMajority ):
278
- """MetaMajority with the team of Finite Memory Players"""
314
+ """MetaMajority with the team of Finite Memory Players
315
+
316
+ Names
317
+
318
+ - Meta Majority Finite Memory: Original name by Marc Harper
319
+ """
279
320
280
321
name = "Meta Majority Finite Memory"
281
322
@@ -286,7 +327,12 @@ def __init__(self):
286
327
287
328
288
329
class MetaMajorityLongMemory (MetaMajority ):
289
- """MetaMajority with the team of Long (infinite) Memory Players"""
330
+ """MetaMajority with the team of Long (infinite) Memory Players
331
+
332
+ Names
333
+
334
+ - Meta Majority Long Memory: Original name by Marc Harper
335
+ """
290
336
291
337
name = "Meta Majority Long Memory"
292
338
@@ -297,7 +343,12 @@ def __init__(self):
297
343
298
344
299
345
class MetaWinnerMemoryOne (MetaWinner ):
300
- """MetaWinner with the team of Memory One players"""
346
+ """MetaWinner with the team of Memory One players
347
+
348
+ Names
349
+
350
+ - Meta Winner Memory Memory One: Original name by Marc Harper
351
+ """
301
352
302
353
name = "Meta Winner Memory One"
303
354
@@ -308,7 +359,12 @@ def __init__(self):
308
359
309
360
310
361
class MetaWinnerFiniteMemory (MetaWinner ):
311
- """MetaWinner with the team of Finite Memory Players"""
362
+ """MetaWinner with the team of Finite Memory Players
363
+
364
+ Names
365
+
366
+ - Meta Winner Finite Memory: Original name by Marc Harper
367
+ """
312
368
313
369
name = "Meta Winner Finite Memory"
314
370
@@ -319,8 +375,12 @@ def __init__(self):
319
375
320
376
321
377
class MetaWinnerLongMemory (MetaWinner ):
322
- """MetaWinner with the team of Long (infinite) Memory Players"""
378
+ """MetaWinner with the team of Long (infinite) Memory Players
323
379
380
+ Names
381
+
382
+ - Meta Winner Long Memory: Original name by Marc Harper
383
+ """
324
384
name = "Meta Winner Long Memory"
325
385
326
386
def __init__ (self ):
@@ -330,7 +390,12 @@ def __init__(self):
330
390
331
391
332
392
class MetaWinnerDeterministic (MetaWinner ):
333
- """Meta Winner with the team of Deterministic Players."""
393
+ """Meta Winner with the team of Deterministic Players.
394
+
395
+ Names
396
+
397
+ - Meta Winner Deterministic: Original name by Marc Harper
398
+ """
334
399
335
400
name = "Meta Winner Deterministic"
336
401
@@ -342,7 +407,12 @@ def __init__(self):
342
407
343
408
344
409
class MetaWinnerStochastic (MetaWinner ):
345
- """Meta Winner with the team of Stochastic Players."""
410
+ """Meta Winner with the team of Stochastic Players.
411
+
412
+ Names
413
+
414
+ - Meta Winner Stochastic: Original name by Marc Harper
415
+ """
346
416
347
417
name = "Meta Winner Stochastic"
348
418
@@ -367,6 +437,10 @@ class MetaMixer(MetaPlayer):
367
437
distribution : list representing a probability distribution, optional
368
438
This gives the distribution from which to select the players.
369
439
If none is passed will select uniformly.
440
+
441
+ Names
442
+
443
+ - Meta Mixer: Original name by Vince Knight
370
444
"""
371
445
372
446
name = "Meta Mixer"
@@ -390,7 +464,12 @@ def meta_strategy(self, results, opponent):
390
464
391
465
392
466
class NMWEDeterministic (NiceMetaWinnerEnsemble ):
393
- """Nice Meta Winner Ensemble with the team of Deterministic Players."""
467
+ """Nice Meta Winner Ensemble with the team of Deterministic Players.
468
+
469
+ Names
470
+
471
+ - Nice Meta Winner Ensemble Deterministic: Original name by Marc Harper
472
+ """
394
473
395
474
name = "NMWE Deterministic"
396
475
@@ -402,7 +481,12 @@ def __init__(self):
402
481
403
482
404
483
class NMWEStochastic (NiceMetaWinnerEnsemble ):
405
- """Nice Meta Winner Ensemble with the team of Stochastic Players."""
484
+ """Nice Meta Winner Ensemble with the team of Stochastic Players.
485
+
486
+ Names
487
+
488
+ - Nice Meta Winner Ensemble Stochastic: Original name by Marc Harper
489
+ """
406
490
407
491
name = "NMWE Stochastic"
408
492
@@ -413,7 +497,12 @@ def __init__(self):
413
497
414
498
415
499
class NMWEFiniteMemory (NiceMetaWinnerEnsemble ):
416
- """Nice Meta Winner Ensemble with the team of Finite Memory Players."""
500
+ """Nice Meta Winner Ensemble with the team of Finite Memory Players.
501
+
502
+ Names
503
+
504
+ - Nice Meta Winner Ensemble Finite Memory: Original name by Marc Harper
505
+ """
417
506
418
507
name = "NMWE Finite Memory"
419
508
@@ -424,7 +513,12 @@ def __init__(self):
424
513
425
514
426
515
class NMWELongMemory (NiceMetaWinnerEnsemble ):
427
- """Nice Meta Winner Ensemble with the team of Long Memory Players."""
516
+ """Nice Meta Winner Ensemble with the team of Long Memory Players.
517
+
518
+ Names
519
+
520
+ - Nice Meta Winner Ensemble Long Memory: Original name by Marc Harper
521
+ """
428
522
429
523
name = "NMWE Long Memory"
430
524
@@ -435,7 +529,12 @@ def __init__(self):
435
529
436
530
437
531
class NMWEMemoryOne (NiceMetaWinnerEnsemble ):
438
- """Nice Meta Winner Ensemble with the team of Memory One Players."""
532
+ """Nice Meta Winner Ensemble with the team of Memory One Players.
533
+
534
+ Names
535
+
536
+ - Nice Meta Winner Ensemble Memory One: Original name by Marc Harper
537
+ """
439
538
440
539
name = "NMWE Memory One"
441
540
0 commit comments