Skip to content

Users can have the same color when they join the lobby at the same time. #7

@surfthink

Description

@surfthink

This happens because I allocate the color when the player joins the lobby. This does not make sense because at this stage the player does not need a color.

Refactor the code to make it so that color is assigned to players when the game starts. Also initialise the deck and have the players draw their cards when the game starts and not before.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions