Exemplo n.º 1
0
 def test_binary_random(self):
     bot = BotSimpleRL(self.env, self.player)
     all = 1000
     trues = 0
     prob = 1.0
     for i in range(all):
         trues += 1 if bot.binary_random(prob) else 0
     experiment = trues / all
     assert abs((experiment - prob) / prob) < 0.0001