Skip to content

flythq/php-project-45

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain games

Hexlet tests and linter status:

Actions Status Quality Gate Status Bugs Code Smells Duplicated Lines (%) Lines of Code

“Brain Games” is a set of five console games based on the principle of popular mobile apps for brain training. Each game asks questions that must be answered correctly. After three correct answers, the game is considered completed. Incorrect answers end the game and prompt the player to start over.Games:

  • Calculator. Arithmetic expressions that need to be calculated.
  • Progression. Search for missing numbers in a sequence of numbers.
  • Determining an even number.
  • Determining the greatest common divisor.
  • Determining a prime number.

Prerequisites

  • Linux, Macos, WSL
  • PHP >=8.2
  • Make
  • Git

Setup

Setup SSH before clone:

git clone git@github.com:flythq/php-project-45.git
cd php-project-45

make install

Usage

Calculator

make brain-calc

Example: asciicast

Progression

make brain-progression

Example: asciicast

Determining an even number

make brain-even

Example: asciicast

Determining the greatest common divisor

make brain-gcn

Example: asciicast

Determining a prime number

make brain-prime

Example: asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published