Given a square grid, a bot at the center of the grid will locate the target (which is located at one of the four corners) in as few moves as possible.