Skip to content

Commit c37fd74

Browse files
committed
Cleanup some comments
1 parent 3eac7c2 commit c37fd74

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

axelrod/strategies/axelrod_first.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ def __init__(self, p: float = 0.9) -> None:
513513
or (D, C), i.e. the opponent cooperated.
514514
"""
515515
four_vector = (p, 0, p, 0)
516-
# self.p = p
517516
super().__init__(four_vector)
518517

519518

axelrod/strategies/axelrod_second.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ class SecondByCave(Player):
742742
- turn > 19 and percent defects > 0.79
743743
744744
Otherwise, respond to cooperation with cooperation. And respond to defections
745-
with either a defectection (if opponent has defected at least 18 times) or with
745+
with either a defection (if opponent has defected at least 18 times) or with
746746
a random (50/50) choice. [Cooperate on first.]
747747
748748
Names:

axelrod/strategies/finite_state_machines.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def __init__(
160160
transitions=transitions,
161161
initial_state=initial_state,
162162
initial_action=initial_action)
163-
# EvolvablePlayer.__init__(self)
164163
self.mutation_probability = mutation_probability
165164
self.overwrite_init_kwargs(
166165
transitions=transitions,

axelrod/strategies/hmm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def strategy(self, opponent: Player) -> Action:
220220
def set_seed(self, seed=None):
221221
super().set_seed(seed=seed)
222222
# Share RNG with HMM
223-
# The evolvable version of the class needs to manually share the rng with the HMM.
223+
# The evolvable version of the class needs to manually share the rng with the HMM
224224
# after initialization.
225225
try:
226226
self.hmm._random = self._random

0 commit comments

Comments
 (0)