package mille.bean;

import java.util.ArrayList;

public class Deck
{
    private ArrayList<Card> cards;
    
    public Deck()
    {
        // TODO: change this
        CardImage defaultImage = new CardImage();
        
        cards.add(new AccidentCard(defaultImage));
        // fill in all Mille Bornes cards here
        // look on wikibook etc.
    }
    
    public void shuffle()
    {
        // rearrange all the cards in the deck
    }
    
    public Card getTopCard()
    {
        // returns the card at the top of the cards ArrayList
        return cards.get(cards.size() - 1);
    }
    
    public Card takeTopCard()
    {
        // returns the top card and removes it from the Deck
        Card topCard = getTopCard();
        cards.remove(cards.size() - 1);
        return topCard;
    }
}

@@ -227,50 +227,1955 @@
     
-cards.add(new AccidentCard(defaultImage));
+for (int i = 0; i %3C 3; i++) %7B%0A            cards.add(new AccidentCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 3; i++) %7B%0A            cards.add(new OutOfGasCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 3; i++) %7B%0A            cards.add(new FlatTireCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 4; i++) %7B%0A            cards.add(new SpeedLimitCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 5; i++) %7B%0A            cards.add(new StopCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 6; i++) %7B%0A            cards.add(new RepairsCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 6; i++) %7B%0A            cards.add(new GasolineCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 6; i++) %7B%0A            cards.add(new SpareTireCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 6; i++) %7B%0A            cards.add(new EndOfLimitCard(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 14; i++) %7B%0A            cards.add(new RollCard(defaultImage));%0A        %7D%0A        %0A        cards.add(new DrivingAceCard(defaultImage));%0A        cards.add(new ExtraTankCard(defaultImage));%0A        cards.add(new PunctureProofCard(defaultImage));%0A        cards.add(new RightOfWayCard(defaultImage));%0A        %0A        for (int i = 0; i %3C 10; i++)%0A        %7B%0A            cards.add(new Distance25Card(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 10; i++)%0A        %7B%0A            cards.add(new Distance50Card(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 10; i++)%0A        %7B%0A            cards.add(new Distance75Card(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 12; i++)%0A        %7B%0A            cards.add(new Distance100Card(defaultImage));%0A        %7D%0A        %0A        for (int i = 0; i %3C 4; i++)%0A        %7B%0A            cards.add(new Distance200Card(defaultImage));%0A        %7D%0A        
 %0A   

add cards to deck class