konstantin / hex_project01
Hexlet Project01 - Brain Games!
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:project
Requires
- wp-cli/php-cli-tools: ^0.11
Requires (Dev)
This package is auto-updated.
Last update: 2024-04-25 21:06:15 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