def test_seed(self): seed = 0 h, t = 3, 4 rho = -0.5 g0 = blotto_game(h, t, rho, random_state=seed) g1 = blotto_game(h, t, rho, random_state=seed) assert_array_equal(g1.payoff_profile_array, g0.payoff_profile_array)
def setup(self): self.h, self.t = 4, 3 rho = 0.5 self.g = blotto_game(self.h, self.t, rho)
def setUp(self): self.h, self.t = 4, 3 rho = 0.5 self.g = blotto_game(self.h, self.t, rho)