udidoron / calculete Goto Github PK
View Code? Open in Web Editor NEWThe game that tests your ability to do math that really matters: quick calculations in minimal time. And you get points!
License: MIT License
The game that tests your ability to do math that really matters: quick calculations in minimal time. And you get points!
License: MIT License
Entering the site, you'll see the 'start' view: Calculete in grand typing at center, followed by 'Change difficulty' select box (easy, medium, hard) and 'Play' button afterwards. In the future a custom game can be set, which doesn't follow the rules below.
After clicking 'Play', the game begins:
A timer starts counting down from 60 seconds on the left side of the screen. A points indicator is initialized on the right side of the screen.
A math question (randomly generated, with answers' range depending on chosen difficulty; easy is 10-100, medium is 10-1000, hard is 10-10000) appears, and 3 possible answers (one is the correct one, others are generated randomly) are generated alongside it.
If the right answer is clicked, a point is added to a point counter (and the answer clicked briefly turns yellow). If the wrong answer is clicked, no points are added and the answer turns red.
(In the future, answering correctly adds time, while answering incorrectly deducts time. In that case, the game starts at 45 seconds.)
After 60 seconds have passed, the questions and answers are removed like in #3, and two buttons appear instead: 'Play again' restarts the game in its current configuration, while 'Return to start' returns to the starting screen.
(In the future, the player's 5 high scores for each difficulty - possibly stored in LocalStorage to avoid needing authentication, or accessible via simple user/password - would be shown in the start screen, and possibly after the game ends).
Not just 'how many correct answers in 60 seconds' but also a custom game, where you can set the time, amount of points and time awarded/deducted per correct/wrong answer (accordingly), level of questions and which operators to use (need at least one).
For each player, save his high score - possibly for each difficulty (easy, medium, hard). Also, maintain (or get via aggregating) global high scores.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.