search: StateInfo st 前移到开头声明

This commit is contained in:
Calcitem 2020-09-23 00:14:55 +08:00
parent efd6b44bdb
commit 415dafd47d
1 changed files with 3 additions and 2 deletions

View File

@ -684,6 +684,8 @@ Value search(Position *pos, Stack<Position> &ss, Depth depth, Depth originDepth,
Value value; Value value;
Value bestValue = -VALUE_INFINITE; Value bestValue = -VALUE_INFINITE;
StateInfo st; // TODO
Depth epsilon; Depth epsilon;
#ifdef TT_MOVE_ENABLE #ifdef TT_MOVE_ENABLE
@ -817,8 +819,7 @@ Value search(Position *pos, Stack<Position> &ss, Depth depth, Depth originDepth,
for (int i = 0; i < moveCount; i++) { for (int i = 0; i < moveCount; i++) {
ss.push(*(pos)); ss.push(*(pos));
Color before = pos->sideToMove; Color before = pos->sideToMove;
Move move = mp.moves[i].move; Move move = mp.moves[i].move;
StateInfo st; // TODO
pos->do_move(move, st); pos->do_move(move, st);
Color after = pos->sideToMove; Color after = pos->sideToMove;