Skip to content

Commit bcdf817

Browse files
committed
add name
1 parent 5348663 commit bcdf817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/strategies/momentum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(
4444
self.momentum = 1.0
4545

4646
def __repr__(self):
47-
return f"Momentum: {self.alpha}, {self.threshold}"
47+
return f"Momentum: {self.momentum}, Alpha: {self.alpha}, Threshold: {self.threshold}"
4848

4949
def update_momentum(self, opponent_action):
5050
# If the opponent defects, the momentum decreases, reflecting a loss of trust.

0 commit comments

Comments
 (0)