Class DeterministicAgent

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

public class DeterministicAgent extends BaseAgent
An agent that makes deterministic move choices for testing. This is not thread-safe.
  • Constructor Details

    • DeterministicAgent

      public DeterministicAgent()
  • 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.