mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Better clarify how pieceList[] and index[] work
Rearrange the code a bit to be more self-documenting. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -342,7 +342,7 @@ private:
|
||||
|
||||
// Piece lists
|
||||
Square pieceList[2][8][16]; // [color][pieceType][index]
|
||||
int index[64];
|
||||
int index[64]; // [square]
|
||||
|
||||
// Other info
|
||||
Square kingSquare[2];
|
||||
|
||||
Reference in New Issue
Block a user