19.0.0 • Published 6 years ago

alisakova-project-hexlet v19.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

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

Maintainability Test Coverage Build Status

19.0.0

6 years ago

18.0.0

6 years ago

17.0.0

6 years ago

16.0.0

6 years ago

15.0.0

6 years ago

14.0.0

6 years ago

13.0.0

6 years ago

12.0.0

6 years ago

11.0.0

6 years ago

10.0.0

6 years ago

9.0.0

6 years ago

8.0.0

6 years ago

7.0.0

6 years ago

6.0.0

6 years ago

5.0.0

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago