I put this together quick as I was trying to recall a project I did years ago in college to solve Sudoku puzzles. Thought I would share it and see if problems jump out at anyone.
The puzzle is a 10x10 grid. CanInsert() doesn't exist but pretend it does and indicates if the value can be placed in the current cell. DisplaySolution() outputs the completed puzzle. A cell value of -1 indicates a 'blank' cell.
This isn't an assignment or anything, just a bit bored here.
Question
Lord Method Man
I put this together quick as I was trying to recall a project I did years ago in college to solve Sudoku puzzles. Thought I would share it and see if problems jump out at anyone.
The puzzle is a 10x10 grid. CanInsert() doesn't exist but pretend it does and indicates if the value can be placed in the current cell. DisplaySolution() outputs the completed puzzle. A cell value of -1 indicates a 'blank' cell.
This isn't an assignment or anything, just a bit bored here.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts