Page 1 of 1

Place cards as deck in Stock

Posted: 14 March 2022, 10:45
by janafayad
Hello,

So I created a deck of 42 cards on the server side, and I wish to see on the screen a deck of these 42 cards (the back of the card)
The cards should be seen as a pile not next to each other
Is it possible to do that with Stock component?

Re: Place cards as deck in Stock

Posted: 14 March 2022, 15:08
by RicardoRix
if you can only see the top card, then just add 1 card with stock.addToStockWithId().

Re: Place cards as deck in Stock

Posted: 19 March 2022, 01:50
by RavingWanderer
Doing this with the Stock component is overkill. All you need to do is present a single cardback in your user interface, I do this in Hand and Foot which also has a card deck. (Assuming the players don't know the ordered content of the deck, you shouldn't be sending it to the client anyway.)