Blackjack

com.amoebacode.blackjack.strategy
Class PairStrategy

java.lang.Object
  |
  +--com.amoebacode.blackjack.strategy.StrategyTable
        |
        +--com.amoebacode.blackjack.strategy.PairStrategy

class PairStrategy
extends StrategyTable

PairStrategy manages the basic strategy table for pair hands.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.strategy.StrategyTable
actionTable
 
Constructor Summary
protected PairStrategy(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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

PairStrategy

protected PairStrategy(StrategyTableRow[] rows)
Default protected constructor.
Parameters:
rows - an array of strategy table rows
Method Detail

setupRows

protected void setupRows(StrategyTableRow[] rows)
Description copied from class: StrategyTable
Loads the strategy table rows into the action table hash map.
Overrides:
setupRows in class StrategyTable
See Also:
StrategyTable.setupRows(StrategyTableRow[])

getPlayerScore

protected java.lang.String getPlayerScore(int playerScore)
Description copied from class: StrategyTable
Returns a text description of the user's current situation.
Overrides:
getPlayerScore in class StrategyTable
See Also:
StrategyTable.getPlayerScore(int)

Blackjack

Copyright © 2002 amoebacode.com.