mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
Compare commits
1 Commits
sf_1.2
...
sf_1.2_opt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc3c1dc25a |
@@ -1241,14 +1241,14 @@ namespace {
|
||||
else if ( !value_is_mate(beta)
|
||||
&& approximateEval < beta - RazorMargin
|
||||
&& depth < RazorDepth
|
||||
&& (RazorAtDepthOne || depth >= 2*OnePly)
|
||||
&& (RazorAtDepthOne || depth > OnePly)
|
||||
&& ttMove == MOVE_NONE
|
||||
&& !pos.has_pawn_on_7th(pos.side_to_move()))
|
||||
{
|
||||
Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
|
||||
if ( (v < beta - RazorMargin - RazorMargin / 4)
|
||||
|| (depth < 3*OnePly && v < beta - RazorMargin)
|
||||
|| (depth < 2*OnePly && v < beta - RazorMargin / 2))
|
||||
|| (depth <= 2*OnePly && v < beta - RazorMargin)
|
||||
|| (depth <= OnePly && v < beta - RazorMargin / 2))
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user