Package net.royalur.agent
Class BadAgent
java.lang.Object
net.royalur.agent.BaseAgent
net.royalur.agent.BadAgent
- All Implemented Interfaces:
Agent
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 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
-
BadAgent
public BadAgent()
-
-
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.
-