TerraTactician Expandoria Logo

TerraTactician Expandoria

Quest 3

Last updated: April 22, 2025

The goal of this task is to use CubeCoordinates and the iterators defined on them.

We will place a Forest Tile on the map. Your task is to place more Forest Cards and to fulfill the following two tasks.

  1. Surround the already existing tile with 6 more Forest Tiles.
  2. We have removed one of the Tiles from the map, and you have to find it and fill it.

Tip: Use the AreaIterator or the RingIterator.

A few code snippets:

// Center of the map, it is always 0,0,0
CubeCoordinate center = world.getBuildArea().getCenter();

// Create an Iterator.
// Tip: you will find the radius of the map in the BuildArea. (exclusive range)
AreaIterator iter = center.getArea(radius);

// Get a Tile from the map.
// It will return null if the spot is empty.
Tile tile = world.getMap().at(coord);

// Redraw more cards. Not always possible.
controller.redraw();

// Time until the next redraw is possible.
// At 0 a free redraw is possible.
world.getRedrawTime();