Package net.royalur.agent
Class LikelihoodAgent
java.lang.Object
net.royalur.agent.BaseAgent
net.royalur.agent.LikelihoodAgent
- All Implemented Interfaces:
Agent
An agent that makes deterministic move choices for testing. This is not thread-safe.
-
Constructor Summary
ConstructorDescriptionLikelihoodAgent
(SimpleRuleSet rules, UtilityFunction utilityFunction, float likelihoodThreshold) Instantiates a likelihood agent. -
Method Summary
Modifier and TypeMethodDescriptiondecideMove
(Game game, List<Move> moves) Determines the move to be executed from the current state of the game.
-
Constructor Details
-
LikelihoodAgent
public LikelihoodAgent(SimpleRuleSet rules, UtilityFunction utilityFunction, float likelihoodThreshold) Instantiates a likelihood agent.- Parameters:
utilityFunction
- The utility function to use to evaluate game states.likelihoodThreshold
- The minimum likelihood threshold to explore a sequence of rolls to further depth.
-
-
Method Details
-
decideMove
Description copied from interface:Agent
Determines the move to be executed from the current state of the game.- Parameters:
game
- The game to find the best move in.moves
- The list of available moves to be chosen from.- Returns:
- The move that the agent chose to play.
-