TASK: You will have 5 days. You are to design a mental maths web application. within this app i want the following functionality:
- a 30 second timer
- a leaderboard
- percentage ranking
- No latency between questions
- no limit to questions
- all questions must be questions possible in head
- this needs to hosted online so anyone can access it
-
set up database- username, score DONE
-
get name from user and insert into db DONE
-
user plays game and score is written to databse DONE
- Bug test program DONE
check through js script, add comments to assist in explaination/ review by other people.
day 1 + 2, unable to use database, web hosting FTP is still down cant upload to start working with sql Solution: Changed providers to a new one.
Take operator from random
add 1 to total_questions
take two numbers from random
calculate value of answer
output number + operator + number
take answer in from user
compare answer to correct answer
if(answer is same as correct):
add 1 point to score
else:
nothing
continue
Display score out of total_questions