Help for this page

Select Code to Download


  1. or download this
    shuffle a deck of cards
    and take the top card,
    ...
    after they answer the next card in the deck is shown,
    if the user was right the program will loop and flip another first car
    +d over..ask them again...
    but if they get it wrong the program exits.
    
  2. or download this
    Shuffle deck;
    pop top card
    ...
        top_card == next_card
    }
    Game over.
    
  3. or download this
    s
    #! perl -slw
    use strict;
    ...
    }
    print 'Game over.';
    print 'You beat the pack' unless @cards;