<jupyter_start><jupyter_text>Sudoku Moderate (SMH Spectrum Nov 28-29, 2020)<jupyter_code>example = '..1...7......7.2.3....9...6..2.3..4.....659...8.9.7....3......5.95..3.78.4....1..'
puzzle = su.SudokuPuzzle(starting_grid=su.from_string(example))
display(HTML(puzzle.as_html()))
solver = su.DeductiveSolver(use_backtracking=False)
puzzle = solve_side_by_side(example, solver.solve, show_possibilities=2)<jupyter_output>Writing 9 at (3,0) because that's the only available cell for row 3
Writing 3 at (8,7) because that's the only available cell for row 8
Writing 9 at (1,2) because that's the only available cell for column 2
Writing 3 at (5,6) because that's the only available cell for column 6
Writing 4 at (0, 8) because 4 can't go anywhere else in column 8
Writing 9 at (8, 8) because 9 can't go anywhere else in column 8
Writing 9 at (0, 7) because 9 can't go anywhere else in this box
Writing 9 at (6, 5) because 9 can't go anywhere else in this box
Writing 2 at (6, 7) because 2 can't go anywhere else in this box
Writing 6 at (5, 7) because 6 can't go anywhere else in column 7
Writing 6 at (3, 1) because 6 can't go anywhere else in this box
Writing 5 at (3, 6) because 5 can't go anywhere else in this box
Writing 8 at (4, 7) because 8 can't go anywhere else in this box
Writing 7 at (3, 8) because 7 can't go anywhere else in row 3
Writing 5 at (5, 0) because 5 can't go anywhere else in row 5
Writing 1 at [...]
{'fraction_non_alphanumeric': 0.11446629213483146, 'fraction_numerical': 0.0702247191011236, 'mean_word_length': 3.830508474576271, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '177206', 'license': 'MIT', 'n_tokens_mistral': 566, 'n_tokens_neox': 461, 'n_words': 225, 'path': 'Sudoku/Examples.ipynb', 'repo_name': 'hissohathair/puzzle-solvers', 'size': '1424'}