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)
def test_fp_invalid_input(): fp = FictitiousPlay(np.zeros((2, 3, 4, 3))) # three-player game
def setUp(self): '''Setup a FictitiousPlay instance''' # symmetric 2x2 coordination game payoff_matrix = [[4, 0], [3, 2]] self.fp = FictitiousPlay(payoff_matrix)