     }
     
     /**
+    * Remove all cards from the pile.
+    */
+    func removeAllCards() {
+        pile.removeAll();
+    }
+    
+    /**
     * Return the number of cards in this pile.
     *
     * @return Bool

    * Return the card at index.  If index is out of bounds, nil is returned.
    *
    * @param index : Int - the index of the card to return in the pile
    * @return Card
    */
    func cardAt(index : Int) -> Card? {
        if(index >= 0 && index < pile.count) {

import Foundation

class Pile {
    var pile : [Card];
    
    init() {
        pile = [Card]();
