User prompt
with the score gets higher the questions also get some complicated not very much
User prompt
Make the options in one line from up to down.
User prompt
make the font some bigger
User prompt
Like on the wrong answer screen gets red, on right answer the screen gets green.
User prompt
Show the timer on the screen.
User prompt
Make time limit on every answer for 5 seconds
User prompt
Score counts on right side, up side.
User prompt
Can't choose the options
User prompt
Make the options away from each other, I can't choose the options
User prompt
I cannot choose the options on every option I choose, that gets wrong.
Initial prompt
Math trivia
===================================================================
--- original.js
+++ change.js
@@ -118,11 +118,13 @@
}
}
// Add event listeners for answer selection
for (var i = 0; i < answerTexts.length; i++) {
- answerTexts[i].down = function (x, y, obj) {
- selectAnswer(i);
- };
+ (function (i) {
+ answerTexts[i].down = function (x, y, obj) {
+ selectAnswer(i);
+ };
+ })(i);
}
// Start the first puzzle
startNewPuzzle();
// Update function to increase difficulty over time