Simplify pos_is_ok()

Now we don't need anymore the tricky pointer to
show the failed test. Added some few tests too.

Also small rename in see_ge() while there.

No functional change

Closes #1151
This commit is contained in:
Marco Costalba
2017-06-24 12:36:07 +02:00
committed by Joona Kiiski
parent 77342126d8
commit fa1e3427bd
2 changed files with 68 additions and 75 deletions

View File

@@ -138,7 +138,7 @@ public:
void increment_tbHits();
// Static Exchange Evaluation
bool see_ge(Move m, Value value = VALUE_ZERO) const;
bool see_ge(Move m, Value threshold = VALUE_ZERO) const;
// Accessing hash keys
Key key() const;
@@ -161,7 +161,7 @@ public:
Value non_pawn_material() const;
// Position consistency check, for debugging
bool pos_is_ok(int* failedStep = nullptr) const;
bool pos_is_ok() const;
void flip();
private: