Skip to content

Commit

Permalink
remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
miller-ian committed Jan 8, 2025
1 parent b8ced55 commit 563a6bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions axelrod/strategies/frequency_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self) -> None:
The probability to cooperate
"""
super().__init__()
self.minimum_cooperation_ratio = 0.8
self.minimum_cooperation_ratio = 0.15
self.frequency_table = dict()
self.last_sequence = ''
self.current_sequence = ''
Expand Down Expand Up @@ -88,8 +88,6 @@ def strategy(self, opponent: Player) -> Action:
return C
return D
except:
if not self.history:
return C
# React to the opponent's last move
if opponent.history[-1] == D:
return D
Expand Down

0 comments on commit 563a6bf

Please sign in to comment.