Yes, I found the distance formula to be thoroughly unintuitive too. But if I can explain it to you properly, it's really pretty simple.
First, it may help to imagine the game map rotated 45 degrees so that it looks like a checkerboard instead of a collection of diamonds.
In that orientation, if you move horizontally or vertically, you're moving from one square to a square that shares an edge with it. That move is a distance of 1. (Thus, in your Xexample, the distance is 8. Your example is the rare simple case where straight-line movement gets you there without any diagonal adjustment.) If you move diagonally, to a square that shares only a corner, the distance is 1.5, rounded down. Thus, in the actual orientation of the game map, the diagonal edge-to-edge move is 1, and the horizontal or vertical corner-to-corner move is 1.5. If I'm counting along that line, I just count "1,3,4,6,7,9,10,12....)
There is a second way to calculate the distance, mathematically equivalent, but more intuitive or less intuitive according to individual mindset. Measure the lengths of the sides of the right triangle formed by moving from one space to the other space via edge-to-edge squares. Add the length of the longer side plus one half the length of the shorter side: L + S/2. (In your example, of course, it's a straight line; the longer "side" L = 8.)
I have not tried to determine a formula for calculating distance just based on Civ2's thoroughly unintuitive tile-numbering system, although I suspect it wouldn't be too hard. I just count it out manually in view mode.
Does this help?
First, it may help to imagine the game map rotated 45 degrees so that it looks like a checkerboard instead of a collection of diamonds.
In that orientation, if you move horizontally or vertically, you're moving from one square to a square that shares an edge with it. That move is a distance of 1. (Thus, in your Xexample, the distance is 8. Your example is the rare simple case where straight-line movement gets you there without any diagonal adjustment.) If you move diagonally, to a square that shares only a corner, the distance is 1.5, rounded down. Thus, in the actual orientation of the game map, the diagonal edge-to-edge move is 1, and the horizontal or vertical corner-to-corner move is 1.5. If I'm counting along that line, I just count "1,3,4,6,7,9,10,12....)
There is a second way to calculate the distance, mathematically equivalent, but more intuitive or less intuitive according to individual mindset. Measure the lengths of the sides of the right triangle formed by moving from one space to the other space via edge-to-edge squares. Add the length of the longer side plus one half the length of the shorter side: L + S/2. (In your example, of course, it's a straight line; the longer "side" L = 8.)
I have not tried to determine a formula for calculating distance just based on Civ2's thoroughly unintuitive tile-numbering system, although I suspect it wouldn't be too hard. I just count it out manually in view mode.
Does this help?
Comment