0.6.5 • Published 6 years ago

games-for-the-brain-n4 v0.6.5

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

Games for the brain

A simple command line games is made in the form of a npm package

npm Code Climate Issue Count Build Status

List of games

Brain-even: «Parity checking»

The essence of the game is this: the player is shown a random number. And he needs to answer yes if the digit is even, or no if is odd. Any incorrect entry is an error, for example, n equivalent to a wrong answer.

Brain-calc: «Calculator»

The essence of the game is this: the player displays a random mathematical expression, e.g. 35 + 16 that he needs to calculate and write the correct answer.

Brain-gcd: «The greatest common divisor (GCD)»

The essence of the game is this: the player receives two random numbers, e.g. 25 50 and must calculate and enter the greatest common divisor of these numbers.

Brain-balance: «Balance»

A balanced number is a number in which the smallest digit differs from the largest one not more than one. The order of digits in a balanced number is in ascending order.

For example, balanced number for the number 29 is the number 56.

Brain-progression: «Arithmetic progression»

The player must determine the lost number in the suggested sequence.

For example: 9 11 13 15 17 19 .. 23 25 27.

Answer is 21.

Brain-prime : «Is it a prime number?»

It is necessary to answer whether a number is Prime. The answer should be yes or no.


Installation

npm i games-for-the-brain-n4 -g


Start games:

brain-games

Start brain-even:

brain-even

Start brain-calc:

brain-calc

Start brain-gcd:

brain-gcd

Start brain-balance:

brain-balance

Start brain-progression:

brain-progression

Start brain-prime:

brain-prime