You have to write a 4-digit number and try to match a secret number.
The digits (0-9) must be all different. When the “Check” button is clicked,
will be revealed the number of matches with the secret number.
If the matching digits are in their right positions, they are "bulls",
if in different positions, they are "cows". Example:
-
Secret number:
4271
-
Your number:
1234
Answer: 1 bull and 2 cows.
-
The bull is "2" (is in the correct position)
-
The cows are "4" and "1" (are in different positions)