Skip to content

anikeieva/project-lvl1-s292

Repository files navigation

project-lvl1-s292

Maintainability Test Coverage Build Status

About

It's a set of console brain games:

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

You must correct answer to one type question three times to won. Else - start game again.

brain-even

Brain-even give a number and you must type is it even or not. Answers have to be "yes" or "not", other answers are error.

brain-calc

Brain-calc give expression and you must type result.

brain-gcd

Brain-gcd give two numbers and you must type greater common divisor for them.

brain-balance

Brain-balance give a number and you have to balance it. Digits of balanced number have to have difference no more than 1. For example, 334 - balanced number, 528 - not. Balanced number of 528 - 555. Also Digits of balanced number must be in rise.

brain-progression

Brain-progression give arithmetic progression without a member and you must type hidden one.

brain-prime

Brain-prime give a number and you have to answer is it prime or not.

Installation

sudo npm install -g brain-game_hexlet-project-anikeieva

Run

Each game runs with it name.

For example, installation, running and playing brain-even game (with different game options):

brain-even

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published