Bulls and Cows is an old code-breaking mind or paper and pencil game for two or more players
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
NaiJi 5164dfdcc7 Init 6 months ago
.gitignore Init 6 months ago
CowsAndBulls.pro Init 6 months ago
LICENSE Init 6 months ago
README.md Init 6 months ago
main.cpp Init 6 months ago

README.md

Cows-bulls

Bulls and Cows (also known as Cows and Bulls or Pigs and Bulls or Bulls and Cleots) is an old code-breaking mind or paper and pencil game for two or more players

The numerical version of the game is usually played with 4 digits, but can also be played with 3 or any other number of digits.

On a sheet of paper, the players each write a 4-digit secret number. The digits must be all different. Then, in turn, the players try to guess their opponent's number who gives the number of matches. If the matching digits are in their right positions, they are "bulls", if in different positions, they are "cows". Example:

  • Secret number: 4271

  • Opponent's try: 1234

  • Answer: 1 bull and 2 cows. (The bull is "2", the cows are "4" and "1".)

    (c) Wikipedia