Ejemplo n.º 1
0
 def setUp(self):
     '''Setup a FictitiousPlay instance'''
     payoff_bimatrix = np.zeros((2, 3, 2))  # 2 x 3 game
     g = NormalFormGame(payoff_bimatrix)
     self.fp = FictitiousPlay(g)
Ejemplo n.º 2
0
def test_fp_invalid_input():
    fp = FictitiousPlay(np.zeros((2, 3, 4, 3)))  # three-player game
Ejemplo n.º 3
0
 def setUp(self):
     '''Setup a FictitiousPlay instance'''
     # symmetric 2x2 coordination game
     payoff_matrix = [[4, 0], [3, 2]]
     self.fp = FictitiousPlay(payoff_matrix)