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   

Implementation technique

 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Software
View previous topic :: View next topic  
Author Message
par4noia

Joined: 31 Jan 2007
Posts: 2
:

Items
PostPosted: Wed Jan 31, 2007 10:44 pm    Post subject: Implementation technique Reply with quote

Hi all!

I'm new to this forum, as you may see by the number of posts:P

I recently decided to learn Ruby, coming from Java, and I thought that creating a sudoku solver would be a nice to way to start playing and learning Ruby...

I started by implementing a simple technique..but after some successful puzzles I found some that my program couldn't handle..So I reached this forum, which is really great!

I have to be honest, I never thought there were so many ways to solve a puzzle!

So, my question is, how do you implement all these techniques on a program? Do you use them all? Or do you let the user select the technique he wants to try? I know that most "advanced" solvers have different techniques implemented, I just wanted to know how does the program decides which technique to use..


Cumps
Back to top
View user's profile Send private message
Morgoth

Joined: 12 Mar 2007
Posts: 3
:
Location: Sofia / Bulgaria

Items
PostPosted: Tue Mar 20, 2007 11:12 am    Post subject: Reply with quote

Code:
while ( puzzle is not solved ) {
  for ( all methods sort by difficulty ) {
    if ( method has done something ) {
      break;
    } // else next one
  }
}


Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Software 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