vaziliybober/brain-games

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Maintainability](https://api.codeclimate.com/v1/badges/8dfd869b22b2f2066761/maintainability)](https://codeclimate.com/github/vaziliybober/brain-games/maintainability)

[![Continuous integration workflow](https://github.com/vaziliybober/brain-games/workflows/Continuous%20integration%20workflow/badge.svg)](https://github.com/vaziliybober/brain-games/actions)

# Brain Games

Brain games are a set of simple mathematical console games.

In total there are 5 games: "Brain Even", "Brain Calc", "Brain GCD", "Brain Progression" and "Brain Prime".

This is the lvl-1 frontend project on https://ru.hexlet.io/

## Brain Even

Is the number even?

<details><summary>Show "Brain Even" Demo</summary>
<a href="https://asciinema.org/a/358977" target="_blank"><img src="https://asciinema.org/a/358977.svg" /></a>
</details>

## Brain Calc

What is the result of the expression?

<details><summary>Show "Brain Calc" Demo</summary>
<a href="https://asciinema.org/a/358980" target="_blank"><img src="https://asciinema.org/a/358980.svg" /></a>
</details>

## Brain GCD

What is the greatest common divisor of the given numbers?

<details><summary>Show "Brain GCD" Demo</summary>
<a href="https://asciinema.org/a/358981" target="_blank"><img src="https://asciinema.org/a/358981.svg" /></a>
</details>

## Brain-progression

What is the missing element in the arythmetic progression?

<details><summary>Show "Brain Progression" Demo</summary>
<a href="https://asciinema.org/a/358982" target="_blank"><img src="https://asciinema.org/a/358982.svg" /></a>
</details>

## Brain Prime

Is the number prime?

<details><summary>Show "Brain Prime" Demo</summary>
<a href="https://asciinema.org/a/358983" target="_blank"><img src="https://asciinema.org/a/358983.svg" /></a>
</details>

## Clone

    git clone https://github.com/vaziliybober/brain-games.git
    cd brain-games
    make install
    make link

## Install

    npm install -g @vaziliybober/brain-games

## Use

For example, Brain Even:

    brain-even