Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Cows & Bulls strategy

14 views
Skip to first unread message
Message has been deleted

[Mr.] Lynn Kurtz

unread,
Jul 7, 2008, 8:11:02 PM7/7/08
to
On Mon, 07 Jul 2008 21:40:14 +0100, Paul Carson <cars...@aol.com>
wrote:

>Hi
>
>I like to play a game called "Cows & Bulls" online.
>
>The computer chooses a four-digit number. Numbers
>cannot be repeated, nor can the number start with 0.
>
>The player (me!) inputs a four digit number (containing
>no repeated digit), and is told how many "bulls" (digits
>in the answer, and also in the correct position), and
>how many "cows" (digits in the answer, but in the wrong
>position.
>
>Here is some sample output:
>
>[I am thinking of a 4-digits number]
>1: 1234 : 0 bulls and 2 cows
>2: 5678 : 0 bulls and 0 cows
>3: 3209 : 2 bulls and 2 cows
>4: 3029 : 1 bull and 3 cows
>5: 3902 : 1 bull and 3 cows
>6: 3290 : 0 bulls and 4 cows
>7: 9023 : 0 bulls and 4 cows
>8: 3902 : 1 bull and 3 cows
>9: 2309 : the answer
>[Bravo! Congratulations, you found the answer!]
>
>[] = computer output; rest is my guesses + outcome.
>
>Can anyone suggest a strategy for playing this game to
>complete the puzzle in the least possible number of turns?
>
>(If you want to play, the website is http://5ko.free.fr/en/bk.html
>and I have no connection whatsoever with that website).

The game looks similar to Mastermind. See, for example:

http://mathworld.wolfram.com/Mastermind.html

--Lynn

johnjo

unread,
Jul 8, 2008, 8:57:30 AM7/8/08
to
On 7 Jul, 21:40, Paul Carson <carso...@aol.com> wrote:
> Hi
>
> I like to play a game called "Cows & Bulls" online.
>>
> Can anyone suggest a strategy for playing this game to
> complete the puzzle in the least possible number of turns?
>
> (If you want to play, the website ishttp://5ko.free.fr/en/bk.html

> and I have no connection whatsoever with that website).

Google is your fiend.
however it is best to google for "mastermind strategy" since the rules
are well, similar.
I could be wrong. And my employer thinks I am.
HTH
JJ

Jasen Betts

unread,
Jul 9, 2008, 7:46:17 AM7/9/08
to
On 2008-07-07, Paul Carson <cars...@aol.com> wrote:
> Hi
>
> I like to play a game called "Cows & Bulls" online.
>
> The computer chooses a four-digit number. Numbers
> cannot be repeated, nor can the number start with 0.
>
> The player (me!) inputs a four digit number (containing
> no repeated digit), and is told how many "bulls" (digits
> in the answer, and also in the correct position), and
> how many "cows" (digits in the answer, but in the wrong
> position.
>
> Here is some sample output:
>
> [I am thinking of a 4-digits number]
> 1: 1234 : 0 bulls and 2 cows
> 2: 5678 : 0 bulls and 0 cows
> 3: 3209 : 2 bulls and 2 cows
> 4: 3029 : 1 bull and 3 cows
> 5: 3902 : 1 bull and 3 cows
> 6: 3290 : 0 bulls and 4 cows
> 7: 9023 : 0 bulls and 4 cows
> 8: 3902 : 1 bull and 3 cows
> 9: 2309 : the answer
> [Bravo! Congratulations, you found the answer!]
>
> [] = computer output; rest is my guesses + outcome.
>
> Can anyone suggest a strategy for playing this game to
> complete the puzzle in the least possible number of turns?

Pick the decision tree with the least depth.

Are your guesses restricted to the set of possible answers?

Bye.
Jasen

--CELKO--

unread,
Jul 9, 2008, 11:25:32 AM7/9/08
to
>> however it is best to Google for "mastermind strategy" since the rules are well, similar. <<

I recall that Knuth published a paper with a decision tree to play an
optimal game of Mastermind several years ago ...


The Qurqirish Dragon

unread,
Jul 10, 2008, 10:04:16 AM7/10/08
to
On Jul 9, 7:46 am, Jasen Betts <ja...@xnet.co.nz> wrote:

According to the instructions, apparently yes, you must give a
possible answer as a guess (so if your first guess of 1234 gives one
hit, you can't next use 1122 to narrow the choice faster.

--CELKO--

unread,
Jul 10, 2008, 11:24:15 AM7/10/08
to
>> I recall that Knuth published a paper with a decision tree to play an optimal game of Mastermind several years ago ... <<

http://mathworld.wolfram.com/Mastermind.html

0 new messages