In my fast-paced, quiz-like Javascript game, users must answer a series of Yes/No questions as quickly as possible. Upon answering, the response is sent to the server for validation and feedback (correct/incorrect) before moving on to the next question using Javascript and AJAX.
The issue lies in the delay between questions due to server verification. Each question is standalone, meaning one question's outcome does not impact the next. I aim to provide immediate feedback after each answer before presenting the next question.
Currently, I pause the client-side clock during server-side validation and resume once feedback and the subsequent question are received. Additionally, at the server level, I ensure game sessions do not exceed the time limit plus network delays.
To combat delays, sending a batch of questions and answers to the client for local verification seems like an obvious solution. While this minimizes server communication and enhances user experience, it opens up the possibility for scripts to automatize gameplay. Although obfuscating code and responses adds some security, determined users can still create their own scripts.
My query has two parts. Firstly, I seek reassurance that I am not overlooking a more effective solution that also addresses malicious intent. While a foolproof solution may be unattainable, I welcome any insights or strategies for handling such scenarios.
Secondly, with no monetary incentives involved, I anticipate minimal interference from potential troublemakers. Nevertheless, I value your input and suggestions on how to handle more serious breaches if they were to occur.