Pheonyxior / Pirate-Solitaire-Git-Repo

The Godot project for this game : https://victor-pernet.itch.io/pirate-solitaire accessible under the MIT License
MIT License
30 stars 2 forks source link

Numbered deals, so we can restart a specific match by its number #13

Closed Ferk closed 9 months ago

Ferk commented 10 months ago

Congrats, this solitaire is very enjoyable!

Some Freecell solitaire programs show the seed number that was used to generate the random shuffle of the deck. The algorithm used is documented in: https://rosettacode.org/wiki/Deal_cards_for_FreeCell (though that's for a traditional 52 cards deck)

It would be very nice if something similar could be integrated in Pirate Solitaire. For example, long pressing on the new game button could open a dialog asking the deal number for a new game (with the current deal number already prefilled) so we can repeat the same match from the beginning (as suggested in https://github.com/Pheonyxior/Pirate-Solitaire-Git-Repo/issues/2#issuecomment-1818620971), or change the number and play a specific match (the same number should always produce the same card layout).

When Freecell programs started doing this, it added some social factor to the game, because it allowed people to then share the number with friends to try and see if they can beat the same shuffle that their friend couldn't... or just to try and figure out if the deal is winnable at all. People have even dedicated online pages to documenting how to solve each numbered deal of Freecell thanks to this, and/or ranking them by difficulty (eg. https://freecellgamesolutions.com/stats.html).

Pheonyxior commented 9 months ago

That suggestion is really cool, I am currently working it into the game : image

Pheonyxior commented 9 months ago

This feature has been implemented in the last commit, it should be up on f-droid in a few days but no promises.