li0n0k/brain-games

Project 1 from Hexlet

v1.0.11 2018-11-29 14:48 UTC

This package is auto-updated.

Last update: 2025-03-29 00:57:29 UTC


README

Project Brain games on Hexlet

Descriptions games

All mini-games ask you 3 questions. Your challenge is to answer all questions correctly.

  • brain-even - specify if the number is even or not, using only yes or no.
  • brain-calc - find a solution to a mathematical expression, like 2 * 9
  • brain-gcd - find the greatest common divisor of two numbers, like (55, 40) = 5
  • brain-progression - You are given an arithmetic progression, for example, 8 12 16 20 .. 28 32 36 40 44. You must find the missing number of the sequence.
  • brain-prime - specify if the number is prime or not, using only yes or no.

Installation and usage

1) composer global require li0n0k/brain-games
2) Add in your PATH - $HOME/.composer/vendor/bin
3) Run for example brain-even
4) Enjoy!

Example installation and play