firstRank method

int firstRank(
  1. int colour
)

Get the first rank for player colour.

Implementation

int firstRank(int colour) => colour == Bishop.white ? Bishop.rank1 : maxRank;