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

Winner list is now check if there is any in there. #77

Merged
merged 3 commits into from
Apr 5, 2018
Merged

Winner list is now check if there is any in there. #77

merged 3 commits into from
Apr 5, 2018

Conversation

TheBoboNL
Copy link
Contributor

If none, a message is send that there are no winners.
Added the same check before the currency change just to be sure.
Changes for #60

If none, a message is send that there are no winners.
Added the same check before the currency change just to be sure.
Copy link
Contributor

@AridTag AridTag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than that 1 minor change this looks good

if (winnersList.Count() > 1)
chatClient.SendMessage($"The winners are {winners}!");
else
chatClient.SendMessage($"The winners is {winners}!");
Copy link
Contributor

@AridTag AridTag Apr 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message for the singular winner should read The winner is {winners}!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I'll fix it now 👍

@benrick
Copy link
Member

benrick commented Apr 4, 2018

Well done, both of you. We'll merge this in tomorrow at the start of the stream!

@benrick benrick merged commit 6b96eae into DevChatter:master Apr 5, 2018
@TheBoboNL TheBoboNL deleted the RPS-Games_No_winner_fix branch April 5, 2018 16:41
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.

3 participants