Sudoku solver
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 27 21:13:03 EDT 2015
Chris Angelico wrote:
> Part of me is quaking in fear... the other part looking on in morbid
> fascination. Can you build a regexp that proves a Sudoku grid
> solvable?
Well, it's *theoretically* possible, since there are a finite
number of possible sudoku puzzles, so if nothing else you
could just use an RE that explicitly matched all the solvable
ones.
I wouldn't like to have to write that RE out by hand, though.
--
Greg
More information about the Python-list
mailing list