Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AlecM33
Copy link
Owner

@AlecM33 AlecM33 commented Nov 28, 2023

There was a small bug in the logic that determined whether a game can be started as soon as it is constructed. Specifically, if the game has a temporary moderator, and the deck has 0 cards, we were still saying the game can be started, which is obviously incorrect (we have no card to deal to the temporary moderator). Now we just check if the count of users who get dealt a card is equal to the game size.

@AlecM33 AlecM33 merged commit 2a52bd0 into master Nov 28, 2023
@AlecM33 AlecM33 deleted the fix-startability branch November 28, 2023 23:25
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

Successfully merging this pull request may close these issues.

2 participants