Skip to content

rmanzman/brain-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests, linter and Codeclimate status:

GitHub last commit GitHub Workflow Status Maintainability

Welcome to the Brain Games!

Description:

«Brain Games» is a set of five console games built on the principle of popular mobile brain-boosting apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed.

  • Brain-even - determining an even or odd number
  • Brain-calc - сalculating of result for an expression
  • Brain-gcd - finding of greatest common divisor for given numbers
  • Brain-progression - searching for missing number in progression
  • Brain-prime - checking for a prime number
  • System requirements and Installation guide:

    Make sure you have Node.js and npm installed. To see if you already have Node.js and npm installed and check the installed version, run the following commands:

    node -v
    npm -v

    One of the following versions of Node.js must be installed to run npm:

    12.x.x >= 12.13.0
    14.x.x >= 14.15.0
    16.0.0 or higher

    If you are using Ubuntu based distributions, to install Node.js v18.x, run the following commands:

    curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
    sudo apt-get install -y nodejs

    To install the latest version of npm, run the following command:

    sudo npm install -g npm

    And finally, to install "Brain-games", simply use:

    git clone https://github.com/rmanzman/brain-games.git
    cd brain-games
    npm ci
    npm link

    To enjoy some fun, choose your game and run one of the following commands:

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

    If you are still in doubt, just watch the exciting gameplay:

    Typing SVG asciicast

    Typing SVG asciicast

    Typing SVG asciicast

    Typing SVG asciicast

    Typing SVG asciicast