@@ -12,13 +12,13 @@ set. To do this we can use the `seed` function::
12
12
>>> players = (axl.Random(), axl.MetaMixer()) # Two stochastic strategies
13
13
>>> axl.seed(0)
14
14
>>> axl.Match(players, turns=3).play()
15
- [('D', 'C'), ('D', 'D'), ('C', 'D ')]
15
+ [('D', 'C'), ('D', 'D'), ('C', 'C ')]
16
16
17
17
We obtain the same results is it is played with the same seed::
18
18
19
19
>>> axl.seed(0)
20
20
>>> axl.Match(players, turns=3).play()
21
- [('D', 'C'), ('D', 'D'), ('C', 'D ')]
21
+ [('D', 'C'), ('D', 'D'), ('C', 'C ')]
22
22
23
23
Note that this is equivalent to::
24
24
@@ -28,8 +28,8 @@ Note that this is equivalent to::
28
28
>>> random.seed(0)
29
29
>>> numpy.random.seed(0)
30
30
>>> axl.Match(players, turns=3).play()
31
- [('D', 'C'), ('D', 'D'), ('C', 'D ')]
31
+ [('D', 'C'), ('D', 'D'), ('C', 'C ')]
32
32
>>> numpy.random.seed(0)
33
33
>>> random.seed(0)
34
34
>>> axl.Match(players, turns=3).play()
35
- [('D', 'C'), ('D', 'D'), ('C', 'D ')]
35
+ [('D', 'C'), ('D', 'D'), ('C', 'C ')]
0 commit comments