Skip to content

Commit 54beea0

Browse files
committed
Lookerup docstring
1 parent 1325f80 commit 54beea0

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

axelrod/strategies/lookerup.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ class LookerUp(Player):
3131
3232
where m and n are both zero. Tit-For-Tat is given by:
3333
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,
3938
}
4039
4140
where m=1 and n=0.
@@ -44,11 +43,8 @@ class LookerUp(Player):
4443
opposed to most recent actions) will have a non-empty first string in the
4544
tuple. For example, this fragment of a dict:
4645
47-
{
48-
...
49-
('C', 'C', 'C'): C.
50-
('D', 'C', 'C'): D,
51-
...
46+
{('C', 'C', 'C'): C,
47+
('D', 'C', 'C'): D,
5248
}
5349
5450
states that if self and opponent both cooperated on the previous turn, we
@@ -59,11 +55,8 @@ class LookerUp(Player):
5955
(so m or n are greater than 1), simply concatenate the strings together.
6056
Below is an incomplete example where m=3 and n=2.
6157
62-
{
63-
...
64-
('CC', 'CDD', 'CCC'): C.
65-
('CD', 'CCD', 'CCC'): D,
66-
...
58+
{('CC', 'CDD', 'CCC'): C,
59+
('CD', 'CCD', 'CCC'): D,
6760
}
6861
"""
6962

0 commit comments

Comments
 (0)