https://github.com/amalumian/js-starter-project-44
Hexlet Project (Brain Games)
https://github.com/amalumian/js-starter-project-44
course-project
Last synced: 3 months ago
JSON representation
Hexlet Project (Brain Games)
- Host: GitHub
- URL: https://github.com/amalumian/js-starter-project-44
- Owner: amalumian
- Created: 2024-02-09T20:48:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-16T12:37:12.000Z (over 1 year ago)
- Last Synced: 2025-01-23T03:42:41.071Z (5 months ago)
- Topics: course-project
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brain Games
[](https://github.com/amalumian/js-starter-project-44/actions)
[](https://codeclimate.com/github/amalumian/js-starter-project-44/maintainability)"Brain Games" - a set of five console games, built on the principle of popular mobile applications for brain pumping. Each game asks questions to which you have to give correct answers. After three correct answers, the game is considered to be completed. Incorrect answers end the game and prompt you to go through it again.
Games:
- Calculator. Arithmetic expressions to be calculated.
- Progression. Finding missing numbers in a sequence of numbers.
- Determining an even number.
- Determining the greatest common divisor.
- Determining a prime number.Example:
```
brain-progression
Welcome to the Brain Game!
What number is missing in the progression?
May I have your name? Roman
Hello, Roman!
Question: 14 .. 18 20 22 24 26 28
Your answer: 16
Correct!
Question: 5 6 7 8 9 .. 11 12
Your answer: 10
Correct!
Question: 12 15 18 21 .. 27 30 33
Your answer: 24
Correct!
Congratulations, Roman!
```## Setup
```bash
git clone https://github.com/amalumian/js-starter-project-44.git
cd js-starter-project-44
make install
sudo npm link
```## How to play
### Determining an even number
```bash
brain-even
```[](https://asciinema.org/a/rBtk9DjSlIZ6KUkmAVJOGl8ms)
### Calculator
```bash
brain-calc
```[](https://asciinema.org/a/0qLmjW2qMwdXis0aJ42BBCj4C)
### Determining the greatest common divisor
```bash
brain-gcd
```[](https://asciinema.org/a/ReZ4Pe53fnoydIZea2koDXUit)
### Progression
```bash
brain-progression
```[](https://asciinema.org/a/efTxtJ6TCPlXKkT8M6zyHtshl)
### Determining a prime number
```bash
brain-prime
```[](https://asciinema.org/a/yM4eHLTdqUKiKD6qHQct9nGGb)