Skip to content

Commit 83b3d96

Browse files
committed
updated readme
1 parent bb98dc7 commit 83b3d96

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
11
# Math-Game
22
A Simple Addition Game that uses Math.random to generate two numbers between 0-4, displays the two numbers, and asks the player the result. Sets a timer for 5 seconds.
3+
4+
Every correct answer will extend the timer by five seconds and any wrong answer will end the game.
5+
6+
Uses a DOM model and splits the game into model, controller, and view.
7+
8+
The model contains the main game loop and data.
9+
First the two numbers are rolled then once in the game loop, those numbers will printed
10+
on view and the time will update.
11+
12+
If a number is received from controller, model will compare those that number with the
13+
correct one.
14+
If the answer is correct, the user may continue with additional time, if not then the
15+
game ends with the current score.
16+
17+
The controller tracks all the interactions the user can have.
18+
The user is able to submit a number that is sent to be compared to in model.
19+
20+
The view prints the time and win/lose messages, and the numbers onto the viewport.

0 commit comments

Comments
 (0)