blackjackanalyst.strategy
Class DefaultDealer

java.lang.Object
  extended by blackjackanalyst.strategy.DefaultDealer
All Implemented Interfaces:
DealerStrategy

public class DefaultDealer
extends java.lang.Object
implements DealerStrategy

The default dealer strategy, which hits on any value below 16 or soft 17. On any other value, the dealer stands.

Author:
Michael Parker

Nested Class Summary
 
Nested classes/interfaces inherited from interface blackjackanalyst.DealerStrategy
DealerStrategy.DealerStrategyAction
 
Method Summary
 DealerStrategy.DealerStrategyAction getAction(Hand dealer_hand)
          Returns the proper action, given the current hand.
static DefaultDealer getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DefaultDealer getInstance()

getAction

public DealerStrategy.DealerStrategyAction getAction(Hand dealer_hand)
Description copied from interface: DealerStrategy
Returns the proper action, given the current hand. If this method returns null, the caller determines what action is taken.

Specified by:
getAction in interface DealerStrategy
Parameters:
dealer_hand - the current hand of cards
Returns:
the proper action, which is either hit or stand