1.0.1 • Published 3 years ago

@vvpeters/brain-games v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Brain Games

Actions Status Actions Status Maintainability


Description

A set of mini-games for terminal. All games continue until you give the correct answer 3 times in a row.


Installation

$ npm install brain-games


Usage

$ brain-even  
Answer "yes" if the number is even, otherwise answer "no".

$ brain-calc  
What is the result of the expression?

$ brain-gcd  
Find the greatest common divisor of given numbers.

$ brain-prime  
Answer "yes" if given number is prime. Otherwise answer "no".

$ brain-progression  
What number is missing in the progression?

Examples