Class BlackJackCardUtility

java.lang.Object
de.presti.ree6.game.impl.blackjack.util.BlackJackCardUtility

public class BlackJackCardUtility extends Object
Utility class used to provide methods for the game of blackjack.
  • Method Details

    • loadAllCards

      public static void loadAllCards()
      Method called to add all basic cards to the list.
    • getRandomCard

      public static BlackJackCard getRandomCard()
      Returns a random card from the default deck.
      Returns:
      A random card from the default deck.
    • getAllCards

      public static ArrayList<BlackJackCard> getAllCards()
      Returns every card of the default deck.
      Returns:
      Every card of the default deck.