|
44 | 44 | np.array([[[1, 1], [0, 1]], [[2, 0], [2, 0]]]), |
45 | 45 | ], |
46 | 46 | ), |
47 | | - # Myerson 2-card poker; game with chance node |
48 | | - ( |
49 | | - games.read_from_file("myerson_2_card_poker.efg"), # CHANGE |
50 | | - [["11", "12", "21", "22"], ["1", "2"]], |
51 | | - [ |
52 | | - np.array([[-1, 0], ["-1/2", -1], ["-5/2", -1], [-2, -2]]), |
53 | | - np.array([[1, 0], ["1/2", 1], ["5/2", 1], [2, 2]]), |
54 | | - ], |
55 | | - ), |
56 | 47 | # 2-player (zero-sum) game with reduction for both players and generic payoffs |
57 | 48 | ( |
58 | 49 | games.create_reduction_generic_payoffs_efg(), |
|
136 | 127 | ), |
137 | 128 | ], |
138 | 129 | ), |
| 130 | + # N A T U R E |
| 131 | + # Myerson 2-card poker; game with chance playing at the root |
| 132 | + ( |
| 133 | + games.read_from_file("myerson_2_card_poker.efg"), # CHANGE |
| 134 | + [["11", "12", "21", "22"], ["1", "2"]], |
| 135 | + [ |
| 136 | + np.array([[-1, 0], ["-1/2", -1], ["-5/2", -1], [-2, -2]]), |
| 137 | + np.array([[1, 0], ["1/2", 1], ["5/2", 1], [2, 2]]), |
| 138 | + ], |
| 139 | + ), |
| 140 | + # Nature playing at the root |
| 141 | + ( |
| 142 | + games.read_from_file("nature-rooted.efg"), |
| 143 | + [["1", "2"], ["11", "12", "21", "22"]], |
| 144 | + [ |
| 145 | + np.array([[-1, -1, 2, 2], [0, 0, 0, 0]]), |
| 146 | + np.array([[-1, -1, 2, 2], [3, 4, 3, 4]]), |
| 147 | + ], |
| 148 | + ), |
| 149 | + # Nature playing last determining the payoffs |
| 150 | + ( |
| 151 | + games.read_from_file("nature-leaves.efg"), |
| 152 | + [["1", "2"], ["11", "12", "21", "22"]], |
| 153 | + [ |
| 154 | + np.array([[-1, -1, 2, 2], [0, 0, 0, 0]]), |
| 155 | + np.array([[-1, -1, 2, 2], [3, 4, 3, 4]]), |
| 156 | + ], |
| 157 | + ), |
139 | 158 | ], |
140 | 159 | ) |
141 | 160 | def test_reduced_strategic_form( |
|
0 commit comments