Returns true if a and b are facing. Useful for Xiangqi's flying generals rule.
a
b
bool squaresOnSameFile(int a, int b) => file(a) == file(b);