blackjackanalyst
Interface DealerStrategy
- All Known Implementing Classes:
- DefaultDealer
public interface DealerStrategy
An interface to be implemented by a user-defined dealer strategy. A dealer
strategy defines what action the house takes given a hand of cards.
- Author:
- Michael Parker
getAction
DealerStrategy.DealerStrategyAction getAction(Hand dealer_hand)
- Returns the proper action, given the current hand. If this method returns
null
, the caller determines what action is taken.
- Parameters:
dealer_hand
- the current hand of cards
- Returns:
- the proper action, which is either hit or stand