Skip to content

smotrivnebo11/frontend-project-lvl1

Repository files navigation

Hexlet tests and linter status:

Actions Status

Brain Games is a set of five games, each game is launched separately by a command from a Makefile. To win one game you need to answer successfully all tree questions. If you print a wrong answer, the game ends, and you can start it over again or launch another game.

Brain Games requires following system settings:

  • Minimal OS versions: Windows 10 MacOS 10.14 Ubuntu 16, or your favorite Linux distribution
  • Processor: Intel i3 / AMD Ryzen 3
  • RAM: from 8GB

Below you can see description of the games:

  1. Even game In this game you need to figure out if a number is even or not. Print "yes" if the number is even or "no" if it is odd.

Launch command: make brain-even

Game process: https://asciinema.org/connect/32cdf3d0-6248-4ab5-bd2a-a74f03718ca7

  1. Calculation game Here you need to calculate a math expression. Print the result of addition, substraction or multiplication.

Launch command: make brain-calc

Game process: https://asciinema.org/connect/32cdf3d0-6248-4ab5-bd2a-a74f03718ca7

  1. The greatest common divider game As you can guess from the title - you need to find the greatest common divider of two numbers.

Launch command: make brain-gcd

Game process: https://asciinema.org/connect/32cdf3d0-6248-4ab5-bd2a-a74f03718ca7

  1. Progression game Here you need to complete an arithmetic progression. Print the missing member.

Launch command: make brain-progression

Game process: https://asciinema.org/connect/32cdf3d0-6248-4ab5-bd2a-a74f03718ca7

  1. Prime game In this game you need to figure out if a number is prime or not. Print "yes" if the number is prime or "no" if it is not.

Launch command: make brain-prime

Game process: https://asciinema.org/connect/32cdf3d0-6248-4ab5-bd2a-a74f03718ca7

Before you start:

  1. Install node.js globally or upgrade to the latest version. macOs: using Homebrew: brew install node

Ubuntu or Ubuntu on Windows: $ sudo apt update $ sudo apt install nodejs

  1. Clone the repository locally: https://github.com/smotrivnebo11/frontend-project-lvl1

  2. Initialize the npm package inside the root directory of the project: npm init

  3. Start any game you like with a command (look at the games description).

Have a nice play!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published