Skip to content

Commit 27128ea

Browse files
committed
Fix sphinx build warning/error.
1 parent a195a4d commit 27128ea

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

axelrod/strategies/lookerup.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,19 @@ class LookerUp(Player):
3333
3434
where m and n are both zero. Tit-For-Tat is given by:
3535
36-
{('', 'C', 'D'): D,
37-
('', 'D', 'D'): D,
38-
('', 'C', 'C'): C,
39-
('', 'D', 'C'): C,
40-
}
36+
{('', 'C', 'D'): D,
37+
('', 'D', 'D'): D,
38+
('', 'C', 'C'): C,
39+
('', 'D', 'C'): C}
4140
4241
where m=1 and n=0.
4342
4443
Lookup tables where the action depends on the opponent's first actions (as
4544
opposed to most recent actions) will have a non-empty first string in the
4645
tuple. For example, this fragment of a dict:
4746
48-
{('C', 'C', 'C'): C,
49-
('D', 'C', 'C'): D,
50-
}
47+
{('C', 'C', 'C'): C,
48+
('D', 'C', 'C'): D}
5149
5250
states that if self and opponent both cooperated on the previous turn, we
5351
should cooperate this turn unless the opponent started by defecting, in
@@ -57,9 +55,9 @@ class LookerUp(Player):
5755
(so m or n are greater than 1), simply concatenate the strings together.
5856
Below is an incomplete example where m=3 and n=2.
5957
60-
{('CC', 'CDD', 'CCC'): C,
61-
('CD', 'CCD', 'CCC'): D,
62-
}
58+
{('CC', 'CDD', 'CCC'): C,
59+
('CD', 'CCD', 'CCC'): D}
60+
6361
"""
6462

6563
name = 'LookerUp'

0 commit comments

Comments
 (0)