Class BadAgent

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

public class BadAgent extends BaseAgent
An agent that prioritises moving the least advanced piece, and avoids introducing pieces, moving on to rosettes, or capturing. This is not thread-safe.
  • Constructor Details

    • BadAgent

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