From: Johannes Held Date: 2011-05-06T17:55:25+09:00 Subject: Re: Lets play a guessing game. (how to code this better?) On 05.05.2011 10:10, John Feminella wrote: > For another challenge, you might try writing a program that can guess > a number between 0 and 100 in as few guesses as possible (hint: it > should take around 7 guesses). Ah, that's a nice challenge. You could even try to solve it with the functional pradigm. In this case: recursion! http://pastie.org/1870939 -- Johannes