[Trivia] When a trivia game results in a tie, bot picks a random user between the 2 tied players for the payout #3931

Closed
opened 2020-06-07 06:12:05 +02:00 by owocado · 10 comments
owocado commented 2020-06-07 06:12:05 +02:00 (Migrated from github.com)

Command bugs

Command name

It doesn't have a command name, because this happens when the trivia ends in a tie.

What cog is this command from?

Trivia

What were you expecting to happen?

I was expecting the bot to announce that "This trivia session has ended in a tie." Or something like that.

What actually happened?

The bot randomly picks a winner between the two winners for the economy payout and "Congratulations, ..... for coming first" announcement.

How can we reproduce this issue?

First set the payout multiplier to your desired value other than the default 0 value with [p]triviaset payout <value> command.
Start and play the trivia with someone else or a group of people. Play in such a way that all participating players ends up winning equal score. When trivia ends, the bot picks a random winner from the players who have tied with equal score for the payout and for "Congratulations, ..... for coming first" message.

# Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name It doesn't have a command name, because this happens when the trivia ends in a tie. #### What cog is this command from? Trivia #### What were you expecting to happen? I was expecting the bot to announce that "This trivia session has ended in a tie." Or something like that. #### What actually happened? The bot randomly picks a winner between the two winners for the economy payout and "Congratulations, ..... for coming first" announcement. #### How can we reproduce this issue? First set the payout multiplier to your desired value other than the default 0 value with `[p]triviaset payout <value>` command. Start and play the trivia with someone else or a group of people. Play in such a way that all participating players ends up winning equal score. When trivia ends, the bot picks a random winner from the players who have tied with equal score for the payout and for "Congratulations, ..... for coming first" message.
Jackenmen commented 2020-06-14 16:32:30 +02:00 (Migrated from github.com)

You're right that this shouldn't happen but the question here is - what should we do when there's a tie? Should we give the full payout to everyone in a tie, split it or should we not give payout at all?

You're right that this shouldn't happen but the question here is - what should we do when there's a tie? Should we give the full payout to everyone in a tie, split it or should we not give payout at all?
Vexed01 commented 2020-06-14 16:42:02 +02:00 (Migrated from github.com)

I think that a split is best as this means the winners don't "miss out" and get nothing and the total paid per trivia remains constant. If not this one, I would lean towards all users getting the full payout.

I think that a split is best as this means the winners don't "miss out" and get nothing and the total paid per trivia remains constant. If not this one, I would lean towards all users getting the full payout.
owocado commented 2020-06-14 17:00:26 +02:00 (Migrated from github.com)

In my opinion, we should give full payout to everyone resulted in a tie, because they all have technically won the game in a sense, so it is fair to pay full payout to each of them, but I can understand if others might have conflicting opinions on this. Splitting the payout would be kind of a cheap move/decision. Not paying at all would be honestly unfair.

Edit: after further consideration and careful thinking, splitting the payout sounds fair.

In my opinion, we should give full payout to everyone resulted in a tie, because they all have technically won the game in a sense, so it is fair to pay full payout to each of them, but I can understand if others might have conflicting opinions on this. Splitting the payout would be kind of a cheap move/decision. Not paying at all would be honestly unfair. Edit: after further consideration and careful thinking, splitting the payout sounds fair.
Drapersniper commented 2020-06-15 10:18:24 +02:00 (Migrated from github.com)

Im personally in favour of splitting the payout, a lot of server/bot owner care about their economy and splitting the payout would be the most balanced way to fix this issue.

Im personally in favour of splitting the payout, a lot of server/bot owner care about their economy and splitting the payout would be the most balanced way to fix this issue.
Jackenmen commented 2020-06-19 03:12:05 +02:00 (Migrated from github.com)

I tend to agree with splitting the payout too so unless someone else wants to voice their opinion, I'm gonna mark it as accepted in about 18 hours with splitting the payout as the solution that should be implemented.

I tend to agree with splitting the payout too so unless someone else wants to voice their opinion, I'm gonna mark it as accepted in about 18 hours with splitting the payout as the solution that should be implemented.
yamikaitou commented 2020-06-19 03:17:53 +02:00 (Migrated from github.com)

+1 for splitting the payout between the winners

+1 for splitting the payout between the winners
NeuroAssassin commented 2020-06-19 03:31:25 +02:00 (Migrated from github.com)

I think splitting up the payouts is a good idea as well

I think splitting up the payouts is a good idea as well
leblancg commented 2020-11-09 06:06:56 +01:00 (Migrated from github.com)

Hi, I am interested in taking on this issue! Is it currently only possible to reach a tie case if the trivia game reaches the response timeout? Or is it possible for more than one user to win a trivia question and score a point?

Hi, I am interested in taking on this issue! Is it currently only possible to reach a tie case if the trivia game reaches the response timeout? Or is it possible for more than one user to win a trivia question and score a point?
Flame442 commented 2020-11-09 06:10:29 +01:00 (Migrated from github.com)

I believe a tie can also occur when the bot runs out of questions before the point limit.

I believe a tie can also occur when the bot runs out of questions before the point limit.
Flame442 commented 2021-02-04 19:12:05 +01:00 (Migrated from github.com)

Implemented by #4649

Implemented by #4649
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#3931
No description provided.