2 ms·
I wrote a Sudoku Solver. In a few hours. I'm sure many have. this thing is, puzzles like this don't need "design up front" as one commenter suggested - they ne
by SideburnsOfDoom 14y ago
I wrote a Sudoku Solver. In a few hours. I'm sure many have.
this thing is, puzzles like this don't need "design up front" as one commenter suggested - they need a flash of inspiration to solve the nub of the hard problem. If you have that, then tests will help you implement it correctly, and help you change it without breaking it.
If you don't have that inspirations, then tests won't help you. Maybe you'll get inspired while you're messing around with tests on the puzzle, maybe not.
Puzzles are almost completely unlike everyday tasks that programmers typically encounter, e.g. Adding TPS report generation to your website.
- SatvikBeri 14y agoOne of the very first pieces of code I wrote was a Sudoku Solver, about 3 weeks into studying lisp. The fact that it was so easy was actually what made me fall in love with programming.