Re: board generation in Pretty Good Solitaire

From: Shlomi Fish <shlomif_at_iglu.org.il>
Date: Sat, 8 Dec 2007 08:27:02 +0200

Hi larrysan45!

On Friday 07 December 2007, larrysan45 wrote:
> My question involves the generation of boards in Pretty Good
> Solitaire. In their Freecell game the game numbers correspond to the
> microsoft/fcpro game numbers up to # 10000000. However in British
> Canister, a zero freecell, Kings Only freecell like game, their game
> numbers are not the same. Would their game numbering be considered
> propriety information or would this be something that could be
> incorporated into the fc-solve program?

The fc-solve executable (and the "freecell-solver" library) are generic and
will accept any valid board layout, including those from mid-play. Their
format is documented in the README file:

http://fc-solve.berlios.de/README

Now, they don't have a way of generating boards for their own input. This is
what the board generators (inside the board_gen sub-directory of the FCS
distribution) are for. These can be used to input a board to fc-solve like
this:

<<<<<<<<<
make_pysol_freecell_board.py 24 | fc-solve
>>>>>>>>>

In order to input the boards of Pretty Good Solitaire, we'll need to know the
generation algorithm that is used generate their boards. This is something
that can be achieved either by the developers of PGS giving us that required
information, or by someone reverse-engineering the binary code.
Reverse-engineering will be more work, and may be legally iffy.

So what I suggest is that you contact the PGS developers and ask them if they
are willing to give more information about how exactly they generate these
boards. If they supply it, then I or someone else will be able to write our
own generator for their initial boards that can output it in a format
acceptable for input by Freecell Solver (and other solvers).

Regards,

        Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish shlomif_at_iglu.org.il
Homepage: http://www.shlomifish.org/

I'm not an actor - I just play one on T.V.
Received on Fri Dec 07 2007 - 22:27:17 IST