One person comes up to another person beside his bike. "Can I use your bike?" he asks. The person by the bike replies, "Only if you figure out the combination to my bike lock, which is made up of 4 different numbers from 1 through 8. You can guess 3 numbers."
He guessed 1235, 4721, and 3862. All three were answered with "One number in the combination is in the wrong place, and another is in the right place. The other two aren't in the combination."
The guesser was puzzled and asked "Is the number divisible by 7?" The person with the bike answered this question and after thinking for a while, the guesser told him the combination. What is the combination?
(In reply to re(2): Dear Silver Kinght and Charlie,,,,,
Perhaps there would be interesting portions of your chess-playing source code that you could share by posting portions of the chess-playing problem, with source-code solution, in the Algorithms category.
Posted by Charlie
on 2003-11-18 13:24:48