예제 #1
0
def test_round_321416():
    rnd = 1149376
    exp_outcome = 0.24

    pos = rnd_positions(REELS, rnd)
    assert pos == (2, 13, 10, 6, 20)

    symbols = position_symbols(REELS, pos)
    assert symbols == ('gyp', 'gHl', 'JgH', 'ygH', 'LSg')

    paylines = find_paylines(symbols)
    assert paylines == [(6, 'g', 3, 0.12), (19, 'g', 3, 0.12)]
    assert sum_payline(paylines) == exp_outcome
예제 #2
0
def test_round_321416():
    rnd = 1149376
    exp_outcome = 0.24

    pos = rnd_positions(REELS, rnd)
    assert pos == (2, 13, 10, 6, 20)

    symbols = position_symbols(REELS, pos)
    assert symbols == ('gyp', 'gHl', 'JgH', 'ygH', 'LSg')

    paylines = find_paylines(symbols)
    assert paylines == [(6, 'g', 3, 0.12), (19, 'g', 3, 0.12)]
    assert sum_payline(paylines) == exp_outcome
예제 #3
0
def test_rnd_positions():
    assert rnd_positions(REELS, 3792463) == (8, 7, 20, 3, 25)
    assert rnd_positions(REELS, 1900918) == (4, 4, 4, 0, 6)