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

Fix logic that determines if a game is startable when first constructed #182

Merged
merged 1 commit into from
Nov 28, 2023

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
3 checks passed
@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.

None yet

1 participant