Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions on the organization of game theory subpackage #295

Open
Guo-Zhang opened this issue Mar 19, 2017 · 0 comments
Open

Suggestions on the organization of game theory subpackage #295

Guo-Zhang opened this issue Mar 19, 2017 · 0 comments
Labels

Comments

@Guo-Zhang
Copy link

Guo-Zhang commented Mar 19, 2017

We can think the game theory as the game forms. There are two main forms: normal form and extensive form. We can define two class for two forms. Then we provide a transformation between two forms. Then we can define the players, actions, payoffs, information and equilibrium concepts. The calculation of equilibrium can be defined by function and then make it into the class so that we can use it as a function or a instance method. For example,

# games/normal.py

class NormalGame(object):
    pass

# games/extensive.py

class ExtensiveGame(object):
    pass
# games/player.py

class Player(object):
    pass
# games/equilibrium.py

def pure_nash():
    pass

def mixed_nash():
    pass

# games/__init__.py

from ..normal import NormalGame
from ..extensive import ExtensiveGame
from ..equilibrium import pure_nash, mixed_nash
@mmcky mmcky added the discuss label Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants