In [41]:
%pylab inline
%run ../game_theory.py


Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].
For more information, type 'help(pylab)'.

In [42]:
test_game = BimatrixTwoStrategyGame(6.0,6.0,4.9,7.0,6.1,4.0,3.0,3.0)

In [43]:
test_game.find_nash()


Out[43]:
[(1.0, 0.0), (0.0, 1.0), (0.5, 0.9500000000000002)]

In [44]:
print test_game


[(6.0,6.0), (4.9,7.0), 
 (6.1,4.0), (3.0,3.0)]

In [45]:
print test_game.transpose()


[(7.0,4.9), (3.0,3.0), 
 (6.0,6.0), (4.0,6.1)]

In [46]:
test_game.transpose().find_nash()


Out[46]:
[(1.0, 1.0), (0.0, 0.0), (0.04999999999999982, 0.5)]

In [47]:
test_game.transpose().find_risk_dominant_equilibrium()


Out[47]:
(1.0, 1.0)

In [48]:
test_game.find_risk_dominant_equilibrium()


Out[48]:
(1.0, 0.0)

In [49]:
test_game.find_nash()


Out[49]:
[(1.0, 0.0), (0.0, 1.0), (0.5, 0.9500000000000002)]

In [ ]: