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...