import java.util.ArrayList;

/*
 * This is a modified version of the Shoe class that
 * allows testing of Blackjack with predetermined cards.
 */
public class TestShoe
{
    static ArrayList<BlackjackCard> cards;
    static boolean resetRun;

    public TestShoe(int decks)
    {
        // intentionally left blank
    }
    
    public BlackjackCard dealCard()
    {
        return cards.remove(cards.size() - 1);
    }
    
    public int cardsLeft()
    {
        return cards.size();
    }
    
    public void reset()
    {
        // Shoe should simply fail when running out of cards
        resetRun = true;
    }
}
