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 SummaryConstructorsConstructorDescriptionLikelihoodAgent(SimpleRuleSet rules, UtilityFunction utilityFunction, float likelihoodThreshold) Instantiates a likelihood agent.
- 
Method SummaryModifier and TypeMethodDescriptiondecideMove(Game game, List<Move> moves) Determines the move to be executed from the current state of the game.
- 
Constructor Details- 
LikelihoodAgentpublic 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- 
decideMoveDescription copied from interface:AgentDetermines 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.
 
 
-