@artperederiy/brain-games

1.0.10 • Public • Published

Brain Games

Study project on node.js

Maintainability Build Status

Game rules:

brain-even: Answer "yes" if number even otherwise answer "no".

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

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

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

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

Option 1: Install & run from NPM

    $ npm i -g @artperederiy/brain-games
    $ brain-even # run brain-even
    $ brain-calc # run brain-calc
    $ brain-gcd # run brain-gcd
    $ brain-progression # run brain-progression
    $ brain-prime # run brain-prime

Option 2: Build & run from git repository

    $ git clone git@github.com:ArtyomPerederiy/backend-project-lvl1.git 
    $ make install
    $ make publish
    $ make start # run brain-even
    $ make start1 # run brain-calc
    $ make start2 # run brain-gcd
    $ make start3 # run brain-progression
    $ make start4 # run brain-prime 
    

Examples

Install from NPM

asciicast

brain-even

asciicast

brain-calc

asciicast

brain-gcd

asciicast

brain-progression

asciicast

brain-prime

asciicast

/@artperederiy/brain-games/

    Package Sidebar

    Install

    npm i @artperederiy/brain-games

    Weekly Downloads

    10

    Version

    1.0.10

    License

    ISC

    Unpacked Size

    27.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • artperederiy