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: 19 days ago
JSON representation
A Set of intellectual mini-games
- Host: GitHub
- URL: https://github.com/timursus/braingames
- Owner: timursus
- Created: 2020-02-20T17:31:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T22:39:20.000Z (over 3 years ago)
- Last Synced: 2025-09-27T22:22:59.688Z (8 months ago)
- Topics: brain-games, cli, game, hexlet-projects, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@timursus/brain-games
- Size: 289 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brain Games
[](https://codeclimate.com/github/timursus/frontend-project-lvl1/maintainability)
[](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
[](https://asciinema.org/a/J1tUXXVE58NfQytKvSNUhJTEv)
### Brain Calc game
[](https://asciinema.org/a/hcyhwNRCgUZPk1cEquO13Iu1G)
### Brain Greatest Common Divisor game
[](https://asciinema.org/a/KFU3OsT7WN5JjW5XDdOR26Beo)
### Brain Progression game
[](https://asciinema.org/a/t4XXp8S2xOi20v6vqpRciD8AK)
### Brain Prime game
[](https://asciinema.org/a/LvE5nKqkxSzUjMb8YOtDERf3r)