Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaivladimirv/php-project-lvl1

This is a set of five console games based on popular mobile brain training apps.
https://github.com/kaivladimirv/php-project-lvl1

hexlet php8

Last synced: 5 days ago
JSON representation

This is a set of five console games based on popular mobile brain training apps.

Awesome Lists containing this project

README

        

[![Actions Status](https://github.com/kaivladimirv/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/kaivladimirv/php-project-lvl1/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/6a85cca81fd5662c8c25/maintainability)](https://codeclimate.com/github/kaivladimirv/php-project-lvl1/maintainability)
[![PHP Linter](https://github.com/kaivladimirv/php-project-lvl1/actions/workflows/workflow.yml/badge.svg)](https://github.com/kaivladimirv/php-project-lvl1/actions/workflows/workflow.yml)
GitHub
PHP Programming Language

## Brain games
This is a set of five console games based on popular mobile brain training apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.

It is a project of PHP courses from the [Hexlet](https://hexlet.io/) educational portal.

## Features
- Calculator. Arithmetic expressions to be evaluated.
- Progression. Search for missing numbers in a sequence of numbers.
- Definition of an even number.
- Finding the Greatest Common Divisor.
- Definition of a prime number.

## Requirements
* PHP 8.0+
* Composer

## Installation
```
$ git clone https://github.com/kaivladimirv/php-project-lvl1.git

$ cd php-project-lvl1

$ make install
```
[![asciicast](https://asciinema.org/a/PghiRcbqU5vysfptRizVBNQvs.svg)](https://asciinema.org/a/PghiRcbqU5vysfptRizVBNQvs)

## Usage

1. Definition of an even number.
```
$ make brain-even
```
[![asciicast](https://asciinema.org/a/8ONfjWWktfyLNSD5mHzZQI67H.svg)](https://asciinema.org/a/8ONfjWWktfyLNSD5mHzZQI67H)

2. Calculator. Arithmetic expressions to be evaluated.
```
$ make brain-calc
```
[![asciicast](https://asciinema.org/a/gWR0Va2f6hjgYnpM4YfOGZ4cw.svg)](https://asciinema.org/a/gWR0Va2f6hjgYnpM4YfOGZ4cw)

3. Finding the Greatest Common Divisor.
```
$ make brain-gcd
```
[![asciicast](https://asciinema.org/a/Q1lTm9HSmxQsuVMKOMx48D3O1.svg)](https://asciinema.org/a/Q1lTm9HSmxQsuVMKOMx48D3O1)

4. Progression. Search for missing numbers in a sequence of numbers.
```
$ make brain-progression
```
[![asciicast](https://asciinema.org/a/TWpUdqEvdTvHbZZzcqHNAMagB.svg)](https://asciinema.org/a/TWpUdqEvdTvHbZZzcqHNAMagB)

5. Definition of a prime number.
```
$ make brain-prime
```
[![asciicast](https://asciinema.org/a/SpE5xaA5u2V9elaDgvnBngDsd.svg)](https://asciinema.org/a/SpE5xaA5u2V9elaDgvnBngDsd)

## License
The Bryan Games project is licensed for use under the MIT License (MIT).
Please see [LICENSE](/LICENSE) for more information.