I'm making a Sudoku game and am trying to figure out how to best generate the puzzle board. I came across a thread when I searched here that talked about an idea I had, which is to randomly generating numbers in all 81 boxes while making sure the same number is not in the same row/column. This would net a complete board, then you simply take out so many numbers and there you have it.
My question is, if you use this method, how do you get boards of varying difficulty? I was reading online that the amount of numbers does not contribute to the difficulty of the board (something I noticed while playing them on paper), but rather the logic it takes and how many moves ahead you have to think in order to get a number.
While searching online for some clues on how to start this, I came across this website: davidbau.com: Sudoku Generator
It is a python script that generates a sudoku board of random difficulty based on the logic needed to solve it. This would be great if I knew python scripting and could convert to vb.net.
Any ideas to get me started? Thanks!
My question is, if you use this method, how do you get boards of varying difficulty? I was reading online that the amount of numbers does not contribute to the difficulty of the board (something I noticed while playing them on paper), but rather the logic it takes and how many moves ahead you have to think in order to get a number.
While searching online for some clues on how to start this, I came across this website: davidbau.com: Sudoku Generator
It is a python script that generates a sudoku board of random difficulty based on the logic needed to solve it. This would be great if I knew python scripting and could convert to vb.net.
Any ideas to get me started? Thanks!