mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Store node evaluation in SearchStack
This info will be used by future patches. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
e817a55bc6
commit
007285be2d
2 changed files with 4 additions and 0 deletions
|
@ -652,6 +652,7 @@ void SearchStack::init(int ply) {
|
||||||
pv[ply] = pv[ply + 1] = MOVE_NONE;
|
pv[ply] = pv[ply + 1] = MOVE_NONE;
|
||||||
currentMove = threatMove = MOVE_NONE;
|
currentMove = threatMove = MOVE_NONE;
|
||||||
reduction = Depth(0);
|
reduction = Depth(0);
|
||||||
|
eval = VALUE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchStack::initKillers() {
|
void SearchStack::initKillers() {
|
||||||
|
@ -1391,6 +1392,7 @@ namespace {
|
||||||
const int FutilityValueMargin = 112 * bitScanReverse32(int(depth) * int(depth) / 2);
|
const int FutilityValueMargin = 112 * bitScanReverse32(int(depth) * int(depth) / 2);
|
||||||
|
|
||||||
// Enhance score accuracy with TT value if possible
|
// Enhance score accuracy with TT value if possible
|
||||||
|
ss[ply].eval = staticValue;
|
||||||
futilityValue = staticValue + FutilityValueMargin;
|
futilityValue = staticValue + FutilityValueMargin;
|
||||||
staticValue = refine_eval(tte, staticValue, ply);
|
staticValue = refine_eval(tte, staticValue, ply);
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include "depth.h"
|
#include "depth.h"
|
||||||
#include "move.h"
|
#include "move.h"
|
||||||
|
#include "value.h"
|
||||||
|
|
||||||
|
|
||||||
////
|
////
|
||||||
|
@ -54,6 +55,7 @@ struct SearchStack {
|
||||||
Move threatMove;
|
Move threatMove;
|
||||||
Move killers[KILLER_MAX];
|
Move killers[KILLER_MAX];
|
||||||
Depth reduction;
|
Depth reduction;
|
||||||
|
Value eval;
|
||||||
|
|
||||||
void init(int ply);
|
void init(int ply);
|
||||||
void initKillers();
|
void initKillers();
|
||||||
|
|
Loading…
Add table
Reference in a new issue