SAT Flood Fill

A SAT function required for many nikoli puzzles.

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

Next the adjacency table is created. While the unlimited potential of the adjacency table is nice, the simple rectangular grid happens fairly often. So cartesian_adjacency() is a helper function to handle this common case. There is a boolean flag for 4-neighbor vs 8-neighbor.

Mail: (not shown)

Please type this: