mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 00:26:33 +08:00
Use occupied_squares() in book_key()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -528,7 +528,7 @@ namespace {
|
|||||||
uint64_t book_key(const Position& pos) {
|
uint64_t book_key(const Position& pos) {
|
||||||
|
|
||||||
uint64_t result = 0;
|
uint64_t result = 0;
|
||||||
Bitboard b = pos.pieces_of_color(WHITE) | pos.pieces_of_color(BLACK);
|
Bitboard b = pos.occupied_squares();
|
||||||
|
|
||||||
while (b)
|
while (b)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user