Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 622 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 622 Bytes

Bulls and cows

Play now!

How to play

Computer has picked a number of four different digits. Your goal is to guess it. Input a four-digit number into a text field, then press Enter. You’ll see the answer:

1 b 2 c

where 1 is number of “bulls” — the digits located in your number in the same position as in computer number, and 2 is number of “cows” — the matching digits placed on different positions.

Example:

Computer: 1945
You:      1492
Answer:   1b, 2c
(The bull is “1”, the cows are “4 and “9”)