Class BaseAgent

java.lang.Object
net.royalur.agent.BaseAgent
All Implemented Interfaces:
Agent
Direct Known Subclasses:
BadAgent, BetterGreedyAgent, DeterministicAgent, FlippedLutAgent, GreedyAgent, LeastAdvancedGreedyAgent, LikelihoodAgent, LutAgent, RandomAgent

public abstract class BaseAgent extends Object implements Agent
An agent that can autonomously play the Royal Game of Ur. Agents are designed to be used on any game, and should not hold game-specific state.
  • Constructor Details

    • BaseAgent

      public BaseAgent()
  • Method Details

    • playTurn

      public final void playTurn(Game game)
      Initiates the agent to play their turn in the given game.
      Specified by:
      playTurn in interface Agent
      Parameters:
      game - The game to play a turn in.