alex-rysaev/php-project-lvl1

Hexlet 项目 PHP Level 1. 脑力游戏。

安装: 26

依赖: 0

建议: 0

安全性: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:项目

0.21.9 2020-05-29 16:54 UTC

README

Maintainability PHP CI

脑力游戏

这些是小型的脑力训练游戏。目前有五种游戏可用

  • 脑力计算 - 计算表达式的结果
  • 脑力偶数 - 判断一个数字是否为偶数
  • 脑力最大公约数 - 计算最大公约数
  • 脑力素数 - 判断一个数字是否为素数
  • 脑力数列 - 找出缺失的数列元素

你需要连续三次正确解决问题才能获胜。

设置

要设置 Brain Games,您必须安装 Composer。另外,您可能需要将 Composer 的 vendor/bin 文件夹添加到您的 $PATH 中。

安装 Brain Games

user@ws:~$ composer global require alex-rysaev/php-project-lvl1

asciicast

运行 Brain Calc

user@ws:~$ brain-calc

asciicast

运行 Brain Even

user@ws:~$ brain-even

asciicast

运行 Brain GCD

user@ws:~$ brain-gcd

asciicast

运行 Brain Prime

user@ws:~$ brain-prime

asciicast

运行 Brain Progression

user@ws:~$ brain-progression

asciicast