Skip to content

Commit 9548e67

Browse files
committed
removed create_selten_horse_game_efg from games.py
1 parent 0e5aabd commit 9548e67

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

tests/games.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -421,16 +421,6 @@ def create_el_farol_bar_game_efg() -> gbt.Game:
421421
return read_from_file("el_farol_bar.efg")
422422

423423

424-
def create_selten_horse_game_efg() -> gbt.Game:
425-
"""
426-
Returns
427-
-------
428-
Game
429-
5-player Selten's Horse Game
430-
"""
431-
return read_from_file("e01.efg")
432-
433-
434424
def create_EFG_for_nxn_bimatrix_coordination_game(n: int) -> gbt.Game:
435425
A = np.eye(n, dtype=int)
436426
B = A

tests/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_write_latex():
112112

113113

114114
def test_read_write_efg():
115-
efg_game = games.create_selten_horse_game_efg()
115+
efg_game = games.read_from_file("e01.efg")
116116
serialized_efg_game = efg_game.to_efg()
117117
deserialized_efg_game = gbt.read_efg(io.BytesIO(serialized_efg_game.encode()))
118118
double_serialized_efg_game = deserialized_efg_game.to_efg()

tests/test_mixed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,9 +1359,9 @@ def test_player_regret_max_regret_consistency(
13591359
False,
13601360
),
13611361
#################################################################################
1362-
# Selten's horse game
1362+
# Selten's horse
13631363
(
1364-
games.create_selten_horse_game_efg(),
1364+
games.read_from_file("e01.efg"),
13651365
[["4/9", "5/9"], ["1/11", "10/11"], ["8/9", "1/9"]],
13661366
[["4/9", "5/9"], ["10/11", "1/11"], ["8/9", "1/9"]],
13671367
gbt.Rational("4/9"),
@@ -1459,13 +1459,13 @@ def test_linearity_payoff_property(
14591459
#################################################################################
14601460
# Selten's horse
14611461
(
1462-
games.create_selten_horse_game_efg(),
1462+
games.read_from_file("e01.efg"),
14631463
[["4/9", "5/9"], ["6/11", "5/11"], ["4/7", "3/7"]],
14641464
ZERO,
14651465
True,
14661466
),
14671467
(
1468-
games.create_selten_horse_game_efg(),
1468+
games.read_from_file("e01.efg"),
14691469
[[4 / 9, 5 / 9], [6 / 11, 5 / 11], [4 / 7, 3 / 7]],
14701470
TOL,
14711471
False,

0 commit comments

Comments
 (0)