wrap the Naked Singles
Then just wrap the Naked Singles loops in a sub named solve. Pass in a $sobj and config details.
You can see how you could solve this in three lines of perl.
sudoku | Puzzling in Perl | #23 |
Then just wrap the Naked Singles loops in a sub named solve. Pass in a $sobj and config details.
You can see how you could solve this in three lines of perl.