Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/timursus/braingames

A Set of intellectual mini-games
https://github.com/timursus/braingames

brain-games cli game hexlet-projects nodejs

Last synced: about 2 months ago
JSON representation

A Set of intellectual mini-games

Awesome Lists containing this project

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)