You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some phases can be reduced to one - Lobby. In lobby players should choose their persona, seat and report readiness. Then game can starts.
Reduce game phases
Backend: Seats mechanism
Frontend: Seats mechanism
It can be done on one branch.
First player which joins the room has seat = 0. Then rest of the players must choose their seat. Free seat has assigned id of player from seats array for example:
constplayerSeats=["Adam","Bartek","Celina","Damian","Ewa"]// Adam has seat number 0, Bartek 1 and so on// When we choose seat between Adam & Bartek we recive Bartek's seat number.// We send it to backend and at backend we increase every seat higher or equal than reviced seat number// When players disconnects seats must be decreased
The text was updated successfully, but these errors were encountered:
Some phases can be reduced to one - Lobby. In lobby players should choose their persona, seat and report readiness. Then game can starts.
It can be done on one branch.
First player which joins the room has seat = 0. Then rest of the players must choose their seat. Free seat has assigned id of player from seats array for example:
The text was updated successfully, but these errors were encountered: