drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.26k stars 51 forks source link

[Feature request] Shuffle across stacks #202

Closed GrimPixel closed 1 year ago

GrimPixel commented 1 year ago

Is your feature request related to a problem? Please describe. In some games, shuffling needs to be done across stacks, e.g. mahjong.

Describe the solution you'd like Shuffle across stacks.

Describe alternatives you've considered None.

Additional context

drwhut commented 1 year ago

What do you mean by shuffling "across stacks"?

GrimPixel commented 1 year ago

If I select multiple stacks and click on “Shuffle”, then the cards are shuffled within the multiple stacks.

drwhut commented 1 year ago

As in, a card in stack A may or may not end up in stack B? Do the sizes of the stacks stay the same afterwards?

Could you provide an example (e.g. a video) of this happening in a game?

GrimPixel commented 1 year ago

A card in stack A may end up in stack B. The sizes of the stacks stay the same. If someone creates a mahjong “Game”, then there will be 4 stacks and a player needs to select the 4 stacks and click on “Shuffle”. https://yewtu.be/watch?v=uKMbNHaHcCY

elmodor commented 1 year ago

Sounds like something that is very niche and could be added via scripting? Not sure if a default "shuffle across stacks" is a good solution if you accidentally had multiple stacks selected and shuffle. You won't even notice that you shuffled them with each other.

GrimPixel commented 1 year ago

If they were accidentally shuffled, and you don't notice it, then it is nothing different with not shuffling it. It is replacing an unknown sequence with another unknown sequence. To be noticed when multiple stacks are accidentally shuffled, it can be done in https://github.com/drwhut/tabletop-club/issues/175.

drwhut commented 1 year ago

Gonna close this for now, as this is too specific to justify adding to the game in general.

GrimPixel commented 1 year ago

I have an idea for Mahjong, etc.: place them in a concealed container. That is not so convenient when the feature of spawning pieces from boards randomly is available.

drwhut commented 1 year ago

How do you mean "spawning pieces from boards randomly"?

GrimPixel commented 1 year ago

It's the additional feature to the feature https://github.com/drwhut/tabletop-club/issues/229.