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   

PM to Simple Sudoku Conversion Program

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

Joined: 05 Feb 2006
Posts: 349
:

Items
PostPosted: Sat Mar 24, 2007 6:49 pm    Post subject: PM to Simple Sudoku Conversion Program Reply with quote

Simple Sudoku lets you input a PM through 'Paste' from the clipboard. It also includes the current PM when you do a 'Copy' to the clipboard. However, you can't place a PM into a .SS file and you can't always successfully save a PM to a .SS file -- until now.

I've transformed a copy of my solver into a conversion program that reads a PM from an input file and creates a .SS output file that exactly matches it. This way, any eliminations in the PM are preserved, and any additional changes will be properly appended so that the puzzle can be saved and reloaded properly.

What I need to know now is if I'm the only one interested in my conversion program. It runs in Windows, and I have a simple BATch file so it can be run with drag-n-drop ease.

in_cnvt.txt

Code:
+------------------+------------------+------------------+
| 123   8     57   | 6     4     125  | 9     12    237  |
| 6     12    57   | 358   9     1258 | 157   4     2378 |
| 123   9     4    | 1358  12358 7    | 15    6     238  |
:------------------+------------------+------------------:
| 7     15    9    | 158   158   6    | 2     3     4    |
| 8     25    3    | 9     25    4    | 6     7     1    |
| 4     6     12   | 12    7     3    | 8     9     5    |
:------------------+------------------+------------------:
| 12    7     8    | 4     6     125  | 3     125   9    |
| 5     4     12   | 1237  13    9    | 17    8     6    |
| 9     3     6    | 1578  1258  1258 | 4     125   27   |
'------------------'------------------'------------------'

out_cnvt.ss

Code:
*-----------------------*
| . 8 . | 6 4 . | 9 . . |
| 6 . . | . 9 . | . 4 . |
| . 9 4 | . . 7 | . 6 . |
|-------+-------+-------|
| 7 . 9 | . . 6 | 2 3 4 |
| 8 . 3 | 9 . 4 | 6 7 1 |
| 4 6 . | . 7 3 | 8 9 5 |
|-------+-------+-------|
| . 7 8 | 4 6 . | 3 . 9 |
| 5 4 . | . . 9 | . 8 6 |
| 9 3 6 | . . . | 4 . . |
*-----------------------*

E020012
E07005
E10005
E110012
E120012
E21002
E67002
E75002

A ZIP'd folder containing the program is now available.

http://www.zshare.net/download/pm_cnvt-zip-4x1.html
Back to top
View user's profile Send private message
daj95376

Joined: 05 Feb 2006
Posts: 349
:

Items
PostPosted: Sun Mar 25, 2007 3:35 pm    Post subject: Reply with quote

Updated above post to contain a link to conversion program.
Back to top
View user's profile Send private message
gsf

Joined: 18 Aug 2005
Posts: 411
:
Location: NJ USA

Items
PostPosted: Sun Mar 25, 2007 5:13 pm    Post subject: Re: PM to Simple Sudoku Conversion Program Reply with quote

daj95376 wrote:

E020012
E07005
E10005
E110012
E120012
E21002
E67002
E75002

how are the E lines decoded?
Back to top
View user's profile Send private message Visit poster's website
daj95376

Joined: 05 Feb 2006
Posts: 349
:

Items
PostPosted: Sun Mar 25, 2007 5:54 pm    Post subject: Re: PM to Simple Sudoku Conversion Program Reply with quote

gsf wrote:
daj95376 wrote:

E020012
E07005
E10005
E110012
E120012
E21002
E67002
E75002

how are the E lines decoded?

Ennssv...

E(xclude) in cell 'nn' (0..80) value(s) 'v' (1..9). 'ss' is a sequence number when multiple cells are involved in one Simple Sudoku operation. I don't utilize the 'ss' field. ( Exclamation Maybe I should use the 'ss' field and make the eliminations all one operation.)
Back to top
View user's profile Send private message
gsf

Joined: 18 Aug 2005
Posts: 411
:
Location: NJ USA

Items
PostPosted: Sun Mar 25, 2007 6:35 pm    Post subject: Re: PM to Simple Sudoku Conversion Program Reply with quote

daj95376 wrote:
[
Ennssv...

E(xclude) in cell 'nn' (0..80) value(s) 'v' (1..9). 'ss' is a sequence number when multiple cells are involved in one Simple Sudoku operation. I don't utilize the 'ss' field. ( Exclamation Maybe I should use the 'ss' field and make the eliminations all one operation.)

thanks
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 -> 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