Jadex 0.96

jadex.examples.blackjack.player.strategies
Interface IStrategy

All Known Implementing Classes:
AbstractStrategy, ConstantStrategy, StochasticTable

public interface IStrategy

Interface for a player strategy.


Method Summary
 boolean drawCard(Card[] cards, Card dealercard)
          Decide if to draw another card.
 String getName()
          Get the strategy name.
 int makeBet(int account)
          Calculate how much to bet, given the account value.
 

Method Detail

getName

String getName()
Get the strategy name.

Returns:
The name.

makeBet

int makeBet(int account)
Calculate how much to bet, given the account value.


drawCard

boolean drawCard(Card[] cards,
                 Card dealercard)
Decide if to draw another card.


Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.