예제 #1
0
 public static BitBoard BitBoardRank(this Square sq) => RankBB[sq.Rank().AsInt()];
예제 #2
0
 public static bool IsValidEp(this Square s) => s.Rank() == ERank.Rank3 || s.Rank() == ERank.Rank6;
예제 #3
0
 public static char RankChar(this Square s) => s.Rank().RankChar();
예제 #4
0
 public static Rank RelativeRank(this Square s, Player color) => s.Rank().RelativeRank(color);