cows and bulls

R

ramu

Hi,
can anyone please give me an algorithm to implement cows and
bulls game which takes minimum number of passes to guess the 4 digit
number?

regards
 
W

Walter Roberson

ramu said:
can anyone please give me an algorithm to implement cows and
bulls game which takes minimum number of passes to guess the 4 digit
number?

That's not actually a question about C: that's a question about
algorithms. I suggest that you try a newsgroup that deals with
algorithms, such as one of the comp.programming newsgroups.

The comp.lang.c newsgroup deals mostly with questions about the
C language itself. If you come up with a particular implementation
of the algorithm and you are having trouble debugging it, then
people here are likely to help... once there is already a program
to look at.
 
C

CBFalconer

ramu said:
can anyone please give me an algorithm to implement cows and bulls
game which takes minimum number of passes to guess the 4 digit
number?

Place cows in field A, bulls in field B, open gate between. Watch.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top