Skip to content
Permalink
Browse files

Passed Rank tweak. Bench: 3132928

  • Loading branch information...
SFisGOD committed Mar 7, 2019
1 parent 1aab5b4 commit 828312f358c83461c878d91ab3fc29b2690707b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
@@ -123,7 +123,7 @@ namespace {

// PassedRank[Rank] contains a bonus according to the rank of a passed pawn
constexpr Score PassedRank[RANK_NB] = {
S(0, 0), S(5, 18), S(12, 23), S(10, 31), S(57, 62), S(163, 167), S(271, 250)
S(0, 0), S(2, 16), S(9, 25), S(7, 34), S(51, 65), S(158, 162), S(277, 252)
};

// PassedFile[File] contains a bonus according to the file of a passed pawn

2 comments on commit 828312f

@protonspring

This comment has been minimized.

Copy link

protonspring replied Mar 7, 2019

Any idea why RANK_4 is lower than RANK_3 ? (master is this way as well)

@Alayan-stk-2

This comment has been minimized.

Copy link

Alayan-stk-2 replied Mar 7, 2019

It's lower at mg but higher at eg. In most positions, it will be a weighted average of mg and eg.

It may be that giving a more important boost in eg while having a smaller one before requires to have an abnormally low mg value.

That's a limitation of the mg/eg linear scaling.

Please sign in to comment.
You can’t perform that action at this time.