malcom/braingames

hexlet php project level 1

v1.5.3 2019-12-05 15:10 UTC

This package is auto-updated.

Last update: 2024-10-06 02:24:45 UTC


README

Hexlet PHP project - level 1

Maintainability Build Status

This repository contains Brain Games. This is a set of mini games launched from the console.

Install:

$ composer global require malcom/braingames

Games:

1. "Parity Check"

Answer yes if the number is even, otherwise answer no

Launch

$ brain-even

asciicast

2. "Calculator"

Find is the result of the expression

Launch

$ brain-calc

asciicast

3. "Greatest common divisor"

Find the greatest common divisor of given numbers

Launch

$ brain-gcd

asciicast

4. "Progression"

Find missing number in the progression

Launch

$ brain-progression

asciicast

5. "Is a prime"

Answer yes if given number is prime. Otherwise answer no

$ brain-prime

asciicast