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

Fixed tie-vote handling #39

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Fixed tie-vote handling #39

merged 3 commits into from
Jul 11, 2024

Conversation

lukemurphy147
Copy link
Contributor

Resolves #6

I'm confident that this code properly handles tie votes now by choosing a random button out of those that tied. However, I'm not so sure about the formatting of top_result, since self.random_button() and self.take_action use different strings for the buttons.

@TomCasavant
Copy link
Owner

Oh shoot, you're right I didn't notice that. I think I'd prefer if they all showed the emoji in the text so they line up with when a button is actually chosen. If you want to put that in this PR feel free, otherwise I'll just create another issue for it since it's not a huge deal and I'll just go ahead and merge this one in

@lukemurphy147
Copy link
Contributor Author

lukemurphy147 commented Jun 28, 2024

So it's okay if status contains the emojis? Right now it doesn't.

image

@TomCasavant
Copy link
Owner

TomCasavant commented Jun 28, 2024

Yes I'd prefer if it shows the emoji like it does for successful votes

Screenshot_20240628_191349_Tom-Moshidon Debug.jpg

https://tomkahe.com/@pokemon/112694359534888570

Made button name formatting consistent (except in "test()"). Also, fixed the formatting of "Game Boy", "Mastodon", etc. except where it would break the code.
@lukemurphy147
Copy link
Contributor Author

lukemurphy147 commented Jul 10, 2024

OK, the emoji formatting should be consistent now, along with some other things that were bugging me but didn't affect the program logic (gameboy -> Game Boy, mastodon -> Mastodon, etc.) Also, I folded random_button() into take_action() because I felt they were too similar.

@TomCasavant TomCasavant merged commit fedf105 into TomCasavant:main Jul 11, 2024
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.

Pick random if multiple results are tied
2 participants