Cows and Bulls game

Cows and Bulls

Cows and Bulls

Play against the computer.

Set up the game

Enter a four-digit number with no repeated digits.

Your number and computer guesses

Guess C B

Your guesses of computer number

Guess C B

How to play

  • Enter a four-digit secret number with no repeated digits; a leading zero is allowed.
  • Choose a computer difficulty, start the game, then submit guesses of the computer's number.
  • C means a digit is correct but in the wrong position; B means a digit is correct and in the right position.
  • You win when your guess gets four bulls. The computer wins when a non-random computer guess gets four bulls; a random computer guess with four bulls makes it retry.
  • Choose Reset game to clear the guesses and return to setup; the difficulty selection is preserved.