An open API service indexing awesome lists of open source software.

https://github.com/kostyan-org/bulls-and-cows

Simple console game "Bulls And Cows" (PHP)
https://github.com/kostyan-org/bulls-and-cows

bulls bulls-and-cows cli cli-game console-game cows game php

Last synced: 8 months ago
JSON representation

Simple console game "Bulls And Cows" (PHP)

Awesome Lists containing this project

README

          

# Simple console game "Bulls And Cows"
[![Version](http://poser.pugx.org/kostyan-org/bulls-and-cows/version)](https://packagist.org/packages/kostyan-org/bulls-and-cows)
[![Total Downloads](http://poser.pugx.org/kostyan-org/bulls-and-cows/downloads)](https://packagist.org/packages/kostyan-org/bulls-and-cows)
[![License](http://poser.pugx.org/kostyan-org/bulls-and-cows/license)](https://packagist.org/packages/kostyan-org/bulls-and-cows)
[![PHP Version Require](http://poser.pugx.org/kostyan-org/bulls-and-cows/require/php)](https://packagist.org/packages/kostyan-org/bulls-and-cows)

![Image](https://github.com/kostyan-org/bulls-and-cows/raw/gh-pages/Bulls%20and%20cows.PNG)

[Home page](https://kostyan-org.github.io/bulls-and-cows)

At the moment the game has 3 modes

* guess the number in which characters can be repeated (4 characters)
* guess the number in which characters do not repeat (4 characters)
* enter your number (1 - 9 characters)

The game supports the choice of one of two languages English and Russian

If there is a difficulty, you can see the number by sending the command - **!h** during the game

required to run php >=7.4.27

install:

composer create-project kostyan-org/bulls-and-cows

run:

php ./bulls-and-cows/run.php

Debug mode is enabled in the run.php file:

new Game(true)