mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
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:
committed by
Joona Kiiski
parent
77342126d8
commit
fa1e3427bd
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user