- {
- SquareDistance[s1][s2] = std::max(file_distance(s1, s2), rank_distance(s1, s2));
- if (s1 != s2)
- DistanceRingsBB[s1][SquareDistance[s1][s2] - 1] |= s2;
- }
-
- int steps[][9] = { {}, { 7, 9 }, { 17, 15, 10, 6, -6, -10, -15, -17 },
- {}, {}, {}, { 9, 7, -7, -9, 8, 1, -1, -8 } };
+ SquareDistance[s1][s2] = std::max(distance<File>(s1, s2), distance<Rank>(s1, s2));