Class StochasticTable
- java.lang.Object
- 
- jadex.bdi.examples.blackjack.player.strategies.AbstractStrategy
- 
- jadex.bdi.examples.blackjack.player.strategies.StochasticTable
 
 
- 
- All Implemented Interfaces:
- IStrategy
 
 public class StochasticTable extends AbstractStrategy The stochastic table strategy.
- 
- 
Field Summary- 
Fields inherited from class jadex.bdi.examples.blackjack.player.strategies.AbstractStrategyCONSTANT_CAREFUL, CONSTANT_RISKY, CONSTANT_VERY_CAREFUL, CONSTANT_VERY_RISKY, HUMAN_PLAYER, name, STOCHASTIC_TABLE, strategies
 
- 
 - 
Constructor SummaryConstructors Constructor Description StochasticTable(java.lang.String name)Create a new strategy.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandrawCard(Card[] playercards, Card dealercard)Decide if to draw another card.intmakeBet(int account)Calculate how much to bet, given the account value.- 
Methods inherited from class jadex.bdi.examples.blackjack.player.strategies.AbstractStrategyequals, getName, getStrategies, getStrategy, getStrategyNames, hashCode, toString
 
- 
 
- 
- 
- 
Method Detail- 
makeBetpublic int makeBet(int account) Calculate how much to bet, given the account value.- Specified by:
- makeBetin interface- IStrategy
- Specified by:
- makeBetin class- AbstractStrategy
- Parameters:
- account-
- Returns:
- The bet.
 
 
- 
 
-