|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackjackanalyst.strategy.DefaultDealer
public class DefaultDealer
The default dealer strategy, which hits on any value below 16 or soft 17. On any other value, the dealer stands.
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 |
---|
public static DefaultDealer getInstance()
public DealerStrategy.DealerStrategyAction getAction(Hand dealer_hand)
DealerStrategy
null
, the caller determines what action is taken.
getAction
in interface DealerStrategy
dealer_hand
- the current hand of cards
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |