Skip to content

Suggestions on the organization of game theory subpackage #295

Open
@Guo-Zhang

Description

@Guo-Zhang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions