Skip to content

Commit 563a6bf

Browse files
committed
remove unnecessary lines
1 parent b8ced55 commit 563a6bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

axelrod/strategies/frequency_analyzer.py

Lines changed: 1 addition & 3 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.8
62+
self.minimum_cooperation_ratio = 0.15
6363
self.frequency_table = dict()
6464
self.last_sequence = ''
6565
self.current_sequence = ''
@@ -88,8 +88,6 @@ def strategy(self, opponent: Player) -> Action:
8888
return C
8989
return D
9090
except:
91-
if not self.history:
92-
return C
9391
# React to the opponent's last move
9492
if opponent.history[-1] == D:
9593
return D

0 commit comments

Comments
 (0)