import java.io.*;
import java.util.*;

/**
 ** For timing the sorting of a number of cards to be specified 
 ** in the command line
 ** 
 **  @author Nicholas R. Howe
 **  @version 28 February 2011
 **/
public class TimerDemo {
    /** Starts the program running */
    public static void main(String args[]) {
        if (args.length<1) {
            System.err.println("Please specify how many cards to sort!");
        } else {
            Card[] deck = Card.newDeck();
            CardPile cards = new CardPile(2,2);
            for (int i = 0; i<Integer.parseInt(args[0]); i++ ) {
                Card c = deck[(int)(52*Math.random())];
                c.flipCard();
                cards.add(c);
            }
            
            // call your sort method here:
        }
    }
}
