This repositoriy created as a step of education by HEXLET and includes the project «Brain Games» - 5 mini games for «node.js» to check and upgrade your brain skills in math.
Goal of the game - find even number. You get a number and if it even - print «yes» in console, or «no» if it is not.
Goal of the game — calculate two numbers. You get two numbers and must print correct answer to console. The game has three operation: «+» - addition, «-» subtraction and «*» - multiplication.
Goal of the game — find greatest common divasor. You get two numbers and must print correct answer to console.
Goal of the game — find missing number in progression. You get a progression of ten elements with one missing number. Find missing number and print answer to console.
Goal of the game - find prime number. You get one number and if it prime - print «yes» in console, or «no» if it is not.
When you launch the game you`ll see a greeting and an offer to enter your name. Print your name and press «enter» to start. Each game has three questions. If your answer is wrong — game over! If all of your answers is correct — you are win!
If you don`t have «nodejs» you have to install it.
Open your console and enter this commands:
> git clone https://github.com/Stonek79/frontend-project-lvl1.git
Then go to the folder ../frontend-project-lvl1/ and launch installation:
> make install
To launch the game open consol and enter one of this the command:
> make brain-calc
> make brain-even
> make brain-gcd
> make brain-progression
> make brain-prime