예제 #1
0
def test_board_is_loose_last_move_fill_the_board():
    b = Board(row_size=3, max_row=2, solution=[1, 1, 1])
    m = [1, 1, 2]
    b.play(m)
    b.play(m)
    assert b.is_loose() == True
예제 #2
0
def test_board_is_loose_any_move():
    b = Board(row_size=3, max_row=2, solution=[1, 1, 1])
    assert b.is_loose() == False
예제 #3
0
def test_board_is_loose_last_move_is_bad():
    b = Board(row_size=3, max_row=2, solution=[1, 1, 1])
    m = [1, 1, 2]
    b.play(m)
    assert b.is_loose() == False