Crack the secret 4-digit code
A classic code-breaking game of logic and deduction.
Choose your mode
Guess a secret 4-digit number. All digits are unique; the first digit is never zero.
Guess a secret 4-letter English word. Every letter in the word is unique โ no repeats.
The rules
The game picks a random 4-digit number or 4-letter word with all unique digits or letters.
Type any valid 4-digit number or 4-letter word with all unique digits or letters. In word mode your guess must be a real English word.
Each guess returns a count of Bulls and Cows. Use them to narrow down the secret.
4 bulls means you cracked it! You have 10 guesses. Use them wisely.
Bulls & Cows explained
Correct digit or letter in the correct position
Correct digit or letter but in the wrong position
Worked examples
Numbers mode - secret is hidden
8 is a bull (correct position) ยท 2 is a cow (exists but wrong place) ยท 1 and 5 are misses
4 and 8 are bulls ยท 2 is a cow (wrong position) ยท 9 is a miss
4 bulls - cracked it!
Words mode - secret is hidden
F is a bull (correct position) ยท O, R, K are all misses
P is a miss ยท S, H, I are all in the secret but in the wrong positions
F and S are bulls ยท A and T are misses
4 bulls - cracked it!
Frequently asked questions