def play_game(sample_size): bb = Baraja() bb.revolver() A = bb.approx_best_move(sample_size=sample_size) prize = bb.play(A[0]).value logging.debug('%s -- %s -- %s' % (bb.preview(), act.actions[A[0]], prize)) return prize
def test_preview_length(self): B = Baraja() B.preview() self.assertEqual(len(B.preview()), 10)