Skip to content

RasmuS2024/php-project-45

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain games

This is my first PHP project on Hexlet.
5 console games "Brain games":
Brain-even (the player needs to answer an even number or not),
Brain-calc (the player needs to calculate the value of the expression),
Brain-gcd (the player needs to find the largest common divisor),
Brain-progression (the player needs to find the missing number in the arithmetic progression),
Brain-prime (the player needs to answer a prime number or not).
All games consist of 3 rounds, if the player answers incorrectly, the game is interrupted with the player losing, in case of 3 correct answers, the player wins.

Это мой первый PHP проект на Хекслете.
5 консольных игр "Brain games":
Brain-even (игроку необходимо ответить четное число или нет),
Brain-calc (игроку необходимо вычислить значение выражения),
Brain-gcd (игроку необходимо найти наибольший общий делитель),
Brain-progression (игроку необходимо найти пропущенное число в арифметической прогрессии),
Brain-prime (игроку необходимо ответить простое число или нет).
Все игры состоят из 3-х раундов, если игрок отвечает неправильно - игра прерывается с проигрышем игрока, в случае 3 правильных ответов игрок выиграл.

Starting games

To start the game, enter 'make "game name"' in the console, for example: make brain-calc.

Для запуска игры введите в консоли 'make "имя игры"', например: make brain-calc.

Requirements

  • Linux, WSL
  • PHP >= 8.1.2
  • Composer
  • Make
  • Git

Hexlet tests and linter status:

Actions Status

Setup

git clone https://github.com/RasmuS2024/php-project-45.git
cd php-project-45
make install

Setup process in asciinema

Game process Brain-even in asciinema

Game process Brain-calc in asciinema

Game process Brain-gcd in asciinema

Game process Brain-progression in asciinema

Game process Brain-prime in asciinema

About

5 console games on PHP

Resources

Stars

Watchers

Forks

Packages

No packages published