Done as part of a project on Hexlet. Technology stack: Node.js, Commander.JS, npm, ESLint (airbnb), Prettier, Git, GitHub, GitHub Actions.
This repository contains sources code my first project: "Brain games". Brain games - this is a game which you win after 3 correct answers. Good luck!
- Make sure you have installed Node.js no lower version 12:
node -v
; - Clone repository:
[email protected]:Kalifull/frontend-project-lvl1.git
; - Change directory to frontend-project-lvl1;
- Run the command:
make install
; - Run the command:
npm link
.
$ git clone [email protected]:Kalifull/frontend-project-lvl1.git
$ cd frontend-project-lvl1
$ make install
$ nmp link
brain-games
- The game just greets the user;brain-even
- You are shown a random number. You must answer "yes" if the number is even, or "no" if it is odd;brain-calc
- The simple calculator game;brain-gcd
- Find greatest common divisor of 2 numbers;brain-progression
- Find missing number in progression;brain-prime
- Define is number prime.
The player is shown a random number. He needs to answer yes if the number is even, or no if it is odd.
The player is shown a random mathematical expression that needs to be calculated and the correct answer written down.
The player is shown two random numbers, needs to find the greatest common divisor and write down the correct answer.
The player is shown a series of numbers forming an arithmetic progression. The random number is replaced by two dots. The player must determine this number.
The player is shown a random number. He needs to answer "yes" if the number is prime and "no" if not.