Skip to content

Stonek79/frontend-project-lvl1

Repository files navigation

BRAIN GAMES

Maintainability Test Coverage WF

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.

Games Description

Is the number Even?

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.

Calculator

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.

Greatest common divisor

Goal of the game — find greatest common divasor. You get two numbers and must print correct answer to console.

Arithmetic progression

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.

Is the number Prime?

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!

Installation

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 

Launch the game

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

Demonstrations:

calc even prime gcd progression

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages