Skip to content

Commit 3f6bc83

Browse files
committed
added long centipede with chance moving twice at the root; commented out the imperfect recall example
1 parent 7617b6c commit 3f6bc83

1 file changed

Lines changed: 36 additions & 9 deletions

File tree

tests/test_rsf.py

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,33 @@
127127
),
128128
],
129129
),
130+
# 2-player long centipede game with chance playing at the root twice
131+
(
132+
games.read_from_file("cent3.efg"),
133+
[
134+
["1**111", "21*111", "221111", "222111"],
135+
["1**111", "21*111", "221111", "222111"],
136+
],
137+
[
138+
np.array(
139+
[
140+
["20027/25000", "5081/6250", "2689/3125", "163/125"],
141+
["541/1250", "19931/6250", "10114/3125", "92/25"],
142+
["3299/6250", "5362/3125", "39814/3125", "1648/125"],
143+
["227/250", "262/125", "856/125", "256/5"],
144+
]
145+
),
146+
np.array(
147+
[
148+
["2689/12500", "3283/12500", "5659/12500", "163/500"],
149+
["3983/2500", "2677/3125", "3271/3125", "23/25"],
150+
["5053/3125", "19903/3125", "10696/3125", "412/125"],
151+
["214/125", "808/125", "3184/125", "64/5"],
152+
]
153+
),
154+
],
155+
),
156+
130157
# N A T U R E
131158
# Myerson 2-card poker; game with chance playing at the root
132159
(
@@ -155,16 +182,16 @@
155182
np.array([[-1, -1, 2, 2], [3, 4, 3, 4]]),
156183
],
157184
),
158-
# I M P E R F E C T R E C A L L
185+
# I M P E R F E C T R E C A L L --- commented out in the test suite
159186
# Wichardt (2008): binary tree of height 3; 2 players; the root player forgets the action
160-
(
161-
games.read_from_file("wichardt.efg"),
162-
[["11", "12", "21", "22"], ["1", "2"]],
163-
[
164-
np.array([[1, -1], [-5, -5], [-5, -5], [-1, 1]]),
165-
np.array([[-1, 1], [5, 5], [5, 5], [1, -1]]),
166-
],
167-
),
187+
# (
188+
# games.read_from_file("wichardt.efg"),
189+
# [["11", "12", "21", "22"], ["1", "2"]],
190+
# [
191+
# np.array([[1, -1], [-5, -5], [-5, -5], [-1, 1]]),
192+
# np.array([[-1, 1], [5, 5], [5, 5], [1, -1]]),
193+
# ],
194+
# ),
168195
],
169196
)
170197
def test_reduced_strategic_form(

0 commit comments

Comments
 (0)