CoCalc Shared Filesbasic_game_theory.sagewsOpen in CoCalc with one click!
Author: Vince Knight
Views : 6
A = matrix([[3, 0], [5, 4]]) # Creating the payoff matrix for player 1 B = matrix([[3, 5], [0, 4]]) # Creating the payoff matrix for player 2
g = NormalFormGame([A, B]) # Creating the game
g.obtain_nash() # Finding the Nash equilibria
[[(0, 1), (0, 1)]]