Bulls and Cows is a logic game to guess numbers. The numbers have to be with four digits and the digits must be all different. The game is played by one player against the computer to try to guess their computer's number. The computer responds with the number of matching digits. If they are in their right positions, they are "bulls"; if in different positions, they are "cows".
Example:
If the computer's number is 7059
And the player asks how many matches are there in 7890
The answer is 1 "bull" and 2 "cows".
© 2022 yuchormanski@gmail.com