return;
}
cerr << "Failed to open book file " << fileName << endl;
- Application::exit_with_failure();
+ exit(EXIT_FAILURE);
}
if (!good())
{
cerr << "Failed to read book entry at index " << idx << endl;
- Application::exit_with_failure();
+ exit(EXIT_FAILURE);
}
}
uint64_t book_key(const Position& pos) {
uint64_t result = 0;
- Bitboard b = pos.pieces_of_color(WHITE) | pos.pieces_of_color(BLACK);
+ Bitboard b = pos.occupied_squares();
while (b)
{