walle/brain-games

There is no license information available for the latest version (4.0.0) of this package.

Brain Games

4.0.0 2019-04-07 18:15 UTC

This package is auto-updated.

Last update: 2025-06-29 01:51:50 UTC


README

Build Status

Project hexlet: brain-games

REQUIREMENTS

  • php 7.2+
  • composer

INSTALLEMENT

composer global require walle/brain-games

Games list

  • brain-games - We ask a user's name and welcome him/her.
  • brain-even - The point of the game is the following: a random number is shown to the user. He needs to say yes, if the number is even, or no - if it is odd.
  • brain-calc - The point of the game is the following: the user is shown a random mathematical task, for example, 35 + 16, which the user need to solve and write the correct answer.
  • brain-gcd - The point of the game is the following: the user is shown two random numbers, for example, 25 50. The user must solve the task and write the greatest common factor of these numbers.
  • brain-prime - We show the player a series of numbers that forms an arithmetic progression, replacing any of the numbers with two dots. The player must determine this number.
  • brain-progression - We show the player a number and he must determine whether it is simple or not.

Example

asciicast