Class IntelligentBehaviour
java.lang.Object
net.demilich.metastone.game.behaviour.AbstractBehaviour
net.demilich.metastone.game.behaviour.IntelligentBehaviour
- All Implemented Interfaces:
Serializable,Cloneable,Behaviour
- Direct Known Subclasses:
FlatMonteCarloBehaviour,GameStateValueBehaviour,GreedyOptimizeTurn,MonteCarloTreeSearchBehaviour,PlayRandomBehaviour
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisHuman()Determines whether this behaviour's actions were determined by a human.mulligan(GameContext context, Player player, List<Card> cards) Use the provided context, player and first hand cards to determine which cards to discard during a mulligan phase.Methods inherited from class net.demilich.metastone.game.behaviour.AbstractBehaviour
clone, mulliganAsync, onGameOver, requestActionAsyncMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.demilich.metastone.game.behaviour.Behaviour
getName, requestAction
-
Constructor Details
-
IntelligentBehaviour
public IntelligentBehaviour()
-
-
Method Details
-
mulligan
Description copied from interface:BehaviourUse the provided context, player and first hand cards to determine which cards to discard during a mulligan phase.- Parameters:
context- The game context.player- The player who's mulliganing.cards- The cards in the player's first hand.- Returns:
- The cards the player chose to discard.
-
isHuman
public boolean isHuman()Description copied from interface:BehaviourDetermines whether this behaviour's actions were determined by a human.- Specified by:
isHumanin interfaceBehaviour- Overrides:
isHumanin classAbstractBehaviour- Returns:
trueif the actions are determined by a human,falseotherwise.
-