en / es / ca / de

Few Seconds Math Game

It is an alternative version of the original "10 Seconds Math" game, created by Michael Jakob to challenge a person's math skills against the clock. In this version, the time gained per correct answer is not 10 seconds, it varies depending on the difficulty.

Source code

Features

  • The user can set the difficulty of the game by limiting operations or even the maximum digits of each number.
  • The game starts with 10 seconds to answer the first question.
  • Each correct answer adds up seconds depending on the difficulty (4 points for each division, 3 for each multiplication, 2 for subtraction and 1 for addition).
  • It is required to answer correctly in order to continue.
  • The game is over when time runs out.

What I learned

  • How to run the project on a local Node server (Serve).
  • How to import sounds from an external library and synchronize them with the DOM.
  • How to use asynchronous functions and "callbacks".
  • How to dynamically rewrite the content on a single page (SPA).
  • How to add styles with the pseudo-classes "before" and "hover".
  • How to create a "gitignore" file to protect others.
  • How to create a JSON file with the project settings.

Technologies

  • Front-end: JavaScript (ES6), HTML, CSS
  • Back-end: -