com.amoebacode.blackjack.strategy
Interface IBasicStrategy
- All Known Implementing Classes:
- BasicStrategy
- public interface IBasicStrategy
IBasicStrategy defines the public API for the basic strategy tutor, which indicates whether
the user is making the proper playing decisions.
- Version:
- 0.9
- Author:
- Jason Gurney
setStrategy
public void setStrategy(IHouseRules houseRules)
- Sets the correct strategy decision matrices for the current casino
options.
- Parameters:
houseRules - the current casino options
checkAction
public void checkAction(IPlayerHand playerHand,
java.lang.String action,
int dealerScore)
- Checks whether the player is making the proper basic strategy playing
decision.
- Parameters:
playerHand - the IPlayerHand being analyzedaction - the playing decision that was madedealerScore - the current dealer score
addBasicStrategyListener
public void addBasicStrategyListener(BasicStrategyEventListener gel)
- Adds the specified event listener to this object's event listener collection.
- Parameters:
listener - the BasicStrategyEventListener to add
Copyright © 2002 amoebacode.com.