X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmovepick.h;h=fc409a02464b2b4cac088dde577472152c3e8b19;hb=f2681232e516da164196d7238482729da038ae1e;hp=0ad72933001384edace7698fdd4bb3a7d65f0001;hpb=bd59560480cc4f43a4ba75dc827ba27bcebb92dd;p=stockfish diff --git a/src/movepick.h b/src/movepick.h index 0ad72933..fc409a02 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -109,10 +109,10 @@ typedef Stats ContinuationHi /// when MOVE_NONE is returned. In order to improve the efficiency of the alpha /// beta algorithm, MovePicker attempts to return the moves which are most likely /// to get a cut-off first. +class MovePicker { -enum PickType { NEXT, BEST_SCORE }; + enum PickType { Next, Best }; -class MovePicker { public: MovePicker(const MovePicker&) = delete; MovePicker& operator=(const MovePicker&) = delete; @@ -122,7 +122,7 @@ public: Move next_move(bool skipQuiets = false); private: - template Move select_move(Pred); + template Move select(Pred); template void score(); ExtMove* begin() { return cur; } ExtMove* end() { return endMoves; } @@ -131,8 +131,8 @@ private: const ButterflyHistory* mainHistory; const CapturePieceToHistory* captureHistory; const PieceToHistory** contHistory; - Move ttMove, refutations[3]; - ExtMove *cur, *endMoves, *endBadCaptures; + Move ttMove; + ExtMove refutations[3], *cur, *endMoves, *endBadCaptures; int stage; Move move; Square recaptureSquare;