Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://140779]
help
Chatterbox?
[james28909]: what would be the best way to capture that stream with perl? ffmpeg args -rtp rtp://127.0.0.1?
[LanX]: if I was forced to talk about all security risks I encountered oO
[james28909]: if i did that with ffmpeg, i could then listen on the port with perl right?
[LanX]: one of my clients filtered a menu linking to Web pages according to user rights. .. but he didn't secure the access to those unlisted pages

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-05-22 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?