Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce phases & Taking seats mechanism #30

Open
3 tasks
mit3r opened this issue Dec 30, 2024 · 0 comments
Open
3 tasks

Reduce phases & Taking seats mechanism #30

mit3r opened this issue Dec 30, 2024 · 0 comments

Comments

@mit3r
Copy link
Collaborator

mit3r commented Dec 30, 2024

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:

const playerSeats = ["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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant