|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
comment on |
| ( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
|
I have been feeling rather deprived of Perl activity the last few months... so when I was playing a card game on my phone (a simple one that I have >95% win rate on), but had spent quite a few attempts (it allows undo/restart), I decided to program in as much of the "deal" as I could see, and see if I could get Perl to find a route to one or more of the as-of-yet unseen reserve cards (at which point, I'd be able to try to move forward and maybe even win this hand).
Canfield_(solitaire) variant:
With that, I hacked together a solver that gave a 50% chance at every "decision point", then went through thousands of games. It was never able to find a path to reveal the next card (the first ? in the deal), so I'm pretty confident that this particular deal isn't winnable.
I figured I might as well share this CUFP, even if it's not overly groundbreaking (and definitely not great code).
<Reveal this spoiler or all in this thread>
In reply to Canfield (solitaire card game) checker by pryrt
|
|