Skip to content

Herman2201/backend-project-lvl1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status run-tests

Brain-games

Everyone has logical thinking, but it is developed differently for everyone!) With this game, you can test what you are capable of! :D

But first we need to install the game on our computer.

The game supports OS:

  • Windows;
  • Linux;
  • MacOS.

Installation instructions

  1. The first step is to clone the repository. If you have MacOS, first open the terminal - command + space -> terminal and do everything as in the example below. If you have Windows, then first you need to install git, then open the console - Win + R -> cmd and do everything as in the example below. If you have Linux, open the terminal - Ctrl+Alt+T and do everything as in the example below. You can choose any place where you want to clone the repository (the main thing to remember is where 😁). Example in asciinema or from below:
> cd Desktop
> git clone https://github.com/Herman2201/backend-project-lvl1

If you don't want to clone, you can download zip archive repository and move it wherever you want (the main thing to remember is where 😁).


  1. The second step is to install Node.js on your PC (if you have Windows, I advise you to install this console). To do this, go to the official site Node.js and download the latest stable version for your OS. Once installed, check if Node.js is installed on your OS using the check version command:
> node -v

  1. After cloning the repository with the game on your computer, you need to go through the console (terminal) to the game directory and install the dependencies (make install) because without them, after that, publish the game packages locally (make publish) so that you can call the game in any time, after you need to link our game (npm link), so that when new changes come out, everything works. Example in asciinema or from below:
> cd /* your directory path */
> cd backend-project-lvl1
> make install
> make publish
> npm link /* for MacOS(Linux) sudo npm link */

  1. Well, in the end, you can safely play. :D Below is an example of games that can be played.😁 But remember: in each game you have 3 attempts, one mistake and you fail, try)
> brain-games
> brain-calc
> brain-even
> brain-gcd
> brain-prime
> brain-progression

Demonstration brain-games

Here is a greeting with the user. :D

asciicast

Demonstration игры brain-calc

In this game, you will need to solve a mathematical example, all numbers and mathematical operators will be random. Stay vigilant, there are operators in the game "+, -, *". :D

asciicast

Demonstration brain-even

In this game, you will need to answer whether this number is even or not. :D

asciicast

Demonstration brain-gcd

In this game, you need to answer the question "What is the greatest common multiple of two numbers", the numbers are taken randomly! :D

asciicast

Demonstration brain-prime

In this game, you need to answer the question "Is this a natural number?", the numbers are taken randomly! :D

asciicast

Demonstration brain-progression

In this game, you need to continue the geometric progression. Numbers, length, step progressing randomly! :D

asciicast

Demonstration errore

If you make one mistake, the game will immediately be over and you will have to start over. :,(

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published