public class GreedyPlayer extends Player
Player.MergeOption, Player.PlayerStats
Modifier | Constructor and Description |
---|---|
|
GreedyPlayer()
Constructs a new greedy player (Isla).
|
protected |
GreedyPlayer(boolean local,
boolean ai,
java.lang.String name)
Constructs a new greedy player with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
executeMove()
Executes a move for this player.
|
addArea, equals, findBestMergeFrom, findLargestUnownedObject, findLargestUnownedObject, getArea, getID, getName, getProxy, getScoreAnimation, getStats, getTheme, hashCode, hasMergeFrom, init, isAI, isLocal, owns, removeArea, setID, setName, stream, toString
public GreedyPlayer()
protected GreedyPlayer(boolean local, boolean ai, java.lang.String name)
local
- Whether this AI is executing locally or acting as a remote proxy.ai
- Whether this player is an AI or not.name
- The name of this player.public boolean executeMove() throws java.lang.InterruptedException
Player
executeMove
in class Player
java.lang.InterruptedException
- When the player was
interrupted while making its move. Signalling
that the game was aborted.