Skip to content

IvanLiVa/frontend-project-44

Repository files navigation

Hexlet tests and linter status:

Actions Status

CodeClimat

Maintainability

Console Games

  1. Even Number In this game, the player is asked to determine whether a number is even or odd. The player is given three attempts for each number.

Link to asciinema session evenGame

logo

  1. Calculator The game asks the player to calculate the result of a mathematical expression. The player is given three attempts for each expression.

Link to asciinema session calcGame

logo

  1. Greatest Common Divisor The player is given several pairs of numbers, and their task is to find the greatest common divisor for each pair. The player is given three attempts for each pair of numbers.

Link to asciinema session gcdGame

logo

  1. Missing Number in Arithmetic Progression The player is given a sequence of numbers in which one number is missing. Their task is to determine the missing number. The player is given three attempts for each sequence of numbers.

Link to asciinema session progGame

logo

  1. Prime Number In this game, the player is given a number, and their task is to determine whether it is a prime number or not. The player is given three attempts for each number.

Link to asciinema session primeGame

logo

Requirements

  • Node.js version 10 or higher

Installation

  1. Clone the repository to your computer.
  2. Install dependencies by running npm install or yarn install.
  3. To install binary files, run the command npm link or yarn link.

Running the Games

To run the games, execute one of the following commands:

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

Follow the instructions in the console for each game.

Note

You have three attempts for each game. Good luck!

Below you can see examples of the game in GIF format.

Video demonstration of the application even in action

asciinema gif

Video demonstration of the application calc in action

asciinema gif

Video demonstration of the application gcd in action

asciinema gif

Video demonstration of the application prog in action

asciinema gif

Video demonstration of the application prime in action

asciinema gif

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published