Author Topic: sppconvert utility: Convert various Sudoku file formats to puzzle packs  (Read 3488 times)

0 Members and 1 Guest are viewing this topic.

Offline David

  • Administrator
  • *****
  • Posts: 314
  • Karma: 10
    • View Profile
    • http://www.smoresoft.com/
Here's a simple Windows command-line utility to convert various Sudoku game file formats to puzzle packs that can be read by Smoresoft Sudoku.

I've tested it with sdm, sdk, sud, and sudbook files.  If you find a file format it can't read, feel free to post it here and I'll see if I can add support for it.

I've included the C# source code in case someone wants to improve on it.  The code is released into the public domain.  Do what you wish with it, at your own risk.

Usage:

    sppconvert {source path} {destination file} {rating}

where:

    {source path} is a path containing files to be imported, and can include wildcards.
    {destination file} is the name of the puzzle pack output file.
    {rating} is the rating given to the puzzle pack (1-9).

Example:

    C:\>sppconvert "C:\puzzles\*.sud" "Puzzles.spp" 5

The above example converts all of the files ending with ".sud" in the directory "C:\puzzles" to a single puzzle pack file named "Puzzles.spp".  The puzzles will all be rated at level 5.

-David
« Last Edit: June 06, 2007, 06:46:26 AM by David »