Package game

Klasse Deck

java.lang.Object
game.Deck

public class Deck extends Object
This class provides the functionality of a deck of cards
Version:
1.0
Autor:
Isabell Hans
  • Konstruktordetails

    • Deck

      public Deck()
      Constructor for the class Deck
  • Methodendetails

    • shuffle

      public void shuffle()
      This method randomly shuffles the deck
    • draw

      public Card draw()
      This method draws and returns the first card
      Gibt zurück:
      Returns card, in case of empty deck returns null
    • isEmpty

      public boolean isEmpty()
      Checks if this deck is empty
      Gibt zurück:
      If this deck is empty