search: StateInfo st 前移到开头声明
This commit is contained in:
parent
efd6b44bdb
commit
415dafd47d
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue