shlomif / PySolFC

A comprehensive, feature-rich, open source, and portable, collection of Solitaire games.
http://pysolfc.sourceforge.net/
GNU General Public License v3.0
445 stars 97 forks source link

Game ideas: Short Picture Gallery (one deck variation of the classic game) #338

Open LinuxBeaver opened 9 months ago

LinuxBeaver commented 9 months ago

Is it possible to make two new games for Pysol that feature Picture Gallery with both one deck and four decks? I'd like to see that.

joeraz commented 9 months ago

I actually did some experimenting on the idea of a one-deck Picture Gallery sometime last year. I found that Picture Gallery doesn't really work too well as a one-deck game. It's a lot more difficult to free up the tableau piles, so usually, the player is barely able to make any moves, and quickly gets critical cards blocked, and loses. It's also not that uncommon to get a deal where the player can't free up any tableau piles, and can't do anything other than futilely deal through the talon. If you'd like a plugin for this, or a branch, I can set it up, but I think a single deck Picture Gallery needs something a bit more to work.

Four-deck, on the other hand, not a problem. I did previously add some three or four deck variants of some Picture Gallery variants, but never did anything with the original Picture Gallery.

LinuxBeaver commented 8 months ago

So, is the plugin like a .py file I put somewhere in Pysol to get the game.

yes sure. I'll experiment with 1 deck and a 3 or 4 deck variation of picture gallery via the plugin.

joeraz commented 8 months ago

Yes. A plugin is just a .py file you can stick in your plugins folder to add an additional game, or content. See https://pysolfc.sourceforge.io/doc/plugins.html

I'll set something up and get back to you soon.

joeraz commented 8 months ago

Here you go - this contains a copy of the Picture Gallery code, along with a simple one-deck, three-deck, and four-deck version. picturegallerytest.zip

LinuxBeaver commented 8 months ago

Ok, I got the (Plugin) picture galleries in the game list. Thanks!

LinuxBeaver commented 8 months ago

I played several games of three and four deck PG, nice.

image

But you are right, 1 deck just doesn't come out. Unless of course modification exist such as possibly 1 deck PG with a 2,3, and 4 in their correct slots. But I'm not sure if that would increase the likelyhood of winning the game.

joeraz commented 8 months ago

That lines up with my thoughts. I'll make a note to put the three and four deck versions in the main gamedb.

If you want to try a version where the twos, threes, and fours are pre-dealt to the right piles, the _shuffleHook from the game Mount Olympus could probably be easily rewritten to do that.

joeraz commented 7 months ago

I added the three and four deck versions to the main app. We might be close enough to having enough picture gallery variants now to give them their own category.

Would you like to continue reviewing one-deck variants to try and come up with one that works, or should we leave it be?