Skip to content

Integration: Lobby page #30

@mit3r

Description

@mit3r

Refactor lobby to handle

Setting seats

- [ ] Backend: Seats mechanism
- [ ] Frontend: Seats mechanism

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

Naming players

Players list updates

Persona updates

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions