Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Perl Card Trickby Flexx (Pilgrim) |
on Sep 15, 2002 at 03:24 UTC ( [id://197987]=note: print w/replies, xml ) | Need Help?? |
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...use @cards = reverse @cards;, since that's what you're doing when you collect the cards,(stacking them left to right, top to botton) and then put them up on the table again... Original numbering was fine, you have to twist your solution lookup, however. Updated : Here's a diff to your (semi-original) solution:
So long,
In Section
Code Catacombs
|
|