PHPackages                             gudzii-ov/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. [CLI &amp; Console](/categories/cli)
4. /
5. gudzii-ov/brain-games

ActiveProject[CLI &amp; Console](/categories/cli)

gudzii-ov/brain-games
=====================

A set of simple math games

v4.0.2(6y ago)019ISCPHP

Since Jun 30Pushed 6y agoCompare

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

READMEChangelog (10)Dependencies (2)Versions (20)Used By (0)

Brain Games
===========

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/36e9ce4f1ed268dd5105d3e4a0e4b0a881e0d3e5e4edf27bed7fda35024e0031/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30666431656135313132346638653634306131652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/gudzii-ov/php-project-lvl1/maintainability)[![Build Status](https://camo.githubusercontent.com/7b89cf629aacd33493840c9a5f8a070c29d3f168362a6b1659582eb464c58a57/68747470733a2f2f7472617669732d63692e6f72672f6775647a69692d6f762f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gudzii-ov/php-project-lvl1)

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

[](#description)

Brain games is a set of simple math console games.

Contains the following games:

1. **brain-even** - answer is proposed number even or not
2. **brain-calc** - calculate proposed expression
3. **brain-gcd** - find greater common divisor of two proposed umbers
4. **brain-progression** - find hidden number in proposed progression
5. **brain-prime** - answer is proposed number prime or not

### Installation and playing games

[](#installation-and-playing-games)

Install games and execute prefered game in console as in asciinema examples.

Asciinemas
----------

[](#asciinemas)

### Installation

[](#installation)

```
composer global require gudzii-ov/brain-games
```

[![asciicast](https://camo.githubusercontent.com/fdaa2e6e9af08e9b3915b5a2f32a4868aa203acc7603204edbcac4d1554d565e/68747470733a2f2f61736369696e656d612e6f72672f612f3235343432342e706e67)](https://asciinema.org/a/254424)

### Playing "is even" game

[](#playing-is-even-game)

```
brain-even
```

[![asciicast](https://camo.githubusercontent.com/a9d2d3fb15bb96090736ba0b802cdebb25346e6dc559910ef70096d315694c76/68747470733a2f2f61736369696e656d612e6f72672f612f3235363030362e706e67)](https://asciinema.org/a/256006)

### Playing "calc" game

[](#playing-calc-game)

```
brain-calc
```

[![asciicast](https://camo.githubusercontent.com/9e4f901449b3e944222875cf63434f05fb1ac40d83b49528592fcefa49c623a2/68747470733a2f2f61736369696e656d612e6f72672f612f3235363032302e706e67)](https://asciinema.org/a/256020)

### Playing "greater common divisor" game

[](#playing-greater-common-divisor-game)

```
brain-gcd
```

[![asciicast](https://camo.githubusercontent.com/cc974194c7b9eb10bccc4e4931a7d07644e8f9db09a248381e6a9822237d8cac/68747470733a2f2f61736369696e656d612e6f72672f612f3235363039352e706e67)](https://asciinema.org/a/256095)

### Playing "arithmetic progression" game

[](#playing-arithmetic-progression-game)

```
brain-progression
```

[![asciicast](https://camo.githubusercontent.com/5ca5253e5b18607e33fe05a8c9d7380ad18894daa0405f19f19d5bc0db0b0c2f/68747470733a2f2f61736369696e656d612e6f72672f612f3235363132302e706e67)](https://asciinema.org/a/256120)

### Playing "is prime" game

[](#playing-is-prime-game)

```
brain-prime
```

[![asciicast](https://camo.githubusercontent.com/93967ddd155c30c9bbeb921b7c76e6b1675f6f88146b1071a8267bc4ab5ba633/68747470733a2f2f61736369696e656d612e6f72672f612f3235363132342e706e67)](https://asciinema.org/a/256124)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

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

Recently: every ~7 days

Total

19

Last Release

2470d ago

Major Versions

0.1.0 → v1.0.02019-06-30

v1.2.1 → v2.0.02019-07-06

v2.3.0 → v3.0.02019-07-07

v3.0.3 → v4.0.02019-07-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/816fc8d81eb17e80c70bdbce3fc1e8cd55041b15d9f765dfbb453a0c5d18edc9?d=identicon)[gudzii-ov](/maintainers/gudzii-ov)

---

Top Contributors

[![gudzii-ov](https://avatars.githubusercontent.com/u/14841480?v=4)](https://github.com/gudzii-ov "gudzii-ov (58 commits)")

---

Tags

cliprojectgameshexlet

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[stolt/lean-package-validator

Library and CLI for validating if a project or package has and will have lean releases.

172.4k8](/packages/stolt-lean-package-validator)

PHPackages © 2026

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