Skip to content

Shamilist/Brain-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

github-actions-test

Brain games

There are 5 games. In each game you need to answer 3 questions.
If you answer the questions correctly 3 times in a row - you win game!
If you gave at least one wrong answer - the game will end and you can start over.

How to set up the game:


1. Clone this repository.
2. Go to directory frontend-project-lvl1.
3. Enter the command: make install.
4. Enter the command: npm link.
5. To start the game, enter the command:

  • Brain-even game - make brain-even
  • Brain-calc game - make brain-calc
  • Вrain-gcd game - make brain-gcd
  • Brain-progression game - make brain-progression
  • Brain-prime game - make brain-prime

Brain-even game


In this game you need answer 'yes' if number is even and 'no' if number is not even.

asciicast

Brain-calc game


In this game you need to calculate the correct answer of the expression and write it down in the answer.

asciicast

Вrain-gcd game


In this game two random numbers are displayed and you need calculate and enter the greatest common divisor of these numbers.

asciicast

Brain-progression game


In this game you need to guess the number, skipped in arithmetic progression.

asciicast

Brain-prime game


In this game you need answer 'yes' if number is prime and 'no' if number is not even.
A prime number is a number greater than 1 with only two factors – themselves and 1.

asciicast

About

Technologies: JS, Node.js, ESLint, Git, GitHub Actions (CI), CodeClimate.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published