alisakova-project-hexlet
v19.0.0
Published
Small brain game
Downloads
4
Readme
Brain games
Let's try to solve some mathematical problems in your terminal
How to install?
npm i alisakova-project-hexlet
Is this number is even?
- How to play?
brain-even
- How to answer? You should write in your terminal 'yes' or 'no'.
Welcome to Brain Games!
Answer "yes" if number even otherwise answer "no".
May I have your name? Bill
Question: 15
Your answer: yes
What is the result of the expression?
- How to play?
brain-calc
- How to answer? You should write in your terminal the result of the expression.
Welcome to the Brain Games!
What is the result of the expression?
May I have your name? Sam
Hello, Sam!
Question: 4 + 10
Your answer: 14
Correct!
Question: 25 - 11
Your answer: 14
Correct!
Question: 25 * 7
Your answer: 175
Correct!
Congratulations, Sam!
What is the greatest common divisor of given numbers?
- How to play?
brain-gcd
- How to answer? You should write in your terminal the greatest common divisor.
Welcome to the Brain Games!
Find the greatest common divisor of given numbers.
May I have your name? Sam
Hello, Sam!
Question: 25 50
Your answer: 25
Correct!
Question: 100 52
Your answer: 4
Correct!
Question: 3 9
Your answer: 3
Correct!
Congratulations, Sam!
Try to balance this number!
- How to play?
brain-balance
- How to answer? You should write in your terminal the balanced number.
Welcome to the Brain Game!
Balance the given number.
May I have your name? Sam
Hello, Sam!
Question: 215
Your answer: 233
Correct!
Question: 4181
Your answer: 3344
Correct!
Question: 355
Your answer: 445
Correct!
Congratulations, Sam!
What number is missing in this progression?
- How to play?
brain-progression
- How to answer? You should write in your terminal the missing element.
What number is missing in this progression?
5 7 9 11 13 .. 17 19 21 23
Is this number is prime?
- How to play?
brain-prime
- How to answer? You should write in your terminal 'yes' or 'no'.
Is this number prime? 15