fileDiff method

int fileDiff(
  1. int from,
  2. int to
)

Calculates the difference in files between two squares.

Implementation

int fileDiff(int from, int to) => squareFile(to) - squareFile(from);