rolec
Interface AI


public interface AI

This interface represents an AI that may be used by a player to select a move


Method Summary
 void endGame(Player player, Deck deck, GameHistory history, boolean simulation)
          Indicates that one game round has ended
 Move selectMove(Move move, Player player, Deck deck, GameHistory history, boolean simulation)
          Selects a move from the list of possible moves based on the implemented AI
 

Method Detail

selectMove

Move selectMove(Move move,
                Player player,
                Deck deck,
                GameHistory history,
                boolean simulation)
Selects a move from the list of possible moves based on the implemented AI

Parameters:
move - the move to respond to
player - a cloned instance of the player who should respond to the move by using the implemented AI
deck - the deck used in this game
history - a cloned instance of the history of the game
simulation - a boolean indicating whether the game is run in simulation
Returns:
the move to be played by the specified player as a response to the specified move

endGame

void endGame(Player player,
             Deck deck,
             GameHistory history,
             boolean simulation)
Indicates that one game round has ended

Parameters:
player - a cloned instance of the player who should respond to the move by using the implemented AI
deck - the deck used in this game
history - a cloned instance of the history of the game
simulation - a boolean indicating whether the game is run in simulation