Package Files

Class Deck

java.lang.Object
Files.Deck

public class Deck extends Object
  • Constructor Details

    • Deck

      public Deck()
      Creates deck object with 14 of each type of card and 2 jokers
  • Method Details

    • drawRandom

      public Card drawRandom()
      Draws a random card, removes it from the deck, returns it
      Returns:
      Card card that is drawn from the deck