@@ -27,7 +27,7 @@ def test_strategy(self):
2727 self .versus_test (axelrod .Cooperator (), expected_actions = actions ,
2828 attrs = {"opponent_class" : "Cooperative" })
2929
30- opponent = axelrod .MockPlayer ([C ] * 6 + [D ])
30+ opponent = axelrod .MockPlayer (actions = [C ] * 6 + [D ])
3131 actions = [(C , C )] * 6 + [(C , D ), (D , C )]
3232 self .versus_test (opponent , expected_actions = actions ,
3333 attrs = {"opponent_class" : "Cooperative" })
@@ -36,30 +36,30 @@ def test_strategy(self):
3636 self .versus_test (axelrod .Defector (), expected_actions = actions ,
3737 attrs = {"opponent_class" : "ALLD" })
3838
39- opponent = axelrod .MockPlayer ([D , C , D , C , D , C ])
39+ opponent = axelrod .MockPlayer (actions = [D , C , D , C , D , C ])
4040 actions = [(C , D ), (D , C ), (C , D ), (D , C ),
4141 (C , D ), (D , C ), (C , D ), (C , C ),
4242 (C , D ), (D , C )]
4343 self .versus_test (opponent , expected_actions = actions ,
4444 attrs = {"opponent_class" : "STFT" })
4545
46- opponent = axelrod .MockPlayer ([D , D , C , D , D , C ])
46+ opponent = axelrod .MockPlayer (actions = [D , D , C , D , D , C ])
4747 actions = [(C , D ), (D , D ), (D , C ), (C , D ), (D , D ), (D , C ), (D , D )]
4848 self .versus_test (opponent , expected_actions = actions ,
4949 attrs = {"opponent_class" : "PavlovD" })
5050
51- opponent = axelrod .MockPlayer ([D , D , C , D , D , C , D ])
51+ opponent = axelrod .MockPlayer (actions = [D , D , C , D , D , C , D ])
5252 actions = [(C , D ), (D , D ), (D , C ), (C , D ),
5353 (D , D ), (D , C ), (D , D ), (C , D )]
5454 self .versus_test (opponent , expected_actions = actions ,
5555 attrs = {"opponent_class" : "PavlovD" })
5656
57- opponent = axelrod .MockPlayer ([C , C , C , D , D , D ])
57+ opponent = axelrod .MockPlayer (actions = [C , C , C , D , D , D ])
5858 actions = [(C , C ), (C , C ), (C , C ), (C , D ), (D , D ), (D , D ), (D , C )]
5959 self .versus_test (opponent , expected_actions = actions ,
6060 attrs = {"opponent_class" : "Random" })
6161
62- opponent = axelrod .MockPlayer ([D , D , D , C , C , C ])
62+ opponent = axelrod .MockPlayer (actions = [D , D , D , C , C , C ])
6363 actions = [(C , D ), (D , D ), (D , D ), (D , C ), (C , C ), (C , C ), (D , D )]
6464 self .versus_test (opponent , expected_actions = actions ,
6565 attrs = {"opponent_class" : "Random" })
@@ -90,47 +90,47 @@ def test_strategy(self):
9090 self .versus_test (axelrod .Defector (), expected_actions = actions ,
9191 attrs = {"opponent_class" : "ALLD" })
9292
93- opponent = axelrod .MockPlayer ([C , D , D , D , D , D , D ])
93+ opponent = axelrod .MockPlayer (actions = [C , D , D , D , D , D , D ])
9494 actions = [(C , C ), (C , D )] + [(D , D )] * 5 + [(D , C )]
9595 self .versus_test (opponent , expected_actions = actions ,
9696 attrs = {"opponent_class" : "ALLD" })
9797
98- opponent = axelrod .MockPlayer ([C , C , D , D , D , D , D ])
98+ opponent = axelrod .MockPlayer (actions = [C , C , D , D , D , D , D ])
9999 actions = [(C , C ), (C , C ), (C , D )] + [(D , D )] * 4 + [(D , C )]
100100 self .versus_test (opponent , expected_actions = actions ,
101101 attrs = {"opponent_class" : "ALLD" })
102102
103- opponent = axelrod .MockPlayer ([C , D , D , C , D , D , D ])
103+ opponent = axelrod .MockPlayer (actions = [C , D , D , C , D , D , D ])
104104 actions = [(C , C ), (C , D ), (D , D ), (D , C ),
105105 (C , D ), (D , D ), (D , D ), (D , C )]
106106 self .versus_test (opponent , expected_actions = actions ,
107107 attrs = {"opponent_class" : "ALLD" })
108108
109- opponent = axelrod .MockPlayer ([C , D , D , C , C , D , D ])
109+ opponent = axelrod .MockPlayer (actions = [C , D , D , C , C , D , D ])
110110 actions = [(C , C ), (C , D ), (D , D ), (D , C ),
111111 (C , C ), (C , D ), (C , D ), (D , C )]
112112 self .versus_test (opponent , expected_actions = actions ,
113113 attrs = {"opponent_class" : "STFT" })
114114
115- opponent = axelrod .MockPlayer ([C , D , C , D , C , D , D ])
115+ opponent = axelrod .MockPlayer (actions = [C , D , C , D , C , D , D ])
116116 actions = [(C , C ), (C , D ), (D , C ), (C , D ),
117117 (D , C ), (C , D ), (C , D ), (D , C )]
118118 self .versus_test (opponent , expected_actions = actions ,
119119 attrs = {"opponent_class" : "STFT" })
120120
121- opponent = axelrod .MockPlayer ([D , D , D , C , C , C , C ])
121+ opponent = axelrod .MockPlayer (actions = [D , D , D , C , C , C , C ])
122122 actions = [(C , D ), (D , D ), (D , D ), (D , C ),
123123 (C , C ), (C , C ), (C , C ), (C , D )]
124124 self .versus_test (opponent , expected_actions = actions ,
125125 attrs = {"opponent_class" : "STFT" })
126126
127- opponent = axelrod .MockPlayer ([C , C , C , C , D , D ])
127+ opponent = axelrod .MockPlayer (actions = [C , C , C , C , D , D ])
128128 actions = [(C , C ), (C , C ), (C , C ), (C , C ),
129129 (C , D ), (D , D ), (D , C ), (D , C )]
130130 self .versus_test (opponent , expected_actions = actions ,
131131 attrs = {"opponent_class" : "Random" })
132132
133- opponent = axelrod .MockPlayer ([D , D , C , C , C , C ])
133+ opponent = axelrod .MockPlayer (actions = [D , D , C , C , C , C ])
134134 actions = [(C , D ), (D , D ), (D , C ), (C , C ),
135135 (C , C ), (C , C ), (D , D ), (D , D )]
136136 self .versus_test (opponent , expected_actions = actions ,
0 commit comments