PHPackages                             bulat/brain-games - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bulat/brain-games

ActiveProject

bulat/brain-games
=================

One week learning project on PHP with Hexlet. Making a set of small console-type games.

1.6.2(7y ago)0411PHP

Since Apr 1Pushed 7y agoCompare

[ Source](https://github.com/BulatGL/project-lvl1-s470)[ Packagist](https://packagist.org/packages/bulat/brain-games)[ RSS](/packages/bulat-brain-games/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

[![Maintainability](https://camo.githubusercontent.com/cdf23fda8d92f526eccf50a66acf27bf422cf36f01885fb41e7909b76bdd46a6/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61346133656536373733633136353363343132632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/gitlabhq/gitlab-ci-runner/maintainability)[![Test Coverage](https://camo.githubusercontent.com/4740e338b523955d1a160a06df9144a17c467263a8569acf0124a3aea94b0477/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61346133656536373733633136353363343132632f746573745f636f766572616765)](https://codeclimate.com/github/gitlabhq/gitlab-ci-runner/test_coverage)[![Build Status](https://camo.githubusercontent.com/382ff7a1d67c853e7c0200c6f2bdf6024807efa1cef04e339951a16fbe008e3c/68747470733a2f2f7472617669732d63692e6f72672f42756c6174474c2f70726f6a6563742d6c766c312d733437302e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BulatGL/project-lvl1-s470)

Brain-Games
===========

[](#brain-games)

Description
-----------

[](#description)

A set of small console-type games.

Installation
------------

[](#installation)

Using Composer, you can install brain-games system-wide with the following command:

```
composer global require bulat/brain-games

```

[![asciicast](https://camo.githubusercontent.com/c33480b8276d88127c461d3e637460f8e5b247224a9190c1ab0c728a69613b29/68747470733a2f2f61736369696e656d612e6f72672f612f4734306d455365724f754e63715746634e78377a51793375612e737667)](https://asciinema.org/a/G40mESerOuNcqWFcNx7zQy3ua)

Games and commands to start them in bash
----------------------------------------

[](#games-and-commands-to-start-them-in-bash)

### Even

[](#even)

Answer "yes" if number even otherwise answer "no".

```
brain-even

```

[![asciicast](https://camo.githubusercontent.com/35b05235a1333b9f04c45656d1090eaa97cdeee09fbb93a1987445874338b9a5/68747470733a2f2f61736369696e656d612e6f72672f612f52776c75614d4772735764473939504178394b30316a5968452e737667)](https://asciinema.org/a/RwluaMGrsWdG99PAx9K01jYhE)

### Calc

[](#calc)

Give the result of the expression.

```
brain-calc

```

[![asciicast](https://camo.githubusercontent.com/558dfa4b53a7dada2a2f74af80f9ad1e19bdf744ddabfa4f0c08283106c41318/68747470733a2f2f61736369696e656d612e6f72672f612f456e4870555359704c386534544b53354c34453134366b4f6a2e737667)](https://asciinema.org/a/EnHpUSYpL8e4TKS5L4E146kOj)

### Gcd

[](#gcd)

Find the greatest common divisor of given numbers.

```
brain-gcd

```

[![asciicast](https://camo.githubusercontent.com/e9e6cd0986eb1b4acdd3ce49fc25677f8f2e2636fa615931e3ee5b84d0ec876b/68747470733a2f2f61736369696e656d612e6f72672f612f34744858736f574c5a66524736716e784d514478574d426d462e737667)](https://asciinema.org/a/4tHXsoWLZfRG6qnxMQDxWMBmF)

### Progression

[](#progression)

Give number that is missing in the progression.

```
brain-progression

```

[![asciicast](https://camo.githubusercontent.com/e71d24865a64d8b9ed739af5e9649a62495a8f04d16fdabe8de19ddb138bb358/68747470733a2f2f61736369696e656d612e6f72672f612f506a694d575473336433665768515a31377747517345594c662e737667)](https://asciinema.org/a/PjiMWTs3d3fWhQZ17wGQsEYLf)

### Prime

[](#prime)

Answer "yes" if given number is prime. Otherwise answer "no".

```
brain-prime

```

[![asciicast](https://camo.githubusercontent.com/9743ac22c61d11f54748e664457a95432eb003e548743d7810b8e751e0d12d10/68747470733a2f2f61736369696e656d612e6f72672f612f4e786358527575666a724c65356f4a4166316a61585330754a2e737667)](https://asciinema.org/a/NxcXRuufjrLe5oJAf1jaXS0uJ)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

15

Last Release

2594d ago

Major Versions

0.0.1 → 1.0.02019-04-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/04734bf6bd70c0435df5d3e04c3cde7726817ed3f8d2af01764141544dfcc4cf?d=identicon)[BulatGL](/maintainers/BulatGL)

---

Top Contributors

[![BulatGL](https://avatars.githubusercontent.com/u/24704996?v=4)](https://github.com/BulatGL "BulatGL (61 commits)")

---

Tags

packagegameshexlet

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bulat-brain-games/health.svg)

```
[![Health](https://phpackages.com/badges/bulat-brain-games/health.svg)](https://phpackages.com/packages/bulat-brain-games)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
