Beispiel #1
0
 private void SetBlackPawnCapturePatterns()
 {
     for (int i = 0; i < 64; i++)
     {
         var pattern = Pawn.GetBlackCapturePattern(i);
         Squares[i].BlackPawnCapturePatterns = new Square[pattern.Length];
         for (int j = 0; j < pattern.Length; j++)
         {
             Squares[i].BlackPawnCapturePatterns[j] = Squares[pattern[j]];
         }
     }
 }