Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re (tilly) 1: (Golf) The Animal Game

by jarich (Curate)
on Jan 23, 2002 at 05:36 UTC ( #140779=note: print w/ replies, xml ) Need Help??


in reply to Re (tilly) 1: (Golf) The Animal Game
in thread (Golf) The Animal Game

Nice solution, but it really gets thrown out if you pick the same two animals in alternation.

Starting a new game. does your animal have feathers? y Is your animal a chicken? n What is your animal? sparrow Please enter a question that would be true for a sparrow, but false fo +r a chicken: is your animal smaller than your fist? Do you want to continue? y Starting a new game. is your animal smaller than your fist? n Is your animal a chicken? y Do you want to continue? y Starting a new game. Is your animal a chicken? n What is your animal? sparrow Please enter a question that would be true for a sparrow, but false fo +r a chicken: is your animal smaller than your fist? Do you want to continue? y
In fact I can never get it to filter down beyond one quesiton. Surely it's trying to do a sort and should look like:
does your animal have fur? y is your animal smaller than your fist? y is your animal a mouse? y Do you want to continue?
but I can't get beyond:
the last question you answered: true -> your last animal false -> computer's previous guess.


Comment on Re: Re (tilly) 1: (Golf) The Animal Game
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://140779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2014-07-31 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (250 votes), past polls