Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/timursus/braingames
- Owner: timursus
- Created: 2020-02-20T17:31:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T22:39:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T15:36:11.938Z (2 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: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
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)