def test_shuffle_strength(): ctr = 0 for i in range(30000): test_deck = Deck() test_deck.riffle() test_deck.riffle() ctr += Deck.shuffle_score(test_deck) ctr /= float(30000) print(ctr)
def test_perfect_riffles(): for j in range(53): x = j Montevideo = Deck() for i in range(x): Montevideo.riffle(perfect=True) print("%s perfect riffles:" % x) print(Deck.shuffle_score(Montevideo)) print("\n")