0.6.25 • Published 5 years ago

rgt-brain-games v0.6.25

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

project brain games from hexlet

Maintainability Test Coverage Build Status

instruction by installing and running

$ sudo npm i -g rgt-brain-games   # make install package with games
$ # after install we have several binary game files, which run right here via cli
$ # in each game need win 3 time in a row, else run game again.
$ # list games:
$ # brain-progression  # find missing number in sequence
$ # brain-prime        # specify a prime number
$ # brain-even         # specify a even number
$ # brain-calc         # define the result of the expression
$ # brain-gcd          # find greatest common divisor
$ # running this games described below

brain-gcd

$ brain-gcd # run
Welcome to the Brain Games!
Find the greatest common divisor of given numbers.

May I have your name? rgt
Hello, rgt!

Question: 37 30
Your answer: 1
Correct!
Question: 49 28
Your answer: 1
1 is wrong answer ;(. Correct answer was 7.
Let's try again, rgt!

brain-calc

$ brain-calc # run
Welcome to the Brain Games!
What is the result of the expression?

May I have your name? rgt
Hello, rgt!

Question: 23 + 5
Your answer: 28
Correct!
Question: 20 * 11
Your answer: 220
Correct!
Question: 28 * 7
Your answer: 198
198 is wrong answer ;(. Correct answer was 196.
Let's try again, rgt!

brain-even

$ brain-even # run
Welcome to the Brain Games!
Answer "yes" if number even otherwise answer "no".

May I have your name? rgt
Hello, rgt!

Question: 2
Your answer: yes
Correct!
Question: 18
Your answer: yes
Correct!
Question: 18
Your answer: yes 
Correct!
Congratulations, rgt!

brain-progression

$ brain-progression # run
Welcome to the Brain Games!
What number is missing in the progression?

May I have your name? rgt
Hello, rgt!

Question:  24 27 .. 33 36 39 42 45 48 51
Your answer: 30
Correct!
Question:  20 .. 22 23 24 25 26 27 28 29
Your answer: 21
Correct!
Question:  26 .. 30 32 34 36 38 40 42 44
Your answer: 28
Correct!
Congratulations, rgt!

brain-prime

$ brain-prime # run
Welcome to the Brain Games!
Answer "yes" if given number is prime. Otherwise answer "no".

May I have your name? rgt
Hello, rgt!

Question: 108
Your answer: no
Correct!
Question: 168
Your answer: no
Correct!
Question: 46
Your answer: no
Correct!
Congratulations, rgt!

install and run brain-prime

asciicast

install and run brain-progression

asciicast

instal and run brain-even

asciicast

instal and run brain-calc

asciicast

install and run brain-gcd

asciicast

0.6.25

5 years ago

0.6.22

5 years ago

0.6.16

5 years ago

0.6.12

5 years ago

0.6.9

5 years ago

0.6.6

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.15

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.2.5

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.0.0

5 years ago