Class Deck

java.lang.Object
  extended by Deck

public class Deck
extends java.lang.Object


Field Summary
static int FULL_DECK
           
static int FULL_SUIT
           
 
Constructor Summary
Deck()
           
 
Method Summary
 TableauPiles deal(TableauPiles myTableaus)
          Responsible for creating a deck and randomly setting up the tableaus with the cards in the deck.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FULL_SUIT

public static final int FULL_SUIT
See Also:
Constant Field Values

FULL_DECK

public static final int FULL_DECK
See Also:
Constant Field Values
Constructor Detail

Deck

public Deck()
Method Detail

deal

public TableauPiles deal(TableauPiles myTableaus)
Responsible for creating a deck and randomly setting up the tableaus with the cards in the deck. Once a card is dealt, it is removed from the "deck" so it cannot be dealt again.

Returns:
a TableauPiles object that is the starting board for the next game