Class BetterGreedyAgent

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

public class BetterGreedyAgent extends BaseAgent
An agent that prioritises capturing, followed by moving on to rosettes, and that prioritises moving the most advanced piece. This is not thread-safe.
  • Constructor Details

    • BetterGreedyAgent

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