Skip to content

Commit fa70567

Browse files
committed
removed create_coord_4x4_nfg from games.py
1 parent fc4ccf0 commit fa70567

File tree

3 files changed

+244
-107
lines changed

3 files changed

+244
-107
lines changed

tests/games.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ def create_2x2_zero_nfg() -> gbt.Game:
6666
return game
6767

6868

69-
def create_coord_4x4_nfg(outcome_version: bool = False) -> gbt.Game:
70-
"""
71-
Returns
72-
-------
73-
Game
74-
4x4 coordination game, either via reading in a payoff version nfg, or an
75-
outcome version nfg, which has strategy labels useful for testing
76-
"""
77-
version = "outcome" if outcome_version else "payoff"
78-
return read_from_file(f"coordination_4x4_{version}.nfg")
79-
80-
8169
################################################################################################
8270
# Extensive-form games (efg)
8371

tests/test_behav.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,9 +1345,9 @@ def test_profile_data_error(game: gbt.Game, rational_flag: bool, data: list):
13451345

13461346
@pytest.mark.parametrize(
13471347
"game,rational_flag,data",
1348-
[(games.create_coord_4x4_nfg(), True,
1348+
[(games.read_from_file("coordination_4x4_payoff.nfg"), True,
13491349
[["1/5", "2/5", 0, "2/5"], ["1/4", "3/8", "1/4", "3/8"]]),
1350-
(games.create_coord_4x4_nfg(), False,
1350+
(games.read_from_file("coordination_4x4_payoff.nfg"), False,
13511351
[[1/5, 2/5, 0/5, 2/5], [1/4, 3/8, 1/4, 3/8]]),
13521352
]
13531353
)

0 commit comments

Comments
 (0)