rank static method

int rank(
  1. int i
)

Get rank from given square index.

Implementation

static int rank(int i) {
  return i >> 4;
}