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.
MIT License
1.24k stars 49 forks source link

Search Your Deck For A Specific Card #281

Open doc-halo opened 1 year ago

doc-halo commented 1 year ago

A common feature in many card games allows you to search your draw deck or discard pile for specific card, and add it to play or your hand. This would be useful to add to TTC.

I figure it could either be part of "Details" in the right click menu, or add a new option called "Search Stack". Either way, you will get a list of cards in the stack and then an option to Select, and Take/Deal the card.

drwhut commented 1 year ago

I did think about adding something like this when I first implemented decks of cards to the game, but ultimately decided against it to prevent cheating, for the most part. But now that I think about it, you can peek into the contents of containers, so this would just be an extension of that functionality, but specifically for decks instead of containers.

doc-halo commented 1 year ago

I also thought about the cheating part. Maybe when this is done by a player it can be announced in the chat: "Player 1 takes 1 card from deck. And shuffles deck." Or the player only has an option to "Take" the card so that it's visible from the table. I don't play any other tabletop simulator so I'm not sure how it's done in others.

drwhut commented 1 year ago

Maybe when this is done by a player it can be announced in the chat: "Player 1 takes 1 card from deck.

That's a good idea, it could be done as part of #175, actually.