Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Perl Card Trick

by Lysander (Monk)
on Sep 15, 2002 at 03:07 UTC ( [id://197983]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Card Trick
in thread Perl Card Trick

Good catch. Thanks. I mislabeled the rows. It should go 1-4, bottom-to-top, rather than 1-4, top-to-bottom. Interesting enough, I think the trick still worked for every card except the one that you picked. :) I'm updating the code with the new labels.

Replies are listed 'Best First'.
Re^3: Perl Card Trick
by Flexx (Pilgrim) on Sep 15, 2002 at 03:24 UTC

    I'm sorry to tell you, but that still won't work... (try choosing 1/1 -- two of diamonds). You just shifted (mirrored) the problem...

    Now it still works for anything on 1/1 .. 4/4 in the original table...

    click Read more below for the solution...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found