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:
Marco Costalba
2012-10-26 11:08:06 +02:00
parent 71f37ac1aa
commit c594b989c0
3 changed files with 14 additions and 26 deletions

View File

@@ -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;