A simple console game which takes a level parameter and prompts the user to solve arithmetic expressions.
-
Install Node.js
-
Clone this repository
-
Cd into the root directory and execute
chmod u+x game.js
-
Start the game with a command like
./game.js --level 3
-
You can change the level throughout by entering '--level x'
-
Quit by entering 'q' or 'quit'
--level 1
68 = 68
17 = 17
40 = 40
--level 2
75 - 54 = 21
62 + 15 = 77
88 / 22 = 4
--level 3
( 21 + 13 ) * 56 = 1904
82 - 19 + 16 = 79
51 * ( 68 - 2 ) = 3366
--level 4
99 * 1 * ( 1 + 79 ) = 7920
( 80 + 84 ) * ( 89 + 65 ) = 25256
54 * 64 * 75 * 68 = 17625600
--level 5
49 * 11 - ( 33 + 71 - 39 ) = 474
5 / 5 + ( 75 + 91 ) / 83 = 3
42 + 38 + 67 * 37 - 47 = 2512
Note that level 1 is useless! It is there just for demonstration