Skip to content

🎲 Set of simple math games with command-line interface

Notifications You must be signed in to change notification settings

Rema04Dev/brain-games-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

Linter Status

cli-brain-games

Description:


This is a set of five simple math games with command-line interface build on the principle of popular mobile applications for brain pumping.

Games:

  • Calculator: Arithmetic expressions that need to be calculated
  • Progression: Search for missing numbers in a sequence of numbers
  • Determination of an even number
  • Determination of the greatest common divisor
  • Determination of a prime number

You can find more details in the demonstration section below.

system requirements:

Node 14.x version at least

Install


# clone this repository to your machine
$git clone git@github.com:Rema04Dev/cli-brain-games.git

# go to directory where you downloaded it
$cd cli-brain-games

# run the one of these command to install all necessary dependencies
$make install
or
$npm ci

# this command is responsible for linking commands from package.json to "./bin" directory
$npm link

Run games

Run one of these commands and enjoy!

$ brain-even
$ brain-calc
$ brain-gcd
$ brain-progression
$ brain-prime

Usage demonstration

brain-even (demo)

Answer are even given numbers or not

brain-calc (demo)

Calculate the result of the expression

brain-gcd (demo)

Find the greates common divisor of given numbers

brain-progression (demo)

Answer what number is missing in math progression

brain-prime (demo)

Answer are prime given numbers or not

About

🎲 Set of simple math games with command-line interface

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published