along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <cassert>
+#include "thread.h"
-#include <algorithm> // For std::count
+#include <algorithm>
+#include <cassert>
+#include <cstdlib>
+#include <deque>
+#include <initializer_list>
+#include <map>
+#include <memory>
+#include <utility>
+
+#include "evaluate.h"
+#include "misc.h"
#include "movegen.h"
#include "search.h"
-#include "thread.h"
-#include "uci.h"
#include "syzygy/tbprobe.h"
#include "tt.h"
+#include "uci.h"
namespace Stockfish {
main()->bestPreviousScore = VALUE_INFINITE;
main()->bestPreviousAverageScore = VALUE_INFINITE;
main()->previousTimeReduction = 1.0;
- main()->complexity = 1.0;
}
th->rootMoves = rootMoves;
th->rootPos.set(pos.fen(), pos.is_chess960(), &th->rootState, th);
th->rootState = setupStates->back();
+ th->rootSimpleEval = Eval::simple_eval(pos, pos.side_to_move());
}
main()->start_searching();