@@ -29,6 +29,7 @@ def test_matches():
2929 action in (C , D ) for interaction in match .play ()
3030 for action in interaction )
3131
32+
3233def test_noisy_matches ():
3334 for strategy in all_strategies :
3435 for opponent in (Alternator , Cooperator , Defector ):
@@ -38,6 +39,7 @@ def test_noisy_matches():
3839 action in (C , D ) for interaction in match .play ()
3940 for action in interaction )
4041
42+
4143def test_probend_matches ():
4244 for strategy in all_strategies :
4345 for opponent in (Alternator , Cooperator , Defector ):
@@ -47,10 +49,11 @@ def test_probend_matches():
4749 action in (C , D ) for interaction in match .play ()
4850 for action in interaction )
4951
52+
5053def test_matches_with_different_game ():
5154 for strategy in all_strategies :
5255 for opponent in (Alternator , Cooperator , Defector ):
53- game = Game (r = 4 ,s = 0 ,p = 2 ,t = 6 )
56+ game = Game (r = 4 , s = 0 , p = 2 , t = 6 )
5457 players = (Player (strategy , game = game ), opponent ())
5558 match = Match (players , turns = 200 , game = game )
5659 assert all (
@@ -80,7 +83,7 @@ def test_original_strategy():
8083 move_number = move_number ,
8184 my_score = my_score ,
8285 their_score = their_score ,
83- noise = 0 ,
86+ random_value = 0 ,
8487 my_last_move = my_action )
8588
8689 assert my_action in [0 , 1 ]
0 commit comments