4 ms·
I had a go at solving sudokos, but I found the experience tedious, mechanical and far too easy to make a mistake. In fact just the frustration inducing thing t
by nickcw 7y ago
I had a go at solving sudokos, but I found the experience tedious, mechanical and far too easy to make a mistake.
In fact just the frustration inducing thing to tickle the first of the virtues of a programmer: "Laziness". I then wrote a solver in Python which was far more fun than solving sudokus by hand and has the advantage that I never need to solve one of the dratted puzzles again ;-)
I recommend it as an exercise for all programmers!
I didn't document that process, but I did for solving a different puzzle which you may enjoy if you need inspiration: https://www.craig-wood.com/nick/articles/snake-puzzle/ https://www.craig-wood.com/nick/articles/snake-puzzle/
- eralps 7y agoI enjoy solving Sudoku puzzles. I had a puzzle book that I solve everyday on commute to school. Then I created a solver in Python as well, it uses backtracking. It can solve the puzzle instantly. Never solved another sudoku puzzle ever since.