Download the PHP package nikit/cold-hot without Composer
On this page you can find all versions of the php package nikit/cold-hot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package cold-hot
Описание проекта
-
Написать программу для игры "Холодно-горячо"(cold-hot). Игрок пытается угадать случайное трехзначное число (без повторяющихся цифр), сгенерированное компьютером. После каждой попытки компьютер предоставляет игроку подсказки трех типов:
- "Холодно". Ни одна цифра не отгадана.
- "Тепло" Одна цифра отгадана, но не отгадана ее позиция.
- "Горячо". Одна цифра и ее позиция отгадана. Компьютер может дать несколько подсказок, сортируемых в алфавитном порядке. Если секретное число 456, а предположение игрока — 546, подсказки будут иметь вид «Горячо Тепло Тепло». Подсказка «Горячо» относится к 6, а «Тепло Тепло» — к 4 и 5.
-
- *
-
В программе реализованы три режима, которым соответствуют ключи:
--new
. Новая игра.--list
. Вывод списка всех сохраненных игр.--replay id
. Повтор игры с идентификатором id.
-
- *
Требования
Минимальная версия PHP: 7.4.7 Минимальная версия Composer: 1.9.3
Инструкция по установке и запуску игры
Из Github:
- Склонировать проект на локальную машину;
- Установить composer, если он не установлен;
- Перейти в корневой каталог;
- Выполнить в консоли команду
composer update
; - Перейти в каталог bin из корнегого каталога и запустить файл guess-number.bat.
Из Packagist:
- Установить composer, если он не установлен;
- Перейти в каталог, в который вы будете клонировать проект;
- Выполнить команду
composer require nikit/cold-hot
; - Перейти в каталог vendor/bin;
- Запустить файл guess-number.bat.
Ссылки
All versions of cold-hot with dependencies
PHP Build Version
Package Version
The package nikit/cold-hot contains the following files
Loading the files please wait ....