All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bdi.examples.blackjack.player.strategies.IStrategy Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

The newest version!
package jadex.bdi.examples.blackjack.player.strategies;

import jadex.bdi.examples.blackjack.Card;

/**
 *  Interface for a player strategy.
 */
public interface IStrategy
{
	/**
	 *  Get the strategy name.
	 *  @return The name.
	 */
	public String getName();

	/**
	 *  Calculate how much to bet, given the account value.
	 */
	public int makeBet(int account);

	/**
	 *  Decide if to draw another card.
	 */
	public boolean drawCard(Card[] cards, Card dealercard);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy