@@ -29,6 +29,7 @@ def test_matches():
29
29
action in (C , D ) for interaction in match .play ()
30
30
for action in interaction )
31
31
32
+
32
33
def test_noisy_matches ():
33
34
for strategy in all_strategies :
34
35
for opponent in (Alternator , Cooperator , Defector ):
@@ -38,6 +39,7 @@ def test_noisy_matches():
38
39
action in (C , D ) for interaction in match .play ()
39
40
for action in interaction )
40
41
42
+
41
43
def test_probend_matches ():
42
44
for strategy in all_strategies :
43
45
for opponent in (Alternator , Cooperator , Defector ):
@@ -47,10 +49,11 @@ def test_probend_matches():
47
49
action in (C , D ) for interaction in match .play ()
48
50
for action in interaction )
49
51
52
+
50
53
def test_matches_with_different_game ():
51
54
for strategy in all_strategies :
52
55
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 )
54
57
players = (Player (strategy , game = game ), opponent ())
55
58
match = Match (players , turns = 200 , game = game )
56
59
assert all (
@@ -80,7 +83,7 @@ def test_original_strategy():
80
83
move_number = move_number ,
81
84
my_score = my_score ,
82
85
their_score = their_score ,
83
- noise = 0 ,
86
+ random_value = 0 ,
84
87
my_last_move = my_action )
85
88
86
89
assert my_action in [0 , 1 ]
0 commit comments