julbel1984/hexlet-project-1

此包的最新版本(5.3.0)没有提供许可证信息。

脑力游戏

5.3.0 2019-01-13 14:34 UTC

This package is auto-updated.

Last update: 2024-09-14 03:03:45 UTC


README

Maintainability Test Coverage Build Status

第一个在Hexlet PHP程序员课程中的项目

项目描述

需要实现一套可以通过控制台运行的迷你游戏。

游戏流程示例

$ brain-progression

Welcome to the Brain Game!
What number is missing in this progression?

May I have your name? Roman
Hello, Roman!

Question: 14 .. 18 20 22 24 26 28
Your answer: 16
Correct!
Question: 5 6 7 8 9 .. 11 12
Your answer: 10
Correct!
Question: 12 15 18 21 .. 27 30 33
Your answer: 24
Correct!
Congratulations, Roman!

安装

要进行全局安装,请执行命令 composer global require "julbel1984/hexlet-project-1"

运行

要运行程序,请在文件系统的任何位置执行 brain-games 命令

运行示例

启动游戏

brain-even

要运行游戏,请在文件系统的任何位置执行 brain-even 命令

brain-calc

要运行游戏,请在文件系统的任何位置执行 brain-calc 命令

brain-gcd

要运行游戏,请在文件系统的任何位置执行 brain-gcd 命令

brain-progression

要运行游戏,请在文件系统的任何位置执行 brain-progression 命令

brain-prime

要运行游戏,请在文件系统的任何位置执行 brain-prime 命令