9.4.0 • Published 6 years ago
ichazof_project_test v9.4.0
Brain Games
This project was developed during the teaching on Hexlet A set of intelligent mini games.
Installing
sudo npm install -g ichazof_project_test
Is even
You must determine whether the number is even?
Command to start the game: brain-even
Balance number
It is necessary to balance the number. A balanced number is a number in which the smallest digit differs from the largest one by more than one.
Command to start the game: brain-balance
Calculator
The user is shown a random mathematical expression that needs to be calculated and written the correct answer.
Command to start the game: brain-calc
Greatest common divisor
The user is shown two random numbers, he must calculate and enter the greatest common divisor of these numbers.
Command to start the game: brain-gcd
Progression
We show the player a series of numbers, forming an arithmetic progression, replacing any of the numbers with two points. The player must determine this number.
Command to start the game: brain-progression
Is Prime
The user must determine whether the number is prime
Command to start the game: brain-prime