Skip to content

Commit 92a2599

Browse files
committed
removed create_matching_pennies_efg; using create_2x2_zero_sum_efg instead
1 parent d54dbf1 commit 92a2599

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

tests/games.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,6 @@ def create_2x2_zero_sum_efg(variant: None | str = None) -> gbt.Game:
6868
return g
6969

7070

71-
def create_matching_pennies_efg(with_neutral_outcome: bool = False) -> gbt.Game:
72-
"""
73-
The version with_neutral_outcome adds a (0,0) payoff outcomes at a non-terminal node.
74-
"""
75-
title = "Matching Pennies"
76-
if with_neutral_outcome:
77-
title += " with nonterminal neutral outcome"
78-
A = np.array([[1, -1], [-1, 1]])
79-
B = -A
80-
g = create_efg_corresponding_to_bimatrix_game(A, B, title)
81-
if with_neutral_outcome:
82-
neutral = g.add_outcome([0, 0], label="neutral")
83-
g.set_outcome(g.root.children[0], neutral)
84-
return g
85-
86-
8771
def create_stripped_down_poker_efg(nonterm_outcomes: bool = False) -> gbt.Game:
8872
"""
8973
Returns

tests/test_extensive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ def test_reduced_strategic_form(
437437
games.create_2x2_zero_sum_efg(variant="missing term outcome"),
438438
),
439439
(
440-
games.create_matching_pennies_efg(),
441-
games.create_matching_pennies_efg(with_neutral_outcome=True)
440+
games.create_2x2_zero_sum_efg(),
441+
games.create_2x2_zero_sum_efg(variant="with nonterm outcome"),
442442
),
443443
],
444444
)

0 commit comments

Comments
 (0)