@@ -131,25 +131,19 @@ def test_strategy(self):
131
131
# First move is to cooperate
132
132
self .first_play_test (C )
133
133
# Test that it is stochastic
134
-
135
- opponent = axelrod .MockPlayer (actions = [D , C , D , D , C ])
136
- actions = [(C , D ), (C ,C ), (C ,D ), (C ,D ), (C ,C )]
137
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
134
+ opponent = axelrod .MockPlayer (actions = [D , C , D , D , C ])
135
+ actions = [(C , D ), (D , C ), (C , D ), (D , D ), (D , C )]
136
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
137
+ # Should respond differently with a different seed
138
+ actions = [(C , D ), (D , C ), (D , D ), (D , D ), (C , C )]
139
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
138
140
139
- opponent = axelrod .MockPlayer (actions = [D , C , D , D , C ])
140
- actions = [(C , D ), (C ,C ), (C ,D ), (C ,D ), (D ,C )]
141
- self .versus_test (opponent , expected_actions = actions , seed = 13 )
142
-
143
- ## Will cooperate if opponent cooperates.
144
- #actions = [(C, C), (C, C), (C, C), (C, C), (C, C)]
145
- #self.versus_test(axelrod.Cooperator(), expected_actions=actions)
146
- ## Will defect twice when last turn of opponent was defection.
147
- #opponent = axelrod.MockPlayer(actions=[D, C, C, D, C])
148
- #actions = [(C, D), (D, C), (D, C), (C, D), (D, C)]
149
- #self.versus_test(opponent, expected_actions=actions)
150
- ## Test against defector
151
- #actions = [(C, D), (D, D), (D, D), (D, D), (D, D)]
152
- #self.versus_test(axelrod.Defector(), expected_actions=actions)
141
+ # Will cooperate if opponent cooperates.
142
+ actions = [(C , C ), (C , C ), (C , C ), (C , C ), (C , C )]
143
+ self .versus_test (axelrod .Cooperator (), expected_actions = actions )
144
+ # Test against defector
145
+ actions = [(C , D ), (D , D ), (D , D ), (D , D ), (D , D )]
146
+ self .versus_test (axelrod .Defector (), expected_actions = actions )
153
147
154
148
class TestBully (TestPlayer ):
155
149
0 commit comments