Skip to content

Commit c8f1752

Browse files
committed
removed create_STOC_simplified{,2} from games.py (which were not used anyway)
1 parent 543c937 commit c8f1752

File tree

1 file changed

+0
-86
lines changed

1 file changed

+0
-86
lines changed

tests/games.py

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -801,92 +801,6 @@ def create_problem_example_efg() -> gbt.Game:
801801
return g
802802

803803

804-
def create_STOC_simplified() -> gbt.Game:
805-
"""
806-
"""
807-
g = gbt.Game.new_tree(players=["1", "2"], title="")
808-
g.append_move(g.root, g.players.chance, actions=["1", "2"])
809-
g.set_chance_probs(g.root.infoset, [0.2, 0.8])
810-
g.append_move(g.root.children[0], player="1", actions=["l", "r"])
811-
g.append_move(g.root.children[1], player="1", actions=["c", "d"])
812-
g.append_move(g.root.children[0].children[1], player="2", actions=["p", "q"])
813-
g.append_move(
814-
g.root.children[0].children[1].children[0], player="1", actions=["L", "R"]
815-
)
816-
g.append_infoset(
817-
g.root.children[0].children[1].children[1],
818-
g.root.children[0].children[1].children[0].infoset,
819-
)
820-
g.set_outcome(
821-
g.root.children[0].children[0],
822-
outcome=g.add_outcome(payoffs=[5, -5], label="l"),
823-
)
824-
g.set_outcome(
825-
g.root.children[0].children[1].children[0].children[0],
826-
outcome=g.add_outcome(payoffs=[10, -10], label="rpL"),
827-
)
828-
g.set_outcome(
829-
g.root.children[0].children[1].children[0].children[1],
830-
outcome=g.add_outcome(payoffs=[15, -15], label="rpR"),
831-
)
832-
g.set_outcome(
833-
g.root.children[0].children[1].children[1].children[0],
834-
outcome=g.add_outcome(payoffs=[20, -20], label="rqL"),
835-
)
836-
g.set_outcome(
837-
g.root.children[0].children[1].children[1].children[1],
838-
outcome=g.add_outcome(payoffs=[-5, 5], label="rqR"),
839-
)
840-
g.set_outcome(
841-
g.root.children[1].children[0],
842-
outcome=g.add_outcome(payoffs=[10, -10], label="c"),
843-
)
844-
g.set_outcome(
845-
g.root.children[1].children[1],
846-
outcome=g.add_outcome(payoffs=[20, -20], label="d"),
847-
)
848-
return g
849-
850-
851-
def create_STOC_simplified2() -> gbt.Game:
852-
"""
853-
"""
854-
g = gbt.Game.new_tree(players=["1", "2"], title="")
855-
g.append_move(g.root, g.players.chance, actions=["1", "2"])
856-
g.set_chance_probs(g.root.infoset, [0.2, 0.8])
857-
g.append_move(g.root.children[0], player="1", actions=["r"])
858-
g.append_move(g.root.children[1], player="1", actions=["c"])
859-
g.append_move(g.root.children[0].children[0], player="2", actions=["p", "q"])
860-
g.append_move(
861-
g.root.children[0].children[0].children[0], player="1", actions=["L", "R"]
862-
)
863-
g.append_infoset(
864-
g.root.children[0].children[0].children[1],
865-
g.root.children[0].children[0].children[0].infoset,
866-
)
867-
g.set_outcome(
868-
g.root.children[0].children[0].children[0].children[0],
869-
outcome=g.add_outcome(payoffs=[10, -10], label="rpL"),
870-
)
871-
g.set_outcome(
872-
g.root.children[0].children[0].children[0].children[1],
873-
outcome=g.add_outcome(payoffs=[15, -15], label="rpR"),
874-
)
875-
g.set_outcome(
876-
g.root.children[0].children[0].children[1].children[0],
877-
outcome=g.add_outcome(payoffs=[20, -20], label="rqL"),
878-
)
879-
g.set_outcome(
880-
g.root.children[0].children[0].children[1].children[1],
881-
outcome=g.add_outcome(payoffs=[-5, 5], label="rqR"),
882-
)
883-
g.set_outcome(
884-
g.root.children[1].children[0],
885-
outcome=g.add_outcome(payoffs=[10, -10], label="c"),
886-
)
887-
return g
888-
889-
890804
def create_seq_form_STOC_paper_zero_sum_2_player_efg() -> gbt.Game:
891805
"""
892806
Example from

0 commit comments

Comments
 (0)