So I've been working through the Sudoku game project using pdcurses, and then one silly thought struck me.... I don't know how to even generate a random Sudoku board! Can anyone help me?
The text interface is coming up very nicely, but it's still buggy (first time I've used pdcurses) and I'm figuring out stuff like window resizing for example.
To be honest, figuring out the algorithm to produce a proper Sudoku board is probably a good mental exercise in and of itself. I don't know for sure myself :)
I think it would be neat to prompt the player something like "Enter a random seed" and generate a random board out of that seed, and have the bottom displaying the seed # so someone can just enter that number again to generate the same board again.
for now I will just manually write the boards... I want to get that interface working :-D
Join our real-time social learning platform and learn together with your friends!