X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmovepick.h;h=c4676ca4f6e9f5be4b50be4462f92a3286ee9412;hb=62c0dc5dea4b3398afbf2bc015e91fdaedfdb81e;hp=d49ea3b6a2a995ba0d2a9947265a5f766386293e;hpb=13a73f67c018e58b2fd46f886c45ef2b75188c8e;p=stockfish diff --git a/src/movepick.h b/src/movepick.h index d49ea3b6..c4676ca4 100644 --- a/src/movepick.h +++ b/src/movepick.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 @@ -69,7 +69,7 @@ private: typedef Stats< true, Value> GainsStats; typedef Stats HistoryStats; -typedef Stats > CountermovesStats; +typedef Stats > MovesStats; /// MovePicker class is used to pick one pseudo legal move at a time from the @@ -86,21 +86,22 @@ class MovePicker { public: MovePicker(const Position&, Move, Depth, const HistoryStats&, Square); MovePicker(const Position&, Move, const HistoryStats&, PieceType); - MovePicker(const Position&, Move, Depth, const HistoryStats&, Move*, Search::Stack*); + MovePicker(const Position&, Move, Depth, const HistoryStats&, Move*, Move*, Search::Stack*); template Move next_move(); private: template void score(); - void generate_next(); + void generate_next_stage(); const Position& pos; const HistoryStats& history; Search::Stack* ss; Move* countermoves; + Move* followupmoves; Depth depth; Move ttMove; - ExtMove killers[4]; + ExtMove killers[6]; Square recaptureSquare; int captureThreshold, stage; ExtMove *cur, *end, *endQuiets, *endBadCaptures;