Thank you for your quick response but this only displays one puzzle that is hardcoded.
What I require is the ability to generate puzzles at various levels of complexity.
Main Topics
Browse All TopicsI have been interested in sudoku for some time and decided to create a Sudoku game at home.
I have the ability to solve puzzles but would like the source code for the generator of those puzzles. This generator needs to have levels. Any help with source code would be appreciated
Thanx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Another link : http://www.1javastreet.com
I was not able to open to project because of the Edit1.BevelInner-property that was missing in my Delphi-Version.
I have Delphi 5. Maybe it was developed for a later version.
Just try it out and let me know.
Hm, Are you sure ?
I opened the project and ignored all warnings.
I then removed 'Variant' from the uses-list
Then I compiled the application and this worked.
When I run the app, I get different puzzles everytime I click on the 'New Sudoku' button
And I can see an Randomize-FunctionCall in the code, So I would expect that the Sudoku-Logic is there to randomly generate a new puzzle.
I think this is what you want.
unfortunatley not coded in delphi, but gives everything else to build sudoko for palm PC, including i beleive how to genorate new games
http://msdn.microsoft.com/
David
Hi Eldraco.
Check this :
http://www.planet-source-c
I think I have to say sorry ....
I doublechecked all my comments, and now I see that I never provided this link....
Strange ...
I think I found this one while googling but never posted a comment about it.
So, eldraco check the link of CodedK, this was the one I was referring too...
Ther you have the 'New SUDOKU' button and this is in my opinion the functionality you are looking for ...
So, I have to say sorry and not CodedK.
:) I think this will do !!
http://download.birdiesoft
I have written a programme which you may not accept as it is quite brute forcing to generate the sudoku, but it will always generate a valid one eventually, it doesn't really take that long - some only take a matter of seconds to generate. The EXE is at http://www.zeekay.com/sudo
OK, I have uploaded it to: http://www.zeekay.com/Sudo
I apologise for the lack of consistent formatting or commenting - I am a Computer Science student, but still the temptation is not to do it the "proper" way when you think no-one else is going to look at your code!
Everything is configurable with hard-coded values, so it should give you a very good starting point, if not a complete solution.
HTH
henrythacker,
I have uploaded your source to http://www.ee-stuff.com/Ex
If you don't agree, you can ask a moderator to remove it, but in that case you won't get any points for this question, because the source is part of the answer.
Business Accounts
Answer for Membership
by: wimmeyvaertPosted on 2006-05-14 at 22:36:55ID: 16680055
After some googling, maybe this is something for you : lin.de/hom epage/data /projects/ sudoku_sol ver.zip
http://www.buchmanager-ber
BEst regards,
The Mayor.