Interface IStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean drawCard​(Card[] cards, Card dealercard)
      Decide if to draw another card.
      java.lang.String getName()
      Get the strategy name.
      int makeBet​(int account)
      Calculate how much to bet, given the account value.
    • Method Detail

      • getName

        java.lang.String getName()
        Get the strategy name.
        Returns:
        The name.
      • makeBet

        int makeBet​(int account)
        Calculate how much to bet, given the account value.
      • drawCard

        boolean drawCard​(Card[] cards,
                         Card dealercard)
        Decide if to draw another card.