Example #1
0
 public static Rank RelativeRank(this Rank rank, Player color) => rank.ToInt() ^ (color.Side * 7);
Example #2
0
 public static char RankChar(this Rank r) => RankChars[r.ToInt()];
Example #3
0
 public static string RankString(this Rank r) => RankStrings[r.ToInt()];
Example #4
0
 public static BitBoard BitBoardRank(this Rank r) => RankBB[r.ToInt()];