RingsWorld.com RingsWorld.com [Have a Blog? Submit It!new] [Create your Site-Ring Community]

Sudoku - Sudoku Generator Logic For Mobile Game Developer

:(: Discussions around the Sudoku Puzzle Game :):
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue Nov 24, 2009 9:39 pm
All times are GMT
Board.RingsWorld.com » Games » Sudoku
Sudoku Generator Logic For Mobile Game Developer
Moderators:  JBL
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
RSS Feed Add to My MSN Add to My Yahoo! Add to Google
Global Discussions
Author Message
CodeTiger



Joined: 18 May 2006
Posts: 3
Location: chennai
PostPosted: Thu May 18, 2006 2:55 pm    Post subject: Note Sudoku Generator Logic For Mobile Game Developer
Subject description: Sudoku Generator Logic For Mobile Game Developer
Reply with quote

Generating sudoku puzzle using low CPU power: Puzzle generator completely depends on the solver technique in terms of efficiency. So we are half the way through. for solver logic see here . The generator logic is bit easy. Usually these are two common ways to generate Sudoku puzzle.
One: filling an empty grip partially with random numbers in random cells and trying to solve it, if there is a unique solution, the puzzle is ready. Else add another number and try solving. if this fails to produce unique solution puzzle try again with filling a different random numbers in random cells. This method is not suitable for mobile phones, coz this takes along time.
Two: take a filled solution grid and hide some cells now try solving it, if more than one solution is possible then hide more cells, if there is a unique solution then stop hiding more cells. This method is simple and faster but requires some code on generating filled solution grid. To generate a filled solution grid you have to use some matrix theorem rather than filling a grid by random numbers. This is the most deciding part of the methods we have used. We have crossed all major tasks now. Your code efficiency and CPU usage depends on this piece of code. I have tried two extremes of coding in this part which results to generation time of 10 mins and the simplest (the on I have implemented now) which takes at the max 3 seconds on a 35 MHz processor.

Mobile Game Developer
Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Board.RingsWorld.com » Games » Sudoku
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: Latest Discussions
Sudoku World invitation
by Sudoku World - 624 days ago
AnytimeSudoku.net - frees sudoku portal
by kalyan - 789 days ago
Solving Sudoku
by Harvey - 858 days ago
Good Camel's Sudoku Solver!
by jon - 858 days ago
my soduku-solver site
by jon - 858 days ago
Free Sudoku puzzles and software
by jon - 858 days ago
Constellation Sudoku
by aman - 897 days ago
Free Monthly Online Magazine (Advanced Players Only)
by matthew - 903 days ago
Final Fantasy 7 for PS3?
by Urban Legend - 943 days ago
Daily sudoku on your website
by aimien - 947 days ago
Introduce yourself
by aimien - 947 days ago
The definite method for the identification of XYZ wing
by IUSUT - 951 days ago

Link to this Page

If you want to link to this page you can use the following URL:


Example:
 
The Sudoku Web-Ring Community
The Sudoku Web-Ring Community
The purpose of this Web-Ring Community is to bring together all the best sites and resources about the logical puzzle game: Sudoku
(108 members)

» Submit your site and Join The Sudoku Web-Ring Community

 
 

External Links
 

NewsLetter

0.16025900840759