@@ -134,9 +134,6 @@ def test_implemented_strategies():
134
134
opponent = opponent_strategy ()
135
135
axl_match = Match ((axl_player , opponent ))
136
136
axl_interactions = axl_match .play ()
137
- print (player , axl_player , opponent )
138
- print (interactions )
139
- print (axl_interactions )
140
137
assert interactions == axl_interactions
141
138
142
139
@@ -146,12 +143,11 @@ def test_champion_v_alternator():
146
143
"""
147
144
player = Player ("k61r" )
148
145
opponent = Alternator ()
149
- match = Match ((player , opponent ))
150
-
151
146
seed = 0
152
- interactions = match .play (seed = seed )
147
+ match = Match ((player , opponent ), seed = seed )
148
+ interactions = match .play ()
153
149
assert interactions [25 :30 ] == [(C , D ), (C , C ), (C , D ), (D , C ), (C , D )]
154
- assert interactions == match .play (seed = seed )
150
+ assert interactions == match .play ()
155
151
156
152
157
153
def test_warning_for_self_interaction (recwarn ):
@@ -197,10 +193,7 @@ def test_match_reproducibility():
197
193
players2 = [Player (strategy ) for strategy in strategies ]
198
194
match2 = Match (players2 , turns = 200 , noise = 0.1 , seed = seed )
199
195
results2 = match2 .play ()
200
- if results1 != results2 :
201
- print (strategies )
202
- print (results1 )
203
- print (results2 )
196
+
204
197
assert (results1 == results2 )
205
198
206
199
@@ -218,11 +211,3 @@ def test_tournament_reproducibility():
218
211
219
212
assert (results1 .ranked_names == results2 .ranked_names )
220
213
221
-
222
- if __name__ == "__main__" :
223
- test_init ()
224
- test_matches ()
225
- test_noisy_matches ()
226
- # test_implemented_strategies()
227
- test_match_reproducibility ()
228
- test_tournament_reproducibility ()
0 commit comments