The Mathematical Game
This is a simple learning application based on HTML, CSS, JS, manipulations with DOM, JSON and localstorage.
• The user selects the number of questions, and the recount begins (with the setInterval() method).
• random equations are generated, which are then displayed in the DOM on the game page.
A query is used to choose whether the equation is true or false, then the user’s answers (included in the mass) are compared to the mass of the equations.
The penalty time is added to the total time if the user responds incorrectly.
• And again the results are entered in the DOM and also stored in the local storage.
• Every time a user starts the game again and gets higher scores, a new best result is updated on the results page.
• The user selects the number of questions, and the recount begins (with the setInterval() method).
• random equations are generated, which are then displayed in the DOM on the game page.
A query is used to choose whether the equation is true or false, then the user’s answers (included in the mass) are compared to the mass of the equations.
The penalty time is added to the total time if the user responds incorrectly.
• And again the results are entered in the DOM and also stored in the local storage.
• Every time a user starts the game again and gets higher scores, a new best result is updated on the results page.