Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 573239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:42:11+00:00 2026-05-13T13:42:11+00:00

I have a quiz-like javascript game and it is supposed to be fast-paced. The

  • 0

I have a quiz-like javascript game and it is supposed to be fast-paced. The user needs to answer as many questions as he can in a short time. He is presented with a Yes/No question, the answer is sent to the server, validated there and a feedback (correct/incorrect) is shown back to him. I use Javascript and AJAX.

The problem is the delay in between two consecutive questions due to the verification going on at the server. The questions are independent of each other (the outcome does not change the next question). I want the user get a feedback immediately after his answer and only then see the next question.

Currently, I stop the clock on the client-side while the answer is being validated on the server side and resume it once the feedback along with the next question arrives. I also make sure, at the server side, a game session does not exceed the allowed time plus a reasonable slack for the network delays.

The only and obvious solution I can think of to eliminate the delay is to send a batch of questions to the client along with the answers and do the verification on the client side. That would minimize the communication with the server (once per session) and provide a smooth playing experience. Obviously, any user who can read the incoming messages can create a script that would play automatically and play perfectly. Obfuscating the client code and the answer could help a bit and increase the cost of writing such a malicious script but it wouldn’t eliminate a determined user to create his own script.

My question is two-fold. First, I want to be sure I’m not making a huge mistake and missing an obvious solution to this problem which also perfectly handles users with bad intentions. I guess it’s theoretically impossible to come up with such a solution but I don’t have enough place to write down the proof here (!).

Second, given that there is no money reward at the end of the game, I don’t expect any bored coders to mess with my little game. But still, I would like to hear your opinions and your strategies to deal with it in more serious cases.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:42:11+00:00Added an answer on May 13, 2026 at 1:42 pm

    As warm-up, I want to give one sketchy solution that comes to my mind.

    Once in a while include a wrong question-answer combination in your batch. You can detect an automatic bot because it should give the “correct” (which is in fact the wrong) answer more frequently than real players (plus there shouldn’t be any significant difference between the accuracy for other questions and these bogus questions). The cost is that the real players would see that their legitimate answers are considered as wrong once in a while. If you lower the number of such bogus questions, you sacrifice bot-detection accuracy.

    I assume the scripts behave like humans regarding timing between consequent answers and they are smart enough not to give the correct answer everytime. Otherwise it would be too easy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of quiz game questions in a sql database (javascript and
I have two tables, in one to many relationship (Quizzes, Comments): a Quiz can
I have a basic quiz/survey type application I'm working on, and I'd like to
I have little quiz game I've working on and am tracking correct answers. I
my goals (this is for training purpose): User can create(50%DONE)/edit/delete/view a created Quiz! The
I have this quiz application where I match what people type with the right
I want to develop an application with simple Quiz-like games (think of a question
Hey guys, I have a bit of a problem that I can't solve. I'm
I run a quiz-like website at slagalica.tv (content is not in English). We often
I've got an XML file that contains a list of questions. I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.