Skip to content

Commit 9deeb08

Browse files
committed
Change NTitsForMTats default values
1 parent 7dc22d8 commit 9deeb08

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

axelrod/strategies/_strategies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
MirrorMindReader,
194194
Negation,
195195
NiceAverageCopier,
196+
NTitsForMTats,
196197
Nydegger,
197198
OmegaTFT,
198199
OnceBitten,

axelrod/strategies/titfortat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,13 @@ class NTitsForMTats(Player):
741741
'manipulates_state': False
742742
}
743743

744-
def __init__(self, N: int=1, M: int=1) -> None:
744+
def __init__(self, N: int=3, M: int=2) -> None:
745745
"""
746746
Parameters
747747
----------
748-
N, int
748+
N
749749
Number of retaliations
750-
M, int
750+
M
751751
Number of defection before retaliation
752752
753753
Special Cases
@@ -769,6 +769,6 @@ def strategy(self, opponent: Player) -> Action:
769769
if not self.M or opponent.history[-self.M:].count(D) == self.M:
770770
self.retaliate_count = self.N
771771
if self.retaliate_count:
772-
self.retaliate_count-=1
772+
self.retaliate_count -= 1
773773
return D
774774
return C

docs/tutorials/advanced/classification_of_strategies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ range of memory_depth values, we can use the 'min_memory_depth' and
6969
... }
7070
>>> strategies = axl.filtered_strategies(filterset)
7171
>>> len(strategies)
72-
50
72+
51
7373

7474
We can also identify strategies that make use of particular properties of the
7575
tournament. For example, here is the number of strategies that make use of the

0 commit comments

Comments
 (0)