private void SetWhitePawnCapturePatterns() { for (int i = 0; i < 64; i++) { var pattern = Pawn.GetWhiteCapturePattern(i); Squares[i].WhitePawnCapturePatterns = new Square[pattern.Length]; for (int j = 0; j < pattern.Length; j++) { Squares[i].WhitePawnCapturePatterns[j] = Squares[pattern[j]]; } } }