Class StochasticTable

    • Constructor Detail

      • StochasticTable

        public StochasticTable​(java.lang.String name)
        Create a new strategy.
        Parameters:
        name - The name.
    • Method Detail

      • makeBet

        public int makeBet​(int account)
        Calculate how much to bet, given the account value.
        Specified by:
        makeBet in interface IStrategy
        Specified by:
        makeBet in class AbstractStrategy
        Parameters:
        account -
        Returns:
        The bet.
      • drawCard

        public boolean drawCard​(Card[] playercards,
                                Card dealercard)
        Decide if to draw another card.
        Specified by:
        drawCard in interface IStrategy
        Specified by:
        drawCard in class AbstractStrategy
        Parameters:
        playercards -
        dealercard -
        Returns:
        True, if the player wants to draw a card.