Bulls and Cows

About the Game

Bulls and Cows is a classic code-breaking game similar to Mastermind. The computer will think of a secret number, and you need to guess it.

Rules:

  • The secret number consists of unique digits (no repeats)
  • A "bull" means a digit is correct and in the right position
  • A "cow" means a digit is correct but in the wrong position
  • Try to guess the secret number in as few attempts as possible

Example:

If the secret number is "4271" and your guess is "1234":
- You get 1 bull (for the digit "2" in the correct position)
- You get 2 cows (for the digits "1" and "4" in wrong positions)

Difficulty Levels:

  • Easy: 3 digits
  • Medium: 4 digits
  • Hard: 5 digits

Play Bulls and Cows

Select difficulty level: