X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=2fd8d47d9860efcea1ac414ca13ece6bf63b2e4c;hp=b8858527515736f06dac88baa1676167d42339f3;hb=ffd6685f791f7e980cbada45ff66243c7b1aff76;hpb=431c3ac485386cc10413fc8a3c7d338dcc71602d diff --git a/src/search.h b/src/search.h index b8858527..2fd8d47d 100644 --- a/src/search.h +++ b/src/search.h @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2013 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -41,6 +41,7 @@ struct Stack { SplitPoint* splitPoint; int ply; Move currentMove; + Move ttMove; Move excludedMove; Move killers[2]; Depth reduction; @@ -80,6 +81,7 @@ struct LimitsType { LimitsType() { std::memset(this, 0, sizeof(LimitsType)); } bool use_time_management() const { return !(mate | movetime | depth | nodes | infinite); } + std::vector searchmoves; int time[COLOR_NB], inc[COLOR_NB], movestogo, depth, nodes, movetime, mate, infinite, ponder; }; @@ -88,7 +90,7 @@ struct LimitsType { /// typically in an async fashion e.g. to stop the search by the GUI. struct SignalsType { - bool stopOnPonderhit, firstRootMove, stop, failedLowAtRoot; + bool stop, stopOnPonderhit, firstRootMove, failedLowAtRoot; }; typedef std::auto_ptr > StateStackPtr; @@ -98,11 +100,11 @@ extern LimitsType Limits; extern std::vector RootMoves; extern Position RootPos; extern Color RootColor; -extern Time::point SearchTime; +extern Time::point SearchTime, IterationTime; extern StateStackPtr SetupStates; extern void init(); -extern size_t perft(Position& pos, Depth depth); +extern uint64_t perft(Position& pos, Depth depth); extern void think(); } // namespace Search