Learning from Sudoku Solvers (2007)

1 month ago (ravimohan.blogspot.com)

Or perhaps just use a language that's designed to solve those sorts of problems? In 14 lines of code.

https://www.swi-prolog.org/pldoc/man?section=clpfd-sudoku