File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ class LookerUp(Player):
31
31
32
32
where m and n are both zero. Tit-For-Tat is given by:
33
33
34
- {
35
- ('', 'C', 'D'): D,
36
- ('', 'D', 'D'): D,
37
- ('', 'C', 'C'): C,
38
- ('', 'D', 'C'): C,
34
+ {('', 'C', 'D'): D,
35
+ ('', 'D', 'D'): D,
36
+ ('', 'C', 'C'): C,
37
+ ('', 'D', 'C'): C,
39
38
}
40
39
41
40
where m=1 and n=0.
@@ -44,11 +43,8 @@ class LookerUp(Player):
44
43
opposed to most recent actions) will have a non-empty first string in the
45
44
tuple. For example, this fragment of a dict:
46
45
47
- {
48
- ...
49
- ('C', 'C', 'C'): C.
50
- ('D', 'C', 'C'): D,
51
- ...
46
+ {('C', 'C', 'C'): C,
47
+ ('D', 'C', 'C'): D,
52
48
}
53
49
54
50
states that if self and opponent both cooperated on the previous turn, we
@@ -59,11 +55,8 @@ class LookerUp(Player):
59
55
(so m or n are greater than 1), simply concatenate the strings together.
60
56
Below is an incomplete example where m=3 and n=2.
61
57
62
- {
63
- ...
64
- ('CC', 'CDD', 'CCC'): C.
65
- ('CD', 'CCD', 'CCC'): D,
66
- ...
58
+ {('CC', 'CDD', 'CCC'): C,
59
+ ('CD', 'CCD', 'CCC'): D,
67
60
}
68
61
"""
69
62
You can’t perform that action at this time.
0 commit comments