Package game
Klasse Deck
java.lang.Object
game.Deck
This class provides the functionality of a deck of cards
- Version:
- 1.0
- Autor:
- Isabell Hans
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
Deck
public Deck()Constructor for the class Deck
-
-
Methodendetails
-
shuffle
public void shuffle()This method randomly shuffles the deck -
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
-