konstantin / hex_project01
There is no license information available for the latest version (v1.1.2) of this package.
Hexlet Project01 - Brain Games!
Package info
github.com/Konstantin-GIT/php-project-lvl1
Type:project
pkg:composer/konstantin/hex_project01
v1.1.2
2019-07-25 10:46 UTC
Requires
- wp-cli/php-cli-tools: ^0.11
Requires (Dev)
This package is auto-updated.
Last update: 2026-02-26 01:09:49 UTC
README
Description
Brain-Games - это набор мини-игр, запускаемых из консоли. Данная реализация игр велась в рамках курсов по программированию и выполнения проекта на обучающем ресурсе Hexlet.
List of games
- brain-even - answer "yes" if number even otherwise answer "no".
- brain-calc - what is the result of the expression?
- brain-gcd - find the greatest common divisor of given numbers.
- brain-prime - answer "yes" if given number is prime. Otherwise answer "no".
- brain-progression - what number is missing in the progression?
Install
$ composer global require konstantin/hex_project01
add ~/.composer/vendor/bin to your PATH
Run
$ brain-even $ brain-calc $ brain-gcd $ brain-prime $ brain-progression
Example:
Project implementation steps:
step 1: https://asciinema.org/a/1M1ynsLYQz6rT6o34K5FPEqud
step 2: https://asciinema.org/a/MT2UFHZ4MXbFqgx0nX6ixmAcB
step 4: https://asciinema.org/a/SIWNDwKA2cus7SZ1mbbFa6VVe
step 5: https://asciinema.org/a/CbSw7d01Rqk2CurO4ASxfAv7Z
step 6: https://asciinema.org/a/RIdEVS5nJZZ3AIxgTTh5fdHhB