Skip to content

AmmarCSE/arithmetic-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

arithmetic-game

A simple console game which takes a level parameter and prompts the user to solve arithmetic expressions.

Getting Set Up

  • 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'

Example Equations

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published