@@ -20,39 +20,39 @@ class TestDesperate(TestPlayer):
20
20
}
21
21
22
22
def test_strategy (self ):
23
- self .first_play_test (C , seed = 1 )
24
- self .first_play_test (D , seed = 2 )
23
+ self .first_play_test (C , seed = 1 )
24
+ self .first_play_test (D , seed = 2 )
25
25
26
- #Our Player (Desperate) vs Cooperator SEED -->1
26
+ # Our Player (Desperate) vs Cooperator SEED --> 1
27
27
opponent = axelrod .Cooperator ()
28
28
opponent_actions = [C ] * 5
29
- actions = [(C , C ), (D , C ), (D , C ), (D , C ), (D ,C )]
30
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
29
+ actions = [(C , C ), (D , C ), (D , C ), (D , C ), (D , C )]
30
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
31
31
32
- #Our Player (Desperate) vs Cooperator SEED -->2
32
+ # Our Player (Desperate) vs Cooperator SEED --> 2
33
33
opponent = axelrod .Cooperator ()
34
- actions = [(D , C ), (D , C ), (D , C ), (D , C ), (D ,C )]
35
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
34
+ actions = [(D , C ), (D , C ), (D , C ), (D , C ), (D , C )]
35
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
36
36
37
- #Our Player (Desperate) vs Defector SEED -->1
37
+ # Our Player (Desperate) vs Defector SEED --> 1
38
38
opponent = axelrod .Defector ()
39
- actions = [(C , D ), (D , D ), (C , D ), (D , D ), (C ,D )]
40
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
39
+ actions = [(C , D ), (D , D ), (C , D ), (D , D ), (C , D )]
40
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
41
41
42
- #Our Player (Desperate) vs Defector SEED -->2
42
+ # Our Player (Desperate) vs Defector SEED --> 2
43
43
opponent = axelrod .Defector ()
44
- actions = [(D , D ), (C , D ), (D , D ), (C , D ), (D ,D )]
45
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
44
+ actions = [(D , D ), (C , D ), (D , D ), (C , D ), (D , D )]
45
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
46
46
47
- #Our Player (Desperate) vs Alternator SEED -->1
47
+ # Our Player (Desperate) vs Alternator SEED --> 1
48
48
opponent = axelrod .Alternator ()
49
- actions = [(C , C ), (D , D ), (C , C ), (D , D ), (C ,C )]
50
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
49
+ actions = [(C , C ), (D , D ), (C , C ), (D , D ), (C , C )]
50
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
51
51
52
- #Our Player (Desperate) vs Alternator SEED -->2
52
+ # Our Player (Desperate) vs Alternator SEED --> 2
53
53
opponent = axelrod .Alternator ()
54
- actions = [(D , C ), (D , D ), (C , C ), (D , D ), (C ,C )]
55
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
54
+ actions = [(D , C ), (D , D ), (C , C ), (D , D ), (C , C )]
55
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
56
56
57
57
class TestHopeless (TestPlayer ):
58
58
@@ -69,39 +69,39 @@ class TestHopeless(TestPlayer):
69
69
}
70
70
71
71
def test_strategy (self ):
72
- self .first_play_test (C , seed = 1 )
73
- self .first_play_test (D , seed = 2 )
72
+ self .first_play_test (C , seed = 1 )
73
+ self .first_play_test (D , seed = 2 )
74
74
75
- #Our Player (Hopeless) vs Cooperator SEED -->1
75
+ # Our Player (Hopeless) vs Cooperator SEED --> 1
76
76
opponent = axelrod .Cooperator ()
77
77
opponent_actions = [C ] * 5
78
- actions = [(C , C ), (D , C ), (C , C ), (D , C ), (C ,C )]
79
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
78
+ actions = [(C , C ), (D , C ), (C , C ), (D , C ), (C , C )]
79
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
80
80
81
- #Our Player (Hopeless) vs Cooperator SEED -->2
81
+ # Our Player (Hopeless) vs Cooperator SEED --> 2
82
82
opponent = axelrod .Cooperator ()
83
- actions = [(D , C ), (C , C ), (D , C ), (C , C ), (D ,C )]
84
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
83
+ actions = [(D , C ), (C , C ), (D , C ), (C , C ), (D , C )]
84
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
85
85
86
- #Our Player (Hopeless) vs Defector SEED -->1
86
+ # Our Player (Hopeless) vs Defector SEED --> 1
87
87
opponent = axelrod .Defector ()
88
- actions = [(C , D ), (C , D ), (C , D ), (C , D ), (C ,D )]
89
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
88
+ actions = [(C , D ), (C , D ), (C , D ), (C , D ), (C , D )]
89
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
90
90
91
- #Our Player (Hopeless) vs Defector SEED -->2
91
+ # Our Player (Hopeless) vs Defector SEED --> 2
92
92
opponent = axelrod .Defector ()
93
- actions = [(D , D ), (C , D ), (C , D ), (C , D ), (C ,D )]
94
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
93
+ actions = [(D , D ), (C , D ), (C , D ), (C , D ), (C , D )]
94
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
95
95
96
- #Our Player (Hopeless) vs Alternator SEED -->1
96
+ # Our Player (Hopeless) vs Alternator SEED --> 1
97
97
opponent = axelrod .Alternator ()
98
- actions = [(C , C ), (D , D ), (C , C ), (D , D ), (C ,C )]
99
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
98
+ actions = [(C , C ), (D , D ), (C , C ), (D , D ), (C , C )]
99
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
100
100
101
- #Our Player (Hopeless) vs Alternator SEED -->2
101
+ # Our Player (Hopeless) vs Alternator SEED --> 2
102
102
opponent = axelrod .Alternator ()
103
- actions = [(D , C ), (C , D ), (C , C ), (D , D ), (C ,C )]
104
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
103
+ actions = [(D , C ), (C , D ), (C , C ), (D , D ), (C , C )]
104
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
105
105
106
106
107
107
class TestWilling (TestPlayer ):
@@ -119,36 +119,36 @@ class TestWilling(TestPlayer):
119
119
}
120
120
121
121
def test_strategy (self ):
122
- self .first_play_test (C , seed = 1 )
123
- self .first_play_test (D , seed = 2 )
122
+ self .first_play_test (C , seed = 1 )
123
+ self .first_play_test (D , seed = 2 )
124
124
125
- #Our Player (Willing) vs Cooperator SEED -->1
125
+ # Our Player (Willing) vs Cooperator SEED --> 1
126
126
opponent = axelrod .Cooperator ()
127
127
opponent_actions = [C ] * 5
128
- actions = [(C , C ), (C , C ), (C , C ), (C , C ), (C ,C )]
129
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
128
+ actions = [(C , C ), (C , C ), (C , C ), (C , C ), (C , C )]
129
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
130
130
131
- #Our Player (Willing) vs Cooperator SEED -->2
131
+ # Our Player (Willing) vs Cooperator SEED --> 2
132
132
opponent = axelrod .Cooperator ()
133
- actions = [(D , C ), (C , C ), (C , C ), (C , C ), (C ,C )]
134
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
133
+ actions = [(D , C ), (C , C ), (C , C ), (C , C ), (C , C )]
134
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
135
135
136
- #Our Player (Willing) vs Defector SEED -->1
136
+ # Our Player (Willing) vs Defector SEED --> 1
137
137
opponent = axelrod .Defector ()
138
- actions = [(C , D ), (C , D ), (C , D ), (C , D ), (C ,D )]
139
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
138
+ actions = [(C , D ), (C , D ), (C , D ), (C , D ), (C , D )]
139
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
140
140
141
- #Our Player (Willing) vs Defector SEED -->2
141
+ # Our Player (Willing) vs Defector SEED --> 2
142
142
opponent = axelrod .Defector ()
143
- actions = [(D , D ), (D , D ), (D , D ), (D , D ), (D ,D )]
144
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
143
+ actions = [(D , D ), (D , D ), (D , D ), (D , D ), (D , D )]
144
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
145
145
146
- #Our Player (Willing) vs Alternator SEED -->1
146
+ # Our Player (Willing) vs Alternator SEED --> 1
147
147
opponent = axelrod .Alternator ()
148
- actions = [(C , C ), (C , D ), (C , C ), (C , D ), (C ,C )]
149
- self .versus_test (opponent , expected_actions = actions , seed = 1 )
148
+ actions = [(C , C ), (C , D ), (C , C ), (C , D ), (C , C )]
149
+ self .versus_test (opponent , expected_actions = actions , seed = 1 )
150
150
151
- #Our Player (Willing) vs Alternator SEED -->2
151
+ # Our Player (Willing) vs Alternator SEED --> 2
152
152
opponent = axelrod .Alternator ()
153
- actions = [(D , C ), (C , D ), (C , C ), (C , D ), (C ,C )]
154
- self .versus_test (opponent , expected_actions = actions , seed = 2 )
153
+ actions = [(D , C ), (C , D ), (C , C ), (C , D ), (C , C )]
154
+ self .versus_test (opponent , expected_actions = actions , seed = 2 )
0 commit comments