Fwd: [ANN] Successful Proof-of-Concept solver for Golf patience/solitaire

7 views
Skip to first unread message

Shlomi Fish

unread,
Jan 1, 2019, 9:47:55 AM1/1/19
to FOSS Card Games


---------- Forwarded message ---------
From: Shlomi Fish shl...@shlomifish.org [fc-solve-discuss] <fc-solve...@yahoogroups.com>
Date: Mon, Dec 31, 2018 at 7:20 PM
Subject: [ANN] Successful Proof-of-Concept solver for Golf patience/solitaire
To: Freecell Solving Discussions <fc-solve...@yahoogroups.com>


 

Hi all and happy new civil year!

I am happy to announce that my git branch of tweaking the Perl 5-based black
hole solitaire solver into solving
https://en.wikipedia.org/wiki/Golf_(patience) appears to have resulted in a
functional prototype / proof-of-concept:

*
https://github.com/shlomif/black-hole-solitaire/tree/feature-branch--golf-solitaire-support

*
https://github.com/shlomif/black-hole-solitaire/commit/c667bcf21a431274c5062acd88773b73dce6f1e1

I tested it like this:

mkdir boards

/home/shlomif/progs/freecell/git/fc-solve/fc-solve/source/board_gen/gen-multiple-pysol-layouts
--dir boards/ --game golf --prefix golf --suffix .board seq 1 1000

( for fn in
boards/*.board ; do echo "== $fn ==" ; perl -Ilib bin/black-hole-solve "$fn" ;
done ) | tee -a ~/golfs.txt

and then played the solution of deal #1000 in PySol FC manually.

I initially resisted trying to solve Golf because it had a talon, but a few
days ago decided to rethink my prejudice and try again. Reading
https://en.wikipedia.org/wiki/Golf_(patience) led me to
https://politaire.com/article/golf.html where he says he wrote a solver for it
(but it does not appear to have been made public). I also read
https://politaire.com/article/blackhole.html where he mentions my solver and
some further work by Ian Gent.

Also reading now it seems that my solver currently handles the Queen-on-King
variation of Golf solitaire. Also note that it will require further work to be
incorporated into the C solver.

Cheers!

Shlomi Fish

--
----------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Perl Elems to Avoid - http://perl-begin.org/tutorials/bad-elements/

Larry Wall applies a patch manually quicker than GNU patch.
http://www.shlomifish.org/humour/bits/facts/Larry-Wall/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

__._,_.___

Posted by: Shlomi Fish <shl...@shlomifish.org>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


SPONSORED LINKS
.

__,_._,___


--
Shlomi Fish http://www.shlomifish.org/

You can never truly appreciate The Gilmore Girls until you've watched it in the original Klingon.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
Reply all
Reply to author
Forward
0 new messages