Hi Mr. Monsen!
Thanks for your email - see below for my response.
On Monday 19 January 2009 21:21:26 Adam Monsen wrote:
> I've been playing Baker's Game in Sol Free on the iPhone. I recently
> found fc-solve and was amazed by the comprehensive approach to finding
> solutions. Wow! Nice work.
Thanks!
>
> I'll attempt to map "Sol Free / iPhone" version of Baker's Game rules
> to fc-solve command-line options...
Do you imply that what Sol Free calls "Baker's Game" is different from the
general conception of the game? See:
*
http://www.solitairelaboratory.com/fcfaq.html
*
http://en.wikipedia.org/wiki/Freecell
> * building downwards on stacks must be done according to suit
> --sequences-are-built-by suit
This is always the case for Baker's Game.
> * moving a sequence (say 9H, 8H, 7H) requires available vacant
> freecells or empty stacks
> --sequence-move limited
This is always the case for Baker's Game as well.
>
> Here's the board I'm trying to solve:
>
> 3D 3S 5C 9H QH 5D JD
> JS KD 3H 6C 7H 7S 4S
> 5S 6D 6H 2C 4H 8D AC
> JC 2H QD KC KS 2S 3C
> JH KH AH 7D QS 8H
> AD 2D TS 4C 8S 5H
> TH TC 9C 6S TD AS
> 7C 9S 4D 9D QC 8C
>
> Command line:
>
> fc-solve \
> --display-states-and-moves \
> --sequence-move limited \
> --sequences-are-built-by suit \
> board
You're missing a -g bakers_game (And like I said, you don't need the --
sequence-move and --sequence-are-built-by-suit). Was that an unintentional
omission on your part?
>
> I'm using fc-solve that came with the freecell-solver-bin package
> version 2.8.10-1 on Ubuntu 8.10.
Well, there's already version 2.12.0, and the 2.8.x maintenance branch has
gone up to 2.8.14. I recall that the Freecell Solver package in Debian (and as
a result Ubuntu as well) is out of date, and I need to open there a bug
requesting its update.
>
> One of the moves in the solution is...
>
> ====================
>
> Move 4 cards from stack 1 to stack 5
>
> 6D 4D KS H-0 C-4 D-0 S-2
> --- --- --- ---
>
>
> -- -- -- -- -- -- -- --
> 3D JS 6H JC JH AD 10H
> 3S KD 5H 2H KH 2D 10C
> 5C 3H 4H QD AH 10S 9C
> 9H 6C KC 7D 9S 8C
> QH 7H QC QS 8S 7C
> 5D 8H 7S
> JD 6S
> 10D 5S
> 9D 4S
> 8D
>
>
> ====================
>
> 1. But, given the rules above, this is an illegal move. Only two
> vacant spaces are available: 1 freecell and 1 empty stack. Any idea
> what's going on here?
I can see it now, but actually it is a valid move. It is a meta-move that
comprises of the following atomic moves:
1. Move the 4S to the Freecell.
2. Move the 5S to the empty column.
3. Move the 4S on top of the 5S.
4. Move the 6S to the Freecell.
5. Move the 7S on top of the 8S (= the destination).
6. Move the 6S on top of the 7S.
7. Move the 4S to the freecell.
8. Move the 5S on top of the 6S.
9. Move the 4S on top of the 5S.
Thus we get from:
{{{{{{{{{{{{{
Move a card from stack 7 to freecell 1
6D 4D KS H-0 C-4 D-0 S-2
--- --- --- ---
-- -- -- -- -- -- -- --
3D JS 6H JC JH AD 10H
3S KD 5H 2H KH 2D 10C
5C 3H 4H QD AH 10S 9C
9H 6C KC 7D 9S 8C
QH 7H QC QS 8S 7C
5D 7S 8H
JD 6S
10D 5S
9D 4S
8D
====================
Move 4 cards from stack 1 to stack 5
6D 4D KS H-0 C-4 D-0 S-2
--- --- --- ---
-- -- -- -- -- -- -- --
3D JS 6H JC JH AD 10H
3S KD 5H 2H KH 2D 10C
5C 3H 4H QD AH 10S 9C
9H 6C KC 7D 9S 8C
QH 7H QC QS 8S 7C
5D 8H 7S
JD 6S
10D 5S
9D 4S
8D
}}}}}}}}}}}}}
>
> 2. Usage question: if I use "--game bakers_game
> --sequences-are-built-by suit --sequence-move limited", will the
> second and third command line parameters override whatever is
> specified by "--game bakers_game"?
The should. What "--game bakers_game" (or "-g bakers_game" for short) does is
lookup the various parameters and over-ride them immediately. So the
subsequent options over-ride that.
>
> 3. What is the default game type? I'm guessing Freecell, but I
> couldn't find this documented anywhere.
The default game type is indeed Freecell.
>
> 4. Is there a chart detailing all the default command line options or
> which settings are specified when you pick a game type?
The command line options are documented in the USAGE file:
http://fc-solve.berlios.de/USAGE
As for what every game type mean - for that you'll have to read either of the
following files:
1.
http://svn.berlios.de/viewcvs/fc-solve/trunk/fc-
solve/source/gen_presets.pl?view=log
(short -
http://xrl.us/bec48d ).
2.
http://svn.berlios.de/viewcvs/fc-solve/trunk/fc-solve/source/preset.c?view=log
(short -
http://xrl.us/bec48q ).
The games' configurations should match those of PySol (and now PySolFC). If
there are any deviations between the two, let me know and I'll correct it.
Regards,
Shlomi Fish
>
> Thanks!
>
> --
> Adam Monsen
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Understand what Open Source is - http://xrl.us/bjn82
<mauke> I'm not interested in what you're doing; what are you trying to
achieve?
<PerlJam> mauke: I'm trying to achieve world peace and this regex is
the last thing standing in my way! ;)
Received on Tue Jan 20 2009 - 03:54:48 IST