mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Retire KingDanger array
Rescales the king danger variables in evaluate_king() to suppress the KingDanger[] array. This avoids the cost of the memory accesses to the array and simplifies the non-linear transformation used. Full credits to "hxim" for the seminal idea and implementation, see pull request #786. https://github.com/official-stockfish/Stockfish/pull/786 Passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 9649 W: 1829 L: 1689 D: 6131 Passed LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 53494 W: 7254 L: 7178 D: 39062 Bench: 6116200
This commit is contained in:
committed by
Marco Costalba
parent
5c58d1f5cb
commit
01f2466f6e
@@ -31,7 +31,6 @@ namespace Eval {
|
||||
|
||||
const Value Tempo = Value(20); // Must be visible to search
|
||||
|
||||
void init();
|
||||
std::string trace(const Position& pos);
|
||||
|
||||
template<bool DoTrace = false>
|
||||
|
||||
Reference in New Issue
Block a user