Class LikelihoodAgent

java.lang.Object
net.royalur.agent.BaseAgent
net.royalur.agent.LikelihoodAgent
All Implemented Interfaces:
Agent

public class LikelihoodAgent extends BaseAgent
An agent that makes deterministic move choices for testing. This is not thread-safe.
  • 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

      public Move decideMove(Game game, List<Move> moves)
      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.