From 24c1bb97fee4ae79531c35791f5563e8a179d300 Mon Sep 17 00:00:00 2001 From: Coding with Tom <146443103+hcsalmon1@users.noreply.github.com> Date: Thu, 30 Jan 2025 01:36:36 +0000 Subject: [PATCH] Update Algorithm explanation.txt --- Algorithm explanation.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithm explanation.txt b/Algorithm explanation.txt index a938ad8..8c8e400 100644 --- a/Algorithm explanation.txt +++ b/Algorithm explanation.txt @@ -267,7 +267,7 @@ We create a pin array. The first index is the square being pinned. The second in const int pinned_square = (DEBRUIJN64[MAGIC * (temp_pin_bitboard ^ (temp_pin_bitboard - 1)) >> 58]); //get the square temp_pin_bitboard &= temp_pin_bitboard - 1; //remove one bit from bitboard - if (temp_pin_bitboard == 0) //if the bitboard is not empty then that piece was pinned. + if (temp_pin_bitboard == 0) //if the bitboard is now empty then that piece was pinned. { pinArray[pinNumber][PINNED_SQUARE_INDEX] = pinned_square; //add the pinned square pinArray[pinNumber][PINNING_PIECE_INDEX] = piece_square; //add the pinning piece