Class LutAgent

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

public class LutAgent extends BaseAgent
Uses a lookup-table to decide the move to make.
  • Constructor Details

    • LutAgent

      public LutAgent(Lut lut)
  • Method Details

    • shallowCopy

      public LutAgent shallowCopy()
      A different instance of Lut must be used on each thread, so this creates a copy of it.
    • decideMove

      public Move decideMove(Game game, List<Move> availableMoves)
      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.
      availableMoves - The list of available moves to be chosen from.
      Returns:
      The move that the agent chose to play.