mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 18:17:02 +08:00
Drop KILLER_MAX. Hardcode to 2 instead.
KILLER_MAX in search.h is quite pointless, because we already hardcode this to 2 in MovePicker anyway. By hard-coding this to 2 we can keep code simpler. No functional change Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
a6d13428f6
commit
66c5835080
@@ -36,7 +36,6 @@
|
||||
|
||||
const int PLY_MAX = 100;
|
||||
const int PLY_MAX_PLUS_2 = 102;
|
||||
const int KILLER_MAX = 2;
|
||||
|
||||
|
||||
////
|
||||
@@ -55,7 +54,7 @@ struct SearchStack {
|
||||
Move threatMove;
|
||||
Move excludedMove;
|
||||
Move bestMove;
|
||||
Move killers[KILLER_MAX];
|
||||
Move killers[2];
|
||||
Depth reduction;
|
||||
Value eval;
|
||||
bool skipNullMove;
|
||||
|
||||
Reference in New Issue
Block a user