Blackjack

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

Method Summary
 void addBasicStrategyListener(BasicStrategyEventListener gel)
          Adds the specified event listener to this object's event listener collection.
 void checkAction(IPlayerHand playerHand, java.lang.String action, int dealerScore)
          Checks whether the player is making the proper basic strategy playing decision.
 void setStrategy(IHouseRules houseRules)
          Sets the correct strategy decision matrices for the current casino options.
 

Method Detail

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 analyzed
action - the playing decision that was made
dealerScore - 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

Blackjack

Copyright © 2002 amoebacode.com.