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
def test_board_is_loose_any_move(): b = Board(row_size=3, max_row=2, solution=[1, 1, 1]) assert b.is_loose() == False
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