package piles;

/**
 * A deck of playing cards.
 *
 * @author: Allen Downey and Chris Mayfield
 * @version https://github.com/ChrisMayfield/ThinkJavaCode2/tree/master/ch14
 */
public class Deck extends CardCollection {

    /**
     * Constructs a standard deck of 52 cards.
     */
    public Deck(String label) {
        super(label);

        for (int suit = 0; suit <= 3; suit++) {
            for (int rank = 1; rank <= 13; rank++) {
                addCard(new Card(rank, suit));
            }
        }
    }

}
