We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5348663 commit bcdf817Copy full SHA for bcdf817
axelrod/strategies/momentum.py
@@ -44,7 +44,7 @@ def __init__(
44
self.momentum = 1.0
45
46
def __repr__(self):
47
- return f"Momentum: {self.alpha}, {self.threshold}"
+ return f"Momentum: {self.momentum}, Alpha: {self.alpha}, Threshold: {self.threshold}"
48
49
def update_momentum(self, opponent_action):
50
# If the opponent defects, the momentum decreases, reflecting a loss of trust.
0 commit comments