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 TypeMethodDescriptionboolean
isHuman()
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, requestActionAsync
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.demilich.metastone.game.behaviour.Behaviour
getName, requestAction
-
Constructor Details
-
IntelligentBehaviour
public IntelligentBehaviour()
-
-
Method Details
-
mulligan
Description copied from interface:Behaviour
Use 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:Behaviour
Determines whether this behaviour's actions were determined by a human.- Specified by:
isHuman
in interfaceBehaviour
- Overrides:
isHuman
in classAbstractBehaviour
- Returns:
true
if the actions are determined by a human,false
otherwise.
-