pangea-poker icon indicating copy to clipboard operation
pangea-poker copied to clipboard

Cards should not be dealt right after the user joins the table

Open piggydoughnut opened this issue 4 years ago • 3 comments

How it works now

Cards are dealt right after the user successfully joins the table (makes a socket connection to backend)

Suggestion

We should get rid of dealing cards after joining the table and let the dealer pres start to deal cards for the game.

Thoughts?

piggydoughnut avatar Jul 06 '20 07:07 piggydoughnut

Yes, that should not happen. Cards should be dealt based on when the players are receiving their card info from the backend.

norbertdragan avatar Jul 10 '20 12:07 norbertdragan

@sg777 the cards are dealt because the frontend receives deal message right after the user sits down. Could we only send the deal once the dealer starts the game? Would that be possible?

piggydoughnut avatar Aug 19 '20 06:08 piggydoughnut

The dealer should not have any manual selections on their side (we do not want people to actually have to be at their computer to deal manually). Maybe this could be an option for private tables.

Public tables, by default, should start the hand after:

  • N number of people sit at the table (a dealer settable option I'd say) and 10s passes (to allow more people to sit down), or
  • once all seats are filled, or
  • after X amount of time passes (I'd say between 15-30s) AND the dealer has not set an N amount of players.

Example 1 A table has 9 seats and the dealer sets 5 as the minimum for game start (5/9 to start). The table has 4 people join it. The game does not start. A 5th person joins and 10s passes. The game is dealt.

Example 2 A table has 9 seats and the dealer has not set N amount of players to start (2/9 as you need a minimum 2 players to play a game). The table has 1 person on it. It does not start. A 2nd person joins the table and 15-30s passes without anybody else joining. The game is dealt. Following that hand, the dealer waits 30s, a 3rd and 4th person join. After waiting the amount of time, the hand is dealt.

Example 3 A table has 9 seats and the dealer has set 7 players minimum to start (7/9). The table has 8 players and finishes a hand. The game listens for anybody sitting down and the next hand is automatically started as there is >=7players on the table.

Example 4 (private table) A table has 9 seats and the dealer sets manual gameplay. 7 Players join the table. The dealer is happy with that number and selects 'start dealing' (or some other button). The game is played and finishes after 1 hand. When the dealer is ready for another hand, they select 'start dealing'. The game finishes another hand and stops. At this point, the dealer is sick of manually starting the game and selects 'continue dealing'. This option would automatically start the hand once the last is finished. After a few hands, the dealer wants another friend to join so they deselect 'continue dealing'. Following that hand, the dealing is stopped and another person joins the game. The dealer reselects 'continue dealing' and the game is started.

NutellaLicka avatar Feb 12 '21 23:02 NutellaLicka