Package net.royalur.agent
Class BetterGreedyAgent
java.lang.Object
net.royalur.agent.BaseAgent
net.royalur.agent.BetterGreedyAgent
- All Implemented Interfaces:
Agent
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecideMove
(Game game, List<Move> moves) Determines the move to be executed from the current state of the game.
-
Constructor Details
-
BetterGreedyAgent
public BetterGreedyAgent()
-
-
Method Details
-
decideMove
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.
-