Exemplo n.º 1
0
def test_find_top_with_col_filled(board_size, up_to):
    b = Board(*board_size)
    for i in range(up_to):
        row_to_populate = b.height - i - 1
        b.cells[0, row_to_populate] = Cell.BLACK

    row = b.find_top(0)
    expected = b.height - up_to - 1
    assert row == expected
Exemplo n.º 2
0
def test_find_top_empty_board(boardsize, col):
    b = Board(*boardsize)
    row = b.find_top(col)
    expected = b.height - 1
    assert row == expected