Detect Spam touches

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By charliemacdmv

Hey everyone,

I have a trivia game where you have 60 sec to answer as many questions as possible. The answers are on 4 buttons. My problem is that you can essentially just keep spam pressing buttons and you will most likely get a really high score. How can I detect if someone is spamming the buttons? I’m trying to figure out a way to prevent the spamming of button presses.

:bust_in_silhouette: Reply From: jgodfrey

Maybe not what you’re looking for, but it seems that there should be a penalty for answering incorrectly. Otherwise, as you said, someone can just keep smashing buttons until the correct one is found.

You could make it so that for each question, you only accept a single button press. That press is either RIGHT or WRONG, and either way, you move on to the next question.

Hmmm… Re-reading your post, maybe that’s how the game already works? It’s not clear to me I guess…

If it already works like that, and your concern is that someone could get a really high score simply by going through lots of questions quickly (even with only a 25% chance of getting any single question right) than maybe a different change is in order.

In that case, maybe they should (again) be penalized for missed questions. Like, perhaps their total score should be <number of questions correct> - <number of questions incorrect>.

If the scoring worked like that, it would no longer make sense to answer questions by spamming the buttons.

Bottom line, I’m suggesting that rather than attempting to prevent button spamming, you might want to instead think about changing the scoring system so there is no advantage to playing in that manner.

Yes, you are correct they can only select 1 button per question. I like the penalty idea. That would indeed stop the unfair high score. Appreciate the thoughts.

charliemacdmv | 2023-05-10 00:46