mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Skip draw by repetition check in qsearch
Cut in half the time spent in pos.draw() that accounts for a whopping 1% of total time ! Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -228,7 +228,7 @@ public:
|
||||
|
||||
// Game termination checks
|
||||
bool is_mate() const;
|
||||
bool is_draw() const;
|
||||
template<bool SkipRepetition> bool is_draw() const;
|
||||
|
||||
// Number of plies from starting position
|
||||
int startpos_ply_counter() const;
|
||||
|
||||
Reference in New Issue
Block a user