Skip to content

Commit f774266

Browse files
committed
Retire asymmThreshold
Verified with 40K games at long TC does not regress: ELO: 1.74 +-1.9 (95%) LOS: 96.2% Total: 39624 W: 6402 L: 6203 D: 27019 bench: 7762310
1 parent 59a9bc9 commit f774266

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

src/position.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ int Position::see_sign(Move m) const {
10291029
return see(m);
10301030
}
10311031

1032-
int Position::see(Move m, int asymmThreshold) const {
1032+
int Position::see(Move m) const {
10331033

10341034
Square from, to;
10351035
Bitboard occupied, attackers, stmAttackers;
@@ -1096,15 +1096,6 @@ int Position::see(Move m, int asymmThreshold) const {
10961096

10971097
} while (stmAttackers);
10981098

1099-
// If we are doing asymmetric SEE evaluation and the same side does the first
1100-
// and the last capture, it loses a tempo and gain must be at least worth
1101-
// 'asymmThreshold', otherwise we replace the score with a very low value,
1102-
// before negamaxing.
1103-
if (asymmThreshold)
1104-
for (int i = 0; i < slIndex; i += 2)
1105-
if (swapList[i] < asymmThreshold)
1106-
swapList[i] = - QueenValueMg * 16;
1107-
11081099
// Having built the swap list, we negamax through it to find the best
11091100
// achievable score from the point of view of the side to move.
11101101
while (--slIndex)

src/position.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Position {
141141
void undo_null_move();
142142

143143
// Static exchange evaluation
144-
int see(Move m, int asymmThreshold = 0) const;
144+
int see(Move m) const;
145145
int see_sign(Move m) const;
146146

147147
// Accessing hash keys

src/search.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,10 +1220,7 @@ namespace {
12201220
continue;
12211221
}
12221222

1223-
// Prune moves with negative or equal SEE and also moves with positive
1224-
// SEE where capturing piece loses a tempo and SEE < beta - futilityBase.
1225-
if ( futilityBase < beta
1226-
&& pos.see(move, beta - futilityBase) <= 0)
1223+
if (futilityBase < beta && pos.see(move) <= 0)
12271224
{
12281225
bestValue = std::max(bestValue, futilityBase);
12291226
continue;

0 commit comments

Comments
 (0)