Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexp11223/php-project-lvl1
Small logic games involving basic arithmetical operations and number properties. Project 1 of https://hexlet.io courses.
https://github.com/alexp11223/php-project-lvl1
composer educational hexlet hexlet-projects logic-game php
Last synced: about 2 months ago
JSON representation
Small logic games involving basic arithmetical operations and number properties. Project 1 of https://hexlet.io courses.
- Host: GitHub
- URL: https://github.com/alexp11223/php-project-lvl1
- Owner: AlexP11223
- Created: 2019-07-01T09:11:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T08:37:27.000Z (over 5 years ago)
- Last Synced: 2024-11-18T23:08:28.030Z (about 2 months ago)
- Topics: composer, educational, hexlet, hexlet-projects, logic-game, php
- Language: PHP
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Maintainability](https://api.codeclimate.com/v1/badges/468d4fe080e5f595b8f7/maintainability)](https://codeclimate.com/github/AlexP11223/php-project-lvl1/maintainability)
[![Build Status](https://travis-ci.org/AlexP11223/php-project-lvl1.svg?branch=master)](https://travis-ci.org/AlexP11223/php-project-lvl1)# Brain Games
Small logic games involving basic arithmetical operations and number properties. Each game consists of up to 3 rounds.
This is an educational project implemented during https://hexlet.io courses aimed at setting up the environment, getting familiar with some best practices and creating a good simple architecture.
## Installation
- Install PHP 7.2+ and [Composer](https://getcomposer.org/doc/00-intro.md#globally).
- Run `composer global require alexp11223/brain-games`.
- Make sure that the Composer global bin dir (`composer global config bin-dir --absolute`) is in your `PATH`.[![asciicast](https://asciinema.org/a/QVG5NAiTP3WYnMqsQfFYyfyTL.svg)](https://asciinema.org/a/QVG5NAiTP3WYnMqsQfFYyfyTL)
## Usage
Run the following games:
- `brain-even`
- `brain-calc`
- `brain-gcd`
- `brain-progression`
- `brain-prime`### brain-even
Answer whether the given number is even.
[![asciicast](https://asciinema.org/a/zL2EqYUaBbd0mQuYadXM9Dk6L.svg)](https://asciinema.org/a/zL2EqYUaBbd0mQuYadXM9Dk6L)
### brain-calc
Enter the result of the arithmetic expression.
[![asciicast](https://asciinema.org/a/oOPp5OizYR81IJ0996bMkKCDt.svg)](https://asciinema.org/a/oOPp5OizYR81IJ0996bMkKCDt)
### brain-gcd
Find the greatest common divisor of two numbers.
[![asciicast](https://asciinema.org/a/COnf8tojSIjjg0eBYcJLWtt8G.svg)](https://asciinema.org/a/COnf8tojSIjjg0eBYcJLWtt8G)
### brain-progression
Enter the number missing in the arithmetic progression.
[![asciicast](https://asciinema.org/a/Z2Iu0xak4QY9UUzpcunvgf2xE.svg)](https://asciinema.org/a/Z2Iu0xak4QY9UUzpcunvgf2xE)
### brain-prime
Answer whether the given number is prime.
[![asciicast](https://asciinema.org/a/gdeINWYajikDbWeIYvzqRE5I7.svg)](https://asciinema.org/a/gdeINWYajikDbWeIYvzqRE5I7)