|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.strategy.StrategyTable
|
+--com.amoebacode.blackjack.strategy.HardStrategy
HardStrategy manages the basic strategy table for hard hands.
| Fields inherited from class com.amoebacode.blackjack.strategy.StrategyTable |
actionTable |
| Constructor Summary | |
protected |
HardStrategy(StrategyTableRow[] rows)
Default protected constructor. |
| Method Summary | |
protected java.lang.String |
getPlayerScore(int playerScore)
Returns a text description of the user's current situation. |
protected void |
setupRows(StrategyTableRow[] rows)
Loads the strategy table rows into the action table hash map. |
| Methods inherited from class com.amoebacode.blackjack.strategy.StrategyTable |
checkAction, firstChoiceUnavailable, getAction, getRow |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
protected HardStrategy(StrategyTableRow[] rows)
rows - an array of strategy table rows| Method Detail |
protected void setupRows(StrategyTableRow[] rows)
StrategyTablesetupRows in class StrategyTableStrategyTable.setupRows(StrategyTableRow[])protected java.lang.String getPlayerScore(int playerScore)
StrategyTablegetPlayerScore in class StrategyTableStrategyTable.getPlayerScore(int)
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||