npm.io
1.0.0 • Published 5 years agoCLI

@timursus/brain-games

Licence
ISC
Version
1.0.0
Deps
1
Size
9 kB
Vulns
0
Weekly
0
Stars
1

Brain Games

Maintainability Workflow

A Set of brain training cli-games. Each game consists of three questions. To win, the player must give the correct answers to each of them.

Setup

$ npm install -g @timursus/brain-games

How to play

Сalculate the result of an arithmetic expression
$ brain-calc
Answer if the given number is even, or not
$ brain-even
Find the missing number in the sequence
$ brain-progression
Answer if the given number is prime, or not
$ brain-prime
Find the greatest common divisor of given numbers
$ brain-gcd

Demos

Brain Even game

even-asciicast

Brain Calc game

calc-asciicast

Brain Greatest Common Divisor game

gcd-asciicast

Brain Progression game

progression-asciicast

Brain Prime game

prime-asciicast

Keywords