Closed fabienjuif closed 4 years ago
I can take care of this today @WesleyRUCHAUD Fine to you?
Yes, it's fine for me.
But I thinks that's not what we are looking for.
We should have an action @cards>init
that will generate your deckCards
and the action @cards>pick
should remove the first card from the deck
The last thing that is missing is to save the deckcard as to replay the game
the action @cards>pick
remove the first card from the deck to set her as activeCard
:)
Hm I think you are right BUT we have to take care to not send all cards to players from server when we will be there!
so, we need to add deckCards in technical ?
we will see later what we do for this, one step a time
fixed in #6
Right now two
@cards>pick
can have 2 differents issues. This is not what we are looking for.I think our engine should wrap functions like "pick", that:
@cards>pick
and give the random card pickedThis way actions are replayable with only
state.technical.actions