influx/php-project-lvl1

数学游戏

v1.0.2 2019-12-13 06:27 UTC

This package is auto-updated.

Last update: 2024-09-29 05:22:15 UTC


README

Maintainability Build Status

描述: https://ru.hexlet.io/professions/php/projects/45

安装过程 asciicast
大脑计算游戏
asciicast
大脑偶数游戏
asciicast
大脑最大公约数游戏
asciicast
大脑质数游戏
asciicast
大脑数列游戏
asciicast
大脑根号附加游戏
asciicast
大脑随机功能
asciicast

如何安装

composer global require influx/php-project-lvl1

如何运行游戏

运行brain-games然后输入游戏名称

游戏列表及描述

  1. calc
    找出表达式的结果。
  2. even
    如果给定的数字是偶数,回答"yes",否则回答"no"。
  3. gcd
    找出给定数字的最大公约数。
  4. prime
    如果给定的数字是质数,回答"yes",否则回答"no"。
  5. progression
    找出数列中缺失的数字。
  6. root
    找出平方最接近给定数字的整数。

选项

brain-games --random          run random game
brain-games --list            show list of games with their missions
brain-games --help            show help