Imagine you are looking for treasure in a strange three-dimensional treasure island, where treasure can be hidden at any point on a grid defined by three coordinates.

When you enter a guess in the interactivity below, it tells you the shortest distance you would have to travel along grid lines to reach the treasure.

For example, if the treasure is at (1, 2, 3) and you enter (3, 3, 3), the interactivity will tell you that the treasure is a distance of 3 steps away (2 steps in the x direction, 1 in the y direction and 0 in the z direction).