Skip to content

Commit 96eef3b

Browse files
committed
fix type error
1 parent 563a6bf commit 96eef3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/strategies/frequency_analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self) -> None:
5959
The probability to cooperate
6060
"""
6161
super().__init__()
62-
self.minimum_cooperation_ratio = 0.15
62+
self.minimum_cooperation_ratio = 0.25
6363
self.frequency_table = dict()
6464
self.last_sequence = ''
6565
self.current_sequence = ''
@@ -83,7 +83,7 @@ def strategy(self, opponent: Player) -> Action:
8383
else:
8484
try:
8585
results = self.frequency_table[self.current_sequence]
86-
cooperates = results.count('C')
86+
cooperates = results.count(C)
8787
if (cooperates / len(self.history)) > self.minimum_cooperation_ratio:
8888
return C
8989
return D

0 commit comments

Comments
 (0)