Click or drag to resize

Deck Class

A deck of cards
Inheritance Hierarchy
SystemObject
  ConsoleCardsDeck

Namespace:  ConsoleCards
Assembly:  ConsoleCards (in ConsoleCards.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Deck

The Deck type exposes the following members.

Constructors
  NameDescription
Public methodDeck
Constructor
Top
Properties
  NameDescription
Public propertyEmpty
Gets whether the deck is empty
Top
Methods
  NameDescription
Public methodCut
Cuts the deck of cards at the given location
Public methodPrint
Prints the cards in the deck
Public methodShuffle
Shuffles the deck Reference: http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collections.html#shuffle%28java.util.List%29
Public methodTakeTopCard
Takes the top card from the deck. If the deck is empty, returns null
Top
See Also