squareRank method

int squareRank(
  1. int square
)

Returns the rank that square is on.

Implementation

int squareRank(int square) => v - (square ~/ h);