KBYD – Simple Bulls and Cows Game

How to Play

KBYD is a simple Bulls and Cows Game.

When the game starts, the computer randomly generates 3 to 5 digit-number.
You have to guess that number until you run out of chances.

If you press Enter after entering a number, the number and result are recorded in the history field as follows.

[c, d, e, f, g] / hAiB

A means both number and position match.
B means the numbers match but the positions do not.
So, 1A2B means that there is one digit that matches both the number and position, and two digit that matches the number but does not match the position.
The game will repeat until you run out of chances or you have guessed all the numbers.

Good Luck.


Copyright (C) 2021. Xeruel a.k.a. MochaSyrup

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.


View Github