Skip to content

Commit

Permalink
tviigg.
Browse files Browse the repository at this point in the history
bench 3533707
  • Loading branch information
Vizvezdenec committed Jul 10, 2019
1 parent df22bf9 commit ef65340
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/evaluate.cpp
Expand Up @@ -708,11 +708,6 @@ namespace {
behind |= shift<Down>(behind);
behind |= shift<Down+Down>(behind);

if (more_than_one((FileABB | FileBBB) & pos.pieces(Us, PAWN) & shift<Down>(pos.pieces(Them, PAWN))))
safe &=~FileCBB;
if (more_than_one((FileGBB | FileHBB) & pos.pieces(Us, PAWN) & shift<Down>(pos.pieces(Them, PAWN))))
safe &=~FileFBB;

int bonus = popcount(safe) + popcount(behind & safe);
int weight = pos.count<ALL_PIECES>(Us) - 1;
Score score = make_score(bonus * weight * weight / 16, 0);
Expand Down
6 changes: 6 additions & 0 deletions src/search.cpp
Expand Up @@ -1036,6 +1036,12 @@ namespace {
// Prune moves with negative SEE (~10 Elo)
if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
continue;

if (type_of(movedPiece) == PAWN
&& relative_rank(us, from_sq(move)) == RANK_2
&& relative_rank(us, to_sq(move)) == RANK_3
&& !pos.see_ge(move))
continue;
}
else if ((!givesCheck || !extension)
&& !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
Expand Down

0 comments on commit ef65340

Please sign in to comment.