yanepenb/1hbraingames

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

This`s a console mini-games

0.2.9 2019-07-15 04:37 UTC

This package is auto-updated.

Last update: 2024-04-15 15:02:26 UTC


README

This is a set of logical mini-games launched from the console. List of games: Game: "Calculator" Game: "Parity Check" Game "Is it a prime number?" Game "Arithmetic Progression.

Badges

Maintainability Build Status

How to install:

composer global require yanepenb/1hbraingames

install

Description:

  • brain-even - the user is shown a random number. And he needs to answer "yes", if the number is even, or "no" - if it is odd.
  • brain-calc - the user is shown a random mathematical expression, for example 35 + 16, which needs to be calculated and the *correct answer written down.
  • brain-gcd - the user is shown two random numbers, for example, 25 50. The user must calculate and enter the greatest common divider of these numbers.
  • brain-progression - the user is shown a series of numbers that form an arithmetic progression, one number is hidden. The user must define this number.
  • brain-prime - the user is shown a random number. And he needs to answer “yes”, if the given number is simple. Otherwise, answer "no."

How to play games:

Brain-even:

even

Brain-calc:

calc

Brain-gcd:

gcd

Brain-progression:

progression

Brain-prime:

prime