Skip to content

Commit 3c12ba5

Browse files
author
gaffney2010
committed
Added more comments to new FSM strategies.
1 parent c56222a commit 3c12ba5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axelrod/tests/strategies/test_finite_state_machines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ def test_strategy(self):
538538
state_and_actions = [(1, C)] * 10
539539
self.transitions_test(state_and_actions)
540540
# Visits state 2, but then comes back
541+
# Defaults if DC streak is complete. Starts streak over either way.
541542
state_and_actions = [(1, D), (2, D)]
542543
self.transitions_test(state_and_actions)
543-
# Visits state 2, but then comes back
544544
state_and_actions = [(1, D), (2, C)]
545545
self.transitions_test(state_and_actions)
546546

@@ -567,13 +567,13 @@ class TestUsuallyDefects(TestFSMPlayer):
567567
"""
568568

569569
def test_strategy(self):
570-
# Never leaves state 1 if C
570+
# Never leaves state 1 if D
571571
state_and_actions = [(1, D)] * 10
572572
self.transitions_test(state_and_actions)
573573
# Visits state 2, but then comes back
574+
# Cooperates if CD streak is complete. Starts streak over either way.
574575
state_and_actions = [(1, C), (2, D)]
575576
self.transitions_test(state_and_actions)
576-
# Visits state 2, but then comes back
577577
state_and_actions = [(1, C), (2, C)]
578578
self.transitions_test(state_and_actions)
579579

0 commit comments

Comments
 (0)