yakimov/brain-games

Brain-games project

dev-main 2021-01-03 11:41 UTC

This package is auto-updated.

Last update: 2024-04-29 04:28:15 UTC


README

Maintainability Build Status

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 yakimov/brain-games:dev-master
add ~/.composer/vendor/bin to your PATH
$ echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
$ export PATH="$PATH:$HOME/.composer/vendor/bin"

Run

$ brain-even
$ brain-calc
$ brain-gcd
$ brain-prime
$ brain-progression

Install with Composer

asciicast

Example game Brain-even

asciicast

Example game Brain-calc

asciicast

Example game Brain-gcd

asciicast

Example game Brain-progression

asciicast

Example game Brain-prime

asciicast