Exemple #1
0
 def test_full_hint_fills_split_line(self, blank_board):
     solver = NonogramSolver(blank_board)
     assert solver._full_hint(0, 0)
     assert solver.board.line(0, 0).tolist() == [State.YES, State.YES, State.YES, State.NO, State.YES]
Exemple #2
0
 def test_full_hint_ignores_irrelevant_line(self, blank_board):
     solver = NonogramSolver(blank_board)
     assert not solver._full_hint(4, 0)
Exemple #3
0
 def test_full_hint_fills_full_line(self, blank_board):
     solver = NonogramSolver(blank_board)
     assert solver._full_hint(4, 1)
     assert solver.board.line(4, 1).tolist() == [State.YES, State.YES, State.YES, State.YES, State.YES]