I’m building a simple card game to learn node.js and socket.io. When all players toss their cards at the end of the turn, I could automatically clear the table and set the next turn, but if I do it as soon as the last card is thrown, it gets a little awkward as other players do not see what the last player played.
Currently, I see two options:
- ask each player to click “continue” before clearing the table OR
- introduce a delay and then clear the table automatically. I’m not sure how long should this delay be?
Is there some better way to to this?
In the end I set the 4 seconds delay before clearing the table. If some of the players plays a new card (new round started) I “overwrite” that card spot but keep the old cards on the table until delay is over.