Skip to content

metastasio/Brain-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Brain Games

Welcome to my first project!
Brain Games is a set of 5 games designed to challenge your mind.
A game is completed once you give 3 correct answers in a row. To exit a game simply enter CTRL + C.


Installation

To be able to run these games you need to have Node.JS installed.

 git clone https://github.com/metastasio/frontend-project-44.git

 cd frontend-project-44

 make install

 npm link

Games


Parity check

In this game you will be given a random number. Answer 'yes' if this number is even and 'no' if this number is odd.

To start the game:

brain-even

Demo: asciicast

Calculator

In this game you will be given a random mathematical expression. You need to calculate it and give the result.

To start the game:

brain-calc

Demo: asciicast

Greatest common divisor

In this game you will be given two random numbers. You need to find their greatest common divisor.

To start the game:

brain-gcd

Demo: asciicast

Arithmetic progression

In this game you will be given a random series of numbers that form an arithmetic progression with one number missing. You need to find the missing number.

To start the game:

brain-progression

Demo: asciicast

Is this a prime number?

In this game you will be given a random number. Answer 'yes' if this number is prime and 'no' if it is not.

To start the game:

brain-prime

Demo: asciicast