Sample output for verbose mode: % ./pyramid.rb Pyramid is: 2H 7S QD KD AD 8S 0C 5C 8H 6S 9H 7H 8C AH 3H AS 5S 6H 7C 7D 6C 6D 5H 2C 3D 3C QC 4D Drew: Three of Spades Drew: King of Hearts; Discarded: Three of Spades Removed: King of Hearts from deck Removed: Two of Clubs from pyramid, Jack of Spades from deck Drew: Ten of Hearts; Discarded: Two of Diamonds Removed: Three of Diamonds from pyramid, Ten of Hearts from deck Removed: Jack of Clubs from deck, Two of Diamonds from waste Removed: Five of Hearts from pyramid, Eight of Diamonds from deck Removed: King of Clubs from deck Drew: Jack of Diamonds; Discarded: Four of Clubs Drew: Nine of Spades; Discarded: Jack of Diamonds Removed: Four of Diamonds from pyramid, Nine of Spades from deck Removed: Three of Clubs from pyramid, Ten of Diamonds from deck Removed: Six of Diamonds from pyramid, Seven of Clubs from pyramid Removed: Queen of Clubs from pyramid, Ace of Spades from pyramid Removed: Six of Hearts from pyramid, Seven of Diamonds from pyramid Removed: Five of Spades from pyramid, Eight of Clubs from pyramid Removed: Six of Clubs from pyramid, Seven of Hearts from pyramid Drew: Ace of Clubs; Discarded: Jack of Hearts Drew: Queen of Spades; Discarded: Ace of Clubs Removed: Ace of Hearts from pyramid, Queen of Spades from deck Removed: Five of Clubs from pyramid, Eight of Hearts from pyramid Removed: King of Spades from deck Removed: Ace of Diamonds from pyramid, Queen of Hearts from deck Drew: Five of Diamonds; Discarded: Nine of Diamonds Drew: Ten of Spades; Discarded: Five of Diamonds Removed: Three of Hearts from pyramid, Ten of Spades from deck Drew: Four of Spades; Discarded: Nine of Clubs Removed: Nine of Hearts from pyramid, Four of Spades from deck Drew: Four of Hearts; Discarded: Two of Spades Flipped over waste pile Drew: Three of Spades; Discarded: Four of Hearts Removed: Ten of Clubs from pyramid, Three of Spades from deck Removed: King of Diamonds from pyramid Removed: Six of Spades from pyramid, Seven of Spades from pyramid Drew: Jack of Diamonds; Discarded: Four of Clubs Drew: Jack of Hearts; Discarded: Jack of Diamonds Drew: Ace of Clubs; Discarded: Jack of Hearts Drew: Nine of Diamonds; Discarded: Ace of Clubs Drew: Five of Diamonds; Discarded: Nine of Diamonds Removed: Eight of Spades from pyramid, Five of Diamonds from deck Drew: Two of Spades; Discarded: Nine of Clubs Flipped over waste pile Drew: Four of Hearts; Discarded: Two of Spades Drew: Four of Clubs; Discarded: Four of Hearts Drew: Jack of Diamonds; Discarded: Four of Clubs Drew: Jack of Hearts; Discarded: Jack of Diamonds Drew: Ace of Clubs; Discarded: Jack of Hearts Removed: Queen of Diamonds from pyramid, Ace of Clubs from deck Removed: Two of Hearts from pyramid, Jack of Hearts from waste You cleared the pyramid with 2 redeals and 5 cards not discarded, for a score of 15.