DroidFish: Update stockfish to version 7Beta2.

This commit is contained in:
Peter Osterlund
2015-12-31 01:59:48 +01:00
parent 679e3833b1
commit afcb7d2509
5 changed files with 87 additions and 86 deletions

View File

@@ -39,7 +39,7 @@ namespace {
70, 50, 30, 20, 20, 30, 50, 70,
80, 60, 40, 30, 30, 40, 60, 80,
90, 70, 60, 50, 50, 60, 70, 90,
100, 90, 80, 70, 70, 80, 90, 100,
100, 90, 80, 70, 70, 80, 90, 100
};
// Table used to drive the king towards a corner square of the
@@ -163,7 +163,7 @@ Value Endgame<KXK>::operator()(const Position& pos) const {
||(pos.count<BISHOP>(strongSide) && pos.count<KNIGHT>(strongSide))
||(pos.count<BISHOP>(strongSide) > 1 && opposite_colors(pos.squares<BISHOP>(strongSide)[0],
pos.squares<BISHOP>(strongSide)[1])))
result += VALUE_KNOWN_WIN;
result = std::min(result + VALUE_KNOWN_WIN, VALUE_MATE_IN_MAX_PLY - 1);
return strongSide == pos.side_to_move() ? result : -result;
}