Skip to content

Instantly share code, notes, and snippets.

@kaya3
kaya3 / single_cage_killer_sudoku.py
Created August 23, 2025 09:37
Python script to try to construct a single-cage killer kropki-less sudoku, or prove there isn't one.
# See https://puzzling.stackexchange.com/q/132979/99846
# Converts from (x, y) coordinates to an index in `range(81)`.
def xy_to_index(x, y):
return x + 9 * y
# Converts from an index in `range(81)` to (x, y) coordinates.
def index_to_xy(i):
return i % 9, i // 9