SudokuSolver Forum

A forum for Sudoku enthusiasts to share puzzles, techniques and software
It is currently Tue Apr 23, 2024 2:23 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Mon Jun 02, 2008 3:04 pm 
Offline
Addict
Addict

Joined: Sat May 24, 2008 7:53 am
Posts: 32
Location: Highlands
I would be grateful if someone could provide an easy way to convert the first killer file definition (below) to the second. (MS Excel, perhaps?)

The first definition is from Puzzle Tiger. The second definition is, of course, the format used by SudokuSolver and jSudoku. I want to be able to use SS or jS to solve puzzles generated by PT. I don't need to go in the opposite direction.

Please note that I have inserted carriage returns in the second definition. Otherwise the line is so long that it intrudes into the following Firefox tabs, and I get rude (ruud?) complaints from the webmasters of those sites.

-------------------------------------------

0011223334441526738841526779aa1556bb9cadee6ff9cadegffh9cideggghjciiiiklljjjjkkkll 6, 25, 24, 29, 29, 12, 26, 7, 4, 26, 20, 5, 21, 17, 20, 22, 21, 5, 18, 24, 16, 28,

-------------------------------------------

3x3::k:1537:1537:6402:6402:6147:6147:7428:7428:7428:
7429:7429:7429:6402:3078:6147:6663:1800:7428:
1033:1033:7429:6402:3078:6147:6663:1800:1800:
6666:5131:5131:6402:3078:3078:6663:1292:1292:
6666:5389:5131:4366:5135:5135:6663:5648:5648:
6666:5389:5131:4366:5135:5393:5648:5648:1298:
6666:5389:4627:4366:5135:5393:5393:5393:1298:
6164:5389:4627:4627:4627:4627:4117:7190:7190:
6164:6164:6164:6164:4117:4117:4117:7190:7190:
-------------------------------------------

The first definition might be more clearly seen as:

Code:
001122333
444152673
884152677
9aa1556bb
9cadee6ff
9cadegffh
9cidegggh
jciiiikll
jjjjkkkll

  6, 25, 24, 29, 29, 12, 26, 7, 4, 26, 20, 5, 21, 17, 20, 22, 21, 5, 18, 24, 16, 28,


The pairs of numbers seem to correspond to the cage totals.

Old Gran
.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 02, 2008 6:38 pm 
Offline
Site Admin

Joined: Sun Apr 13, 2008 1:50 pm
Posts: 191
Location: London
Hi

try this little standalone converter
Attachment:
ConvertPuzzleTiger.exe [32 KiB]
Downloaded 835 times


paste the PuzzleTiger string into the first text box

click on Convert

if it valid, you will get the PS string in the second text box.

Rgds
Richard

[Edited with new information - should anybody want a puzzle with more than 36 cages]


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 02, 2008 8:06 pm 
Offline
Addict
Addict

Joined: Sat May 24, 2008 7:53 am
Posts: 32
Location: Highlands
rcbroughton wrote:
try this little standalone converter


The script worked great. :)

Thanks for that.
.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 03, 2008 12:48 am 
Offline
Grand Master
Grand Master
User avatar

Joined: Wed Apr 23, 2008 5:29 am
Posts: 302
Location: Sydney, Australia
I wonder how the Puzzle Tiger code works with puzzles with more than 36 cages (10 digits + 26 letters = 36)? Perhaps one could try to enter a puzzle with 81 "cages" and see how the program generate a code... :geek:

_________________
ADYFNC HJPLI BVSM GgK Oa m


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 03, 2008 9:03 am 
Offline
Addict
Addict

Joined: Sat May 24, 2008 7:53 am
Posts: 32
Location: Highlands
udosuk wrote:
I wonder how the Puzzle Tiger code works with puzzles with more than 36 cages (10 digits + 26 letters = 36)?


Here's the code for a "Very Easy" 39-cage puzzle from Puzzle Tiger:

0122345560177389a6bccdd89aebffdgghheijkklmmnoijpklqqnorrpstuuvwxyysttvvwxzzAABBCC 3, 14, 7, 8, 9, 15, 7, 13, 3, 5, 15, 12, 13, 24, 7, 4, 10, 11, 10, 14, 16, 5, 16, 5, 8, 7, 14, 15, 8, 19, 5, 8, 15, 12, 6, 7, 11, 9, 15,

udosuk wrote:
Perhaps one could try to enter a puzzle with 81 "cages" and see how the program generate a code


For the benefit of mankind (peoplekind?), I will undertake the assignment.

Do I simply need to solve a puzzle (such as the puzzle above), then manually enter each digit in its own cage?

Or are there hidden ramifications, dependencies, pitfalls, and hurdles for the unwary?
.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 03, 2008 10:56 am 
Offline
Grand Master
Grand Master
User avatar

Joined: Wed Apr 23, 2008 5:29 am
Posts: 302
Location: Sydney, Australia
So the program uses capital letters to follow the small letters. That makes it able to code 62 cages (10 digits, 26 small letters, 26 capital letters).

The point of testing on an 81-cage killer is to check how it would code cages #63-81. My guess is it uses symbols/punctuation marks etc but it remains to be proved.

_________________
ADYFNC HJPLI BVSM GgK Oa m


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 03, 2008 3:27 pm 
Offline
Site Admin

Joined: Sun Apr 13, 2008 1:50 pm
Posts: 191
Location: London
udosuk wrote:
So the program uses capital letters to follow the small letters. That makes it able to code 62 cages (10 digits, 26 small letters, 26 capital letters).
Converter modified in light of this new information.

I would consider any Killer with more than 62 cages rather boring ... even 36 is starting to get rather simplistic.

Rgds
Richard


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 04, 2008 4:22 am 
Offline
Grand Master
Grand Master
User avatar

Joined: Wed Apr 23, 2008 5:29 am
Posts: 302
Location: Sydney, Australia
rcbroughton wrote:
I would consider any Killer with more than 62 cages rather boring ... even 36 is starting to get rather simplistic.

Any proper Killer (i.e. no singlet cage) has at most 40 cages.

But I'm just curious about the coding principle for the sake of it. :geek:

_________________
ADYFNC HJPLI BVSM GgK Oa m


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group