mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Extend full 3 fold detection to PvNodes
And restore old behaviour of not returning from a RootNode without updating RootMoves[]. Also renamed is_draw() template parameters to reflect a 'positive' logic (Check instead of Skip) that is easier to follow. New bench: 5312693
This commit is contained in:
@@ -183,7 +183,7 @@ public:
|
||||
Thread* this_thread() const;
|
||||
int64_t nodes_searched() const;
|
||||
void set_nodes_searched(int64_t n);
|
||||
template<bool SkipRepetition, bool SkipThreeFoldCheck> bool is_draw() const;
|
||||
template<bool CheckRepetition, bool CheckThreeFold> bool is_draw() const;
|
||||
|
||||
// Position consistency check, for debugging
|
||||
bool pos_is_ok(int* failedStep = NULL) const;
|
||||
|
||||
Reference in New Issue
Block a user