Skip to content

Milesw12/MentalMathApp

Repository files navigation

Task

Mental Math app

TASK: You will have 5 days. You are to design a mental maths web application. within this app i want the following functionality:

  1. a 30 second timer
  2. a leaderboard
  3. percentage ranking
  4. No latency between questions
  5. no limit to questions
  6. all questions must be questions possible in head
  7. this needs to hosted online so anyone can access it

Todo

  1. set up subdomain hosting with database: DONE image

  2. Create basic Mental maths game DONE image

  3. set up database- username, score DONE

image

  1. Get website on subdomain. DONE image

  2. get name from user and insert into db DONE

  3. user plays game and score is written to databse DONE

image

  1. leaderboard shows users postion in DONE image

  2. Get users percentage ranking DONE

image

  1. 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

Releases

No releases published

Packages

No packages published