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

Nested Class Summary
static class DealerStrategy.DealerStrategyAction
          The possible dealer actions, which are simply hit and stand.
 
Method Summary
 DealerStrategy.DealerStrategyAction getAction(Hand dealer_hand)
          Returns the proper action, given the current hand.
 

Method Detail

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