|
1 | | -from ..gambit import Game |
2 | | -from .catalog import CatalogGame |
| 1 | +# from ..gambit import Game |
| 2 | +# from .catalog import CatalogGame |
3 | 3 |
|
4 | 4 |
|
5 | | -class OneShotTrust(CatalogGame): |
6 | | - """ |
7 | | - The unique_NE_variant makes Trust a dominant strategy, replacing the |
8 | | - non-singleton equilibrium component from the standard version of the game |
9 | | - where the Buyer plays "Not Trust" and the seller can play any mixture with |
10 | | - < 0.5 probability on Honor with a unique NE where the Buyer plays Trust and |
11 | | - the Seller plays Abuse. |
12 | | - """ |
13 | | - test_suite = True |
14 | | - """This game is included in the pygambit test suite.""" |
| 5 | +# class OneShotTrust(CatalogGame): |
| 6 | +# """ |
| 7 | +# The unique_NE_variant makes Trust a dominant strategy, replacing the |
| 8 | +# non-singleton equilibrium component from the standard version of the game |
| 9 | +# where the Buyer plays "Not Trust" and the seller can play any mixture with |
| 10 | +# < 0.5 probability on Honor with a unique NE where the Buyer plays Trust and |
| 11 | +# the Seller plays Abuse. |
| 12 | +# """ |
| 13 | +# test_suite = True |
| 14 | +# """This game is included in the pygambit test suite.""" |
15 | 15 |
|
16 | | - @staticmethod |
17 | | - def _game(unique_NE_variant: bool = False): |
18 | | - g = Game.new_tree( |
19 | | - players=["Buyer", "Seller"], title="One-shot trust game, after Kreps (1990)" |
20 | | - ) |
21 | | - g.append_move(g.root, "Buyer", ["Trust", "Not trust"]) |
22 | | - g.append_move(g.root.children[0], "Seller", ["Honor", "Abuse"]) |
23 | | - g.set_outcome(g.root.children[0].children[0], g.add_outcome([1, 1], label="Trustworthy")) |
24 | | - if unique_NE_variant: |
25 | | - g.set_outcome( |
26 | | - g.root.children[0].children[1], g.add_outcome(["1/2", 2], label="Untrustworthy") |
27 | | - ) |
28 | | - else: |
29 | | - g.set_outcome( |
30 | | - g.root.children[0].children[1], g.add_outcome([-1, 2], label="Untrustworthy") |
31 | | - ) |
32 | | - g.set_outcome(g.root.children[1], g.add_outcome([0, 0], label="Opt-out")) |
33 | | - return g |
| 16 | +# @staticmethod |
| 17 | +# def _game(unique_NE_variant: bool = False): |
| 18 | +# g = Game.new_tree( |
| 19 | +# players=["Buyer", "Seller"], title="One-shot trust game, after Kreps (1990)" |
| 20 | +# ) |
| 21 | +# g.append_move(g.root, "Buyer", ["Trust", "Not trust"]) |
| 22 | +# g.append_move(g.root.children[0], "Seller", ["Honor", "Abuse"]) |
| 23 | +# g.set_outcome(g.root.children[0].children[0], g.add_outcome([1, 1], label="Trustworthy")) |
| 24 | +# if unique_NE_variant: |
| 25 | +# g.set_outcome( |
| 26 | +# g.root.children[0].children[1], g.add_outcome(["1/2", 2], label="Untrustworthy") |
| 27 | +# ) |
| 28 | +# else: |
| 29 | +# g.set_outcome( |
| 30 | +# g.root.children[0].children[1], g.add_outcome([-1, 2], label="Untrustworthy") |
| 31 | +# ) |
| 32 | +# g.set_outcome(g.root.children[1], g.add_outcome([0, 0], label="Opt-out")) |
| 33 | +# return g |
0 commit comments