Revert "Store moves sent with "position" UCI command"

This reverts commit 0d68b523a3.

After easy move semplification this machinery is not
needed anymore (because of we don't need to know if a
root move is a recapture)

No functional change.
This commit is contained in:
Marco Costalba
2013-03-04 09:28:21 +01:00
parent 45dba12c5b
commit db322e6a63
6 changed files with 7 additions and 16 deletions

View File

@@ -357,8 +357,8 @@ void ThreadPool::wait_for_think_finished() {
// start_thinking() wakes up the main thread sleeping in MainThread::idle_loop()
// so to start a new search, then returns immediately.
void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, const std::vector<Move>& searchMoves,
StateStackPtr& setupStates, MovesVectPtr& setupMoves) {
void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits,
const std::vector<Move>& searchMoves, StateStackPtr& states) {
wait_for_think_finished();
SearchTime = Time::now(); // As early as possible
@@ -368,8 +368,7 @@ void ThreadPool::start_thinking(const Position& pos, const LimitsType& limits, c
RootPos = pos;
Limits = limits;
SetupStates = setupStates; // Ownership transfer here
SetupMoves = setupMoves; // Ownership transfer here
SetupStates = states; // Ownership transfer here
RootMoves.clear();
for (MoveList<LEGAL> ml(pos); !ml.end(); ++ml)