File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
8771def create_stripped_down_poker_efg (nonterm_outcomes : bool = False ) -> gbt .Game :
8872 """
8973 Returns
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments