移除 AIAlgorithm 中空着相关代码

This commit is contained in:
Calcitem 2020-07-11 18:13:40 +08:00
parent 44098b3e14
commit 11916ae98b
2 changed files with 0 additions and 36 deletions

View File

@ -415,29 +415,6 @@ Value AIAlgorithm::search(Depth depth, Value alpha, Value beta)
bestValue -= depth;
}
#ifdef NULL_MOVE
if (depth % 2 == 1)
{
// TODO: WIP
st->generateNullMove(moves);
st->generateChildren(moves, this, node);
do_null_move();
int moveCount = st->generate(moves);
if (moveCount)
{
st->generateChildren(moves, this, node->children[0]);
value = -search(depth - 1 - 2, -beta, -beta + 1, node->children[0]);
undo_null_move();
if (value >= beta) {
bestValue = beta;
return beta;
}
}
}
#endif
#ifdef TRANSPOSITION_TABLE_ENABLE
TranspositionTable::save(bestValue,
depth,
@ -583,16 +560,6 @@ void AIAlgorithm::undo_move()
positionStack.pop();
}
void AIAlgorithm::do_null_move()
{
pos->do_null_move();
}
void AIAlgorithm::undo_null_move()
{
pos->undo_null_move();
}
#ifdef ALPHABETA_AI
const char* AIAlgorithm::nextMove()
{

View File

@ -168,9 +168,6 @@ public:
void undo_move();
void do_null_move();
void undo_null_move();
#ifdef TRANSPOSITION_TABLE_ENABLE
void clearTT();
#endif