tpemartin / 112-2-programming-for-economic-modeling

MIT License
0 stars 1 forks source link

from gamepy.game import Game #17

Open tpemartin opened 11 months ago

tpemartin commented 11 months ago
player_names = ["Alice", "Bob"]
player_strategies = [['C', 'D'], ['C', 'D']]
payoff_matrix = {
    ('C', 'C'): (-1, -1),
    ('C', 'D'): (-3, 0),
    ('D', 'C'): (0, -3),
    ('D', 'D'): (-2, -2)
}

game = Game(player_names, player_strategies, payoff_matrix)

player1, player2 = game.players