dmytro-komlyk / brain-games

CLI games-app for brain training

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file analyze

Node CI Maintainability

About Brain Games

This is a set of five console games based on popular mobile brain training apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.

  • Calculator. Arithmetic expressions to be evaluated.
  • Progression. Finding missing numbers in a sequence of numbers.
  • Definition of an even number.
  • Finding the Greatest Common Divisor.
  • Definition of a prime number.

About project

This pet-project was created as part of the Hexlet curriculum.

Requirements

  • Node (v.13+)

Getting started

git clone https://github.com/dmytro-komlyk/brain-games.git
cd brain-games/
make install
make link

Examples

Workflow

"Even Check"

The user is shown a random number. And he needs to answer yes if the number is even, or no if it is odd.

launch: $ brain-even

asciicast

"Calculator"

The user is shown a random mathematical expression, such as 35 + 16, which must be calculated and the correct answer written down.

launch: $ brain-calc

asciicast

"NOD"

The user is shown two random numbers, for example 25 50. The user must calculate and enter the greatest common divisor of these numbers.

launch: $ brain-gcd

asciicast

"Arithmetic progression"

Пользователю показывается ряд чисел, образующий арифметическую прогрессию, заменив любое из чисел двумя точками. Игрок должен определить это число.

launch: $ brain-progression

asciicast

"Is it a prime number?"

The user is shown a random number. And he needs to answer yes if the number is prime, or no if not.

launch: $ brain-prime

asciicast

About

CLI games-app for brain training


Languages

Language:JavaScript 97.9%Language:Makefile 2.1%