mirror of
https://github.com/OMGeeky/hcsalmon1-Chess-Engine-Test.git
synced 2026-02-23 15:49:51 +01:00
Update Algorithm explanation.txt
This commit is contained in:
@@ -201,7 +201,29 @@ will be stored.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
For pins it's a bit more complicated
|
For pins it's a bit more complicated. We first need INBETWEEN_BITBOARDS.
|
||||||
|
This is a multi dimensional array that simple has all of this bits inbetween every square combination.
|
||||||
|
Example:
|
||||||
|
|
||||||
|
INBETWEEN_BITBOARD[E1][E8] =
|
||||||
|
0 0 0 0 0 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 0 0 0 0
|
||||||
|
|
||||||
|
INBETWEEN_BITBOARD[E1][E8] =
|
||||||
|
0 0 0 0 0 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 1 0 0 0
|
||||||
|
0 0 0 0 0 0 0 0
|
||||||
|
|
||||||
int pinArray[8][2] =
|
int pinArray[8][2] =
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user