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