«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.
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 -vOne 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 higherIf 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 nodejsTo install the latest version of npm, run the following command:
sudo npm install -g npmAnd finally, to install "Brain-games", simply use:
git clone https://github.com/rmanzman/brain-games.git
cd brain-games
npm ci
npm linkTo enjoy some fun, choose your game and run one of the following commands:
brain-evenbrain-calcbrain-gcdbrain-progressionbrain-prime