|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.strategy.BasicStrategyFactory
BasicStrategyFactory calculates the proper strategy tables, depending on the current house rules.
| Field Summary | |
private static CorrectAction |
dbl
The correct action corresponding to a double down (hit if unavailable) |
private static CorrectAction |
dbs
The correct action corresponding to a double down (stand if unavailable) |
private static CorrectAction |
hit
The correct action corresponding to a hit |
private static CorrectAction |
spl
The correct action corresponding to a split |
private static CorrectAction |
std
The correct action corresponding to a stand |
private static CorrectAction |
sur
The correct action corresponding to a surrender (hit if unavailable) |
private static CorrectAction |
sus
The correct action corresponding to a surrender (stand if unavailable) |
| Constructor Summary | |
(package private) |
BasicStrategyFactory()
|
| Method Summary | |
protected static HardStrategy |
getHardStrategy(IHouseRules houseRules)
Returns the matrix of correct strategy decisions for hard hands, given the specified casino options. |
protected static StrategyTableRow[] |
getHardStrategyRows(IHouseRules houseRules)
Returns an array of correct strategy rows for hard hands, given the specified casino options. |
protected static PairStrategy |
getPairStrategy(IHouseRules houseRules)
Returns the matrix of correct strategy decisions for pair hands, given the specified casino options. |
protected static StrategyTableRow[] |
getPairStrategyRows(IHouseRules houseRules)
Returns an array of correct strategy rows for pair hands, given the specified casino options. |
protected static SoftStrategy |
getSoftStrategy(IHouseRules houseRules)
Returns the matrix of correct strategy decisions for soft hands, given the specified casino options. |
protected static StrategyTableRow[] |
getSoftStrategyRows(IHouseRules houseRules)
Returns an array of correct strategy rows for soft hands, given the specified casino options. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final CorrectAction hit
private static final CorrectAction std
private static final CorrectAction dbl
private static final CorrectAction spl
private static final CorrectAction dbs
private static final CorrectAction sur
private static final CorrectAction sus
| Constructor Detail |
BasicStrategyFactory()
| Method Detail |
protected static StrategyTableRow[] getPairStrategyRows(IHouseRules houseRules)
houseRules - the casino optionsprotected static PairStrategy getPairStrategy(IHouseRules houseRules)
houseRules - the casino optionsprotected static StrategyTableRow[] getHardStrategyRows(IHouseRules houseRules)
houseRules - the casino optionsprotected static HardStrategy getHardStrategy(IHouseRules houseRules)
houseRules - the casino optionsprotected static StrategyTableRow[] getSoftStrategyRows(IHouseRules houseRules)
houseRules - the casino optionsprotected static SoftStrategy getSoftStrategy(IHouseRules houseRules)
houseRules - the casino options
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||