Document mate distance pruning

It is simple but somewhat tricky code that deserves
a bit of documentation. A bit of renaming while there.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-12-27 16:01:33 +01:00
parent 07f3f0384a
commit 750ac9ac50
2 changed files with 12 additions and 7 deletions

View File

@@ -391,11 +391,11 @@ extern const Value PieceValueMidgame[17];
extern const Value PieceValueEndgame[17];
extern int SquareDistance[64][64];
inline Value value_mate_in(int ply) {
inline Value mate_in(int ply) {
return VALUE_MATE - ply;
}
inline Value value_mated_in(int ply) {
inline Value mated_in(int ply) {
return -VALUE_MATE + ply;
}