Sudoku Programmers Forum Index

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in          Games  Calendar

Log in to check your private messagesLog in to check your private messages   

HELP!Random Gen Sudoku.

 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Setting sudoku
View previous topic :: View next topic  
Author Message
tonyfung

Joined: 02 Nov 2006
Posts: 3
:

Items
PostPosted: Thu Nov 02, 2006 4:28 pm    Post subject: HELP!Random Gen Sudoku. Reply with quote

Hi
I am a newbie of Visual Basic.
And i am a student from Hong Kong.
My english is quite bad...so please don't use so difficult words
thanks...Orz

my problem:
i want to make a sudoku program with VB.
but i think just read the sudoku in the textbox is so easy...
i want to "GEN" a sudoku when the user press the button...

but when i work fews days ... i feel that is so hard for me
Hope someone can give me some hints of "GEN" sudoku. Crying or Very sad
Back to top
View user's profile Send private message
Moritz

Joined: 07 Oct 2006
Posts: 23
:
Location: Edinburgh, Scotland

Items
PostPosted: Sun Dec 10, 2006 9:09 pm    Post subject: Reply with quote

Hi,

if you already wrote a program that solves Sudokus, it is not so hard to write one that generates them.

All you have to do is to fill random numbers into an empty grid, and check if the generated sudoku is uniq. If not, you enter more numbers.
If it is not solveable at all, you just start again with an empty grid.

I have a more detailed description as well as a few thoughts on speed here:

http://moritz.faui2k3.org/en/yasss#generate

Hope that helped,
Moritz
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Setting sudoku All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Sudoku Programmers topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group

Igloo Theme Version 1.0 :: Created By: Andrew Charron