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   

My Sudoku Algorithm

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

Joined: 29 Sep 2005
Posts: 5
:

Items
PostPosted: Thu Sep 29, 2005 10:13 pm    Post subject: My Sudoku Algorithm Reply with quote

A pale just introduced me to Soduko and i thought this would be a nice coding task. The result can be found here, Source here.

I was searching for hard Sudokus so i checked this page: http://www.sudokusolver.co.uk/grids_nologic.html -- i tried the second sudoku on my algorithm and it said the sudoku is unsolvable... can anyone confirm this?

Code:

3 * *  8 * *  * * * 
* 6 *  4 7 9  * * 3 
* * 4  * 6 3  * 7 * 

6 * *  * * 1  * * * 
* * 5  * * *  1 * * 
* * *  2 * *  * * 9 

* 9 *  6 2 *  4 * * 
7 * *  9 4 8  * 1 * 
* * *  * * 5  * * 2


greetz, gtb.
Back to top
View user's profile Send private message
Moschopulus

Joined: 12 Aug 2005
Posts: 39
:

Items
PostPosted: Thu Sep 29, 2005 11:38 pm    Post subject: Reply with quote

I don't know what you mean by "unsolvable".

This puzzle has one solution, so it is a valid sudoku puzzle.
Back to top
View user's profile Send private message Visit poster's website
gtb

Joined: 29 Sep 2005
Posts: 5
:

Items
PostPosted: Fri Sep 30, 2005 11:16 am    Post subject: Reply with quote

ah Very Happy i just found a bug now it solved it Smile

Code:

  3 7 9  8 1 2  6 4 5 
  5 6 1  4 7 9  2 8 3 
  2 8 4  5 6 3  9 7 1 

  6 3 8  7 9 1  5 2 4 
  9 2 5  3 8 4  1 6 7 
  4 1 7  2 5 6  8 3 9 

  1 9 3  6 2 7  4 5 8 
  7 5 2  9 4 8  3 1 6 
  8 4 6  1 3 5  7 9 2 


i also tried some other illogical sudokus and he solved em all by 'guessing' once or twice in later steps
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Programming 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