Bulls and cows

Bulls and cows

Bulls and Cows, known also as Cows and Bulls or Pigs and Bulls is an old code-breaking paper and pencil game for two players, similar to Mastermind.

It is a game with numbers that may date back a century or more, and a probable inspiration for Mastermind. It is played by two opponents. The game can also be played with 3 digits instead of 4.

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 on their right positions, they are "bulls", if on 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".)

The first one to reveal the other's secret number wins the game. As the "first one to try" has a logical advantage, on every game the "first" player changes. In some places, the winner of the previous game will play "second". Sometimes, if the "first" player finds the number, the "second" has one more move to make and if he also succeeds, the result is even.

The secret numbers for Bulls and cows are usually 4-digit-numbers, but the game can be played with 3 to 6 digit numbers (in every case it is more difficult than with 4).

The game may also be played by two teams of 2-3 players. The players of every team discuss before making their move, much like in chess.

A computer program moo, was the first Bulls and Cows computer implementation, written in the late 1960s by J. M. Grochow at MIT in the PL/I computer language for the Multics operating system.

Because the game has simple rules, while it is difficult and entertaining, there are many computer variants; it is often included in telephones and PDAs.

ee also

* Mastermind

External links

* [http://5ko.free.fr/en/bk.html Bulls and Cows] , an online variant of the game, in English, French and Bulgarian language.
* [http://ftp.stratus.com/vos/multics/pg/pg.html Page with the PL/1 code for Moo by J.M. Grochow]
* [http://ftp.stratus.com/vos/multics/tvv/moo-in-multics-1972.pdf Moo in Multics] article in Software Practice and Experience tracing history of this game program, Jerrold M. Grochow, 1972
* [http://www.biology.duke.edu/cibl/exercises/BagelsPicoFermi.htm Pico, Fermi, Bagels ]
* [http://www.bullscows.com/ Bulls and Cows Online Game] , browser-based version of the game
* [http://fourdigits.sourceforge.net/ 4 digits game] , a free/open source software, identical to Bulls and Cows.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Historical and cultural perspectives on zoophilia — This article covers the historical and cultural aspects of zoophilia and zoosexuality (also known as bestiality), from prehistory onwards. TOC OverviewPrior to and outside the influence of the major Abrahamic religions (Judaism, Christianity,… …   Wikipedia

  • Castlemartin House and Estate — Castlemartin is the name of a townland, historic house and estate on the banks of the River Liffey in Kilcullen, County Kildare, Ireland. It is one of the principal homes of media magnate Tony O ReillyNew York, New York: The New York Times, Tony… …   Wikipedia

  • People and animals (Thomas and Friends) — The television series Thomas the Tank Engine and Friends features many fictional people and animals who interact with the engine characters and form the basis for many of the varying storylines. The following list describes, in order of TV season …   Wikipedia

  • Durrus and District History Modern — Durrus is an area of West Cork in Ireland. For earlier history, see Durrus and District History1900 2000 James Gilhooley M.P. and Elections 1910James Gilhooley MP (he had been a merchant in Bantry, and was jailed on a number of occaasions under… …   Wikipedia

  • List of people and animals from Thomas and Friends — The television series Thomas the Tank Engine and Friends features many fictional people and animals who interact with the engine characters and form the basis for many of the varying storylines. The following list describes the more notable… …   Wikipedia

  • Foot-and-mouth disease — Infobox Disease Name = Foot and mouth disease Caption = DiseasesDB = 31707 ICD10 = ICD10|B|08|8|b|00 ICD9 = ICD9|078.4 ICDO = OMIM = MedlinePlus = eMedicineSubj = eMedicineTopic = MeshID = D005536 Taxobox color = violet name = Foot and mouth… …   Wikipedia

  • Kurukshetra War and the Kambojas — Among the Kshatriya tribes who had participated in the Kurukshetra war, the Kambojas occupy a very prominent place. They were the allies of Duryodhana and by their bravery, and especially the prowess of their king Sudakshina, they had rendered… …   Wikipedia

  • Corsehill, Lainshaw, Robertland and Dunlop — are all in the old feudal Baillerie of Cunninghame, now East Ayrshire, Scotland. This local history article starts with the original land holdings of the baronies within the baillery of Cunninghame and follows these through to the country estates …   Wikipedia

  • Holstein (cattle) — The Holstein or Friesian is a breed of dairy cow known today as the world s highest production dairy animal. Originating in Europe, Holsteins were developed in what is now the Netherlands and more specifically in the two northern provinces of… …   Wikipedia

  • Cattle — Cow redirects here. For other uses, see Cow (disambiguation). For other uses, see Cattle (disambiguation). Cattle …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”