Package net.royalur.agent
Class LutAgent
java.lang.Object
net.royalur.agent.BaseAgent
net.royalur.agent.LutAgent
- All Implemented Interfaces:
Agent
Uses a lookup-table to decide the move to make.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecideMove
(Game game, List<Move> availableMoves) Determines the move to be executed from the current state of the game.A different instance of Lut must be used on each thread, so this creates a copy of it.
-
Constructor Details
-
LutAgent
-
-
Method Details
-
shallowCopy
A different instance of Lut must be used on each thread, so this creates a copy of it. -
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.availableMoves
- The list of available moves to be chosen from.- Returns:
- The move that the agent chose to play.
-