Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I've been making a program for people to solve Sudokus in, but want to add a generator that can make 9x9 Sudokus of a few different grades (Easy, Medium etc). All I want is to parse the difficulty to a sub or method, and have it output two DataTables (one with the Sudoku to solve, the other with the answers - or maybe just one that is 9x18, I can do code to separate it).

I have tried playing around with this generator but can't seem to make it work - does this generator make the actual Sudoku to solve or just the answers?

I have also tried this generator - using the method Generate in the SudokuModel library - which I think might be better to use, but I can't get that to work either (haven't been able to work out what a Tuple is even after looking up MSDN).

If someone could please help me find a suitable generator, it would be greatly appreciated, as I don't know very much about algorithms for generating Sudokus.
Posted
Updated 16-Jul-11 23:58pm
v2

Try www.setbb.com/sudoku which has a forum with detailed discussions on approaches/algorithms for sudoku generators. I also hope to shortly post an article/code for a sudoku solver/generator in vb2005...
 
Share this answer
 
And if you can't find anything here to your liking, there's a TON of them on CodePlex. Results...[^]
 
Share this answer
 
Comments
Espen Harlinn 17-Jul-11 10:13am    
Right :)
 
Share this answer
 
Comments
Espen Harlinn 17-Jul-11 7:12am    
Nice list - my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900