/**
	 * Lets the AI player make an automated move.
	 * 
	 * Here, the AI player calculates a fitting next field which he then marks
	 * trying to win the tic tac toe game.
	 */
@Override
	public void makeMove() {
		// TODO Not just randomly select a tile to mark
		while (true) {
			try {
				List<Tile> tiles = getGameLogic().getTerritory().getTiles();
				Tile tile = tiles.get(GameLogic.RANDOM.nextInt(tiles.size()));
				tile.setMarkedPlayer(this);
				getGameLogic().endMove();
				return;
			} catch (TileAreadyMarkedException e) {
			}
		}
	}
@Override
public void makeMove() {
// TODO Not just randomly select a tile to mark
while (true) {
try {
List<Tile> tiles = getGameLogic().getTerritory().getTiles();
Tile tile = tiles.get(GameLogic.RANDOM.nextInt(tiles.size()));
tile.setMarkedPlayer(this);
getGameLogic().endMove();
return;
} catch (TileAreadyMarkedException e) {
}
}
}
@Override
public void makeMove() {
// TODO Not just randomly select a tile to mark
while (true) {
try {
List<Tile> tiles = getGameLogic().getTerritory().getTiles();
Tile tile = tiles.get(GameLogic.RANDOM.nextInt(tiles.size()));
tile.setMarkedPlayer(this);
getGameLogic().endMove();
return;
} catch (TileAreadyMarkedException e) {
}
}
}
@Override
public void makeMove() {
// TODO Not just randomly select a tile to mark
while (true) {
try {
List<Tile> tiles = getGameLogic().getTerritory().getTiles();
Tile tile = tiles.get(GameLogic.RANDOM.nextInt(tiles.size()));
tile.setMarkedPlayer(this);
getGameLogic().endMove();
return;
} catch (TileAreadyMarkedException e) {
}
}
}