# @timursus/brain-games

> Set of intellectual cli-games

Latest version **1.0.0** (published 2020-12-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install @timursus/brain-games
pnpm add @timursus/brain-games
yarn add @timursus/brain-games
bun add @timursus/brain-games
```

Provides the commands `brain-gcd`, `brain-calc`, `brain-even`, `brain-prime`, `brain-progression`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-12-14 |
| First published | 2020-12-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 13 |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Timur Akhmetov |
| Maintainers | timursus |
| Keywords | brain-games, hexlet-project, cli-game |

## Links

- npm: https://www.npmjs.com/package/@timursus/brain-games
- Repository: https://github.com/timursus/frontend-project-lvl1
- Homepage: https://github.com/timursus/frontend-project-lvl1#readme
- Issues: https://github.com/timursus/frontend-project-lvl1/issues
- npm.io page: https://npm.io/package/@timursus/brain-games

## Dependencies (1)

- [readline-sync](https://npm.io/package/readline-sync.md) ^1.4.10

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-12-14

## README

# Brain Games 
[![Maintainability](https://api.codeclimate.com/v1/badges/596d7302d0fa53f61ae1/maintainability)](https://codeclimate.com/github/timursus/frontend-project-lvl1/maintainability)
[![Workflow](https://github.com/timursus/frontend-project-lvl1/workflows/Node%20CI/badge.svg)](https://github.com/timursus/frontend-project-lvl1/actions)

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
```sh
$ npm install -g @timursus/brain-games
```

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

## Demos
### Brain Even game
[![even-asciicast](https://asciinema.org/a/J1tUXXVE58NfQytKvSNUhJTEv.svg)](https://asciinema.org/a/J1tUXXVE58NfQytKvSNUhJTEv)

### Brain Calc game
[![calc-asciicast](https://asciinema.org/a/hcyhwNRCgUZPk1cEquO13Iu1G.svg)](https://asciinema.org/a/hcyhwNRCgUZPk1cEquO13Iu1G)

### Brain Greatest Common Divisor game
[![gcd-asciicast](https://asciinema.org/a/KFU3OsT7WN5JjW5XDdOR26Beo.svg)](https://asciinema.org/a/KFU3OsT7WN5JjW5XDdOR26Beo)

### Brain Progression game
[![progression-asciicast](https://asciinema.org/a/t4XXp8S2xOi20v6vqpRciD8AK.svg)](https://asciinema.org/a/t4XXp8S2xOi20v6vqpRciD8AK)

### Brain Prime game
[![prime-asciicast](https://asciinema.org/a/LvE5nKqkxSzUjMb8YOtDERf3r.svg)](https://asciinema.org/a/LvE5nKqkxSzUjMb8YOtDERf3r)

---
_Source: https://npm.io/package/@timursus/brain-games · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
