PHPackages                             vancho/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. vancho/brain-games

ActiveProject

vancho/brain-games
==================

First hexlet project

v2.9(6y ago)041PHP

Since May 15Pushed 6y agoCompare

[ Source](https://github.com/vancho4/project-lvl1-s500)[ Packagist](https://packagist.org/packages/vancho/brain-games)[ RSS](/packages/vancho-brain-games/feed)WikiDiscussions master Synced yesterday

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

The first project of the "hexlet" courses: a set of mini-games launched from the console "Brain Games".
=======================================================================================================

[](#the-first-project-of-the-hexlet-courses-a-set-of-mini-games-launched-from-the-console-brain-games)

[About the project.](https://ru.hexlet.io/professions/php/projects/7)

Badges
------

[](#badges)

[![](https://camo.githubusercontent.com/7a2a8d8a34d1a6b4bfc5f2142af41b15b93a5139bdf823586ae9036621bd808d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38306636646263303061323961356537316165322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/vancho4/project-lvl1-s500/maintainability) [![](https://camo.githubusercontent.com/ef2bb48eb222ccfdad3829cc3d7de05264fa000ade057e48c0886f5e06e15178/68747470733a2f2f7472617669732d63692e6f72672f76616e63686f342f70726f6a6563742d6c766c312d733530302e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vancho4/project-lvl1-s500)

Install
-------

[](#install)

```
composer global require vancho/brain-games

```

Run
---

[](#run)

**brain-even** - the user is shown a random number. And he needs to answer "yes", if the number is even, or "no" - if it is odd.
**brain-calc** - the user is shown a random mathematical expression, for example 35 + 16, which needs to be calculated and the correct answer written down.
**brain-gcd** - the user is shown two random numbers, for example, 25 50. The user must calculate and enter the greatest common divider of these numbers.
**brain-progression** - the user is shown a series of numbers that form an arithmetic progression, one number is hidden. The user must define this number.
**brain-prime** - the user is shown a random number. And he needs to answer “yes”, if the given number is simple. Otherwise, answer "no."

Asciinema
---------

[](#asciinema)

### Brain-Games install:

[](#brain-games-install)

[![](https://camo.githubusercontent.com/a10d7c50ab57a192051812815b1c1adf50ca1f1e803a519414652bfc14a80aa0/68747470733a2f2f61736369696e656d612e6f72672f612f544368704478384e513676774370494b6f437a68626658696a2e737667)](https://asciinema.org/a/TChpDx8NQ6vwCpIKoCzhbfXij)

### Brain-Even:

[](#brain-even)

[![](https://camo.githubusercontent.com/2470fcb3f39012d770dadba9d71d57652fbe0ed8640810cefbbe401887fc54ac/68747470733a2f2f61736369696e656d612e6f72672f612f7250526d524c5233546162477a4e513435734b574c5a3131652e737667)](https://asciinema.org/a/rPRmRLR3TabGzNQ45sKWLZ11e)

### Brain-Calc:

[](#brain-calc)

[![](https://camo.githubusercontent.com/97b72d8e21c596a728f8a4d50a1f636ff6bbe7953dab8fb5dfa9bc0a734aca4d/68747470733a2f2f61736369696e656d612e6f72672f612f5a717845413469346e4d4e6f62455130306a5a376a4e7048622e737667)](https://asciinema.org/a/ZqxEA4i4nMNobEQ00jZ7jNpHb)

### Brain-Gcd:

[](#brain-gcd)

[![](https://camo.githubusercontent.com/07d29b1f7df1bebc4b36fa43a340b01a25571352fc331332d934542930a0024d/68747470733a2f2f61736369696e656d612e6f72672f612f46556d77476f3364594b4b71464a43755033497976534b506d2e737667)](https://asciinema.org/a/FUmwGo3dYKKqFJCuP3IyvSKPm)

### Brain-Progression:

[](#brain-progression)

[![](https://camo.githubusercontent.com/6b2d77418efc852508ed520d540626754a527676f01d8f1d86966830799a4b38/68747470733a2f2f61736369696e656d612e6f72672f612f7876427431494b31573644554d45414c51513738654474637a2e737667)](https://asciinema.org/a/xvBt1IK1W6DUMEALQQ78eDtcz)

### Brain-Prime:

[](#brain-prime)

[![](https://camo.githubusercontent.com/aae69d79a262d89b152113a36266de014a35061bd6830b99a970c004e20875f2/68747470733a2f2f61736369696e656d612e6f72672f612f4e464f766f523133423364414f543246446144704b314171572e737667)](https://asciinema.org/a/NFOvoR13B3dAOT2FDaDpK1AqW)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity71

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 ~1 days

Total

37

Last Release

2531d ago

Major Versions

v1.8.1 → v2.02019-06-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cc5842f8f493db63ecae5a6c7fea3b86cdf0c7035fd58f953275e4aab378bdc?d=identicon)[vancho4](/maintainers/vancho4)

---

Top Contributors

[![vancho4](https://avatars.githubusercontent.com/u/48130291?v=4)](https://github.com/vancho4 "vancho4 (8 commits)")

---

Tags

gamesbrain

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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