Skip to content

Commit 7a61368

Browse files
Vizvezdenecmcostalba
authored andcommitted
Tweak of knight PSQT and mobility bonuses
STC LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 16906 W: 3745 L: 3516 D: 9645 http://tests.stockfishchess.org/tests/view/5bd306a40ebc595e0ae1e144 LTC LLR: 2.96 (-2.94,2.94) [0.00,4.00] Total: 62779 W: 10249 L: 9901 D: 42629 http://tests.stockfishchess.org/tests/view/5bd3188f0ebc595e0ae1e296 Bench 3166402
1 parent 081af90 commit 7a61368

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/evaluate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ namespace {
102102
// MobilityBonus[PieceType-2][attacked] contains bonuses for middle and end game,
103103
// indexed by piece type and number of attacked squares in the mobility area.
104104
constexpr Score MobilityBonus[][32] = {
105-
{ S(-75,-76), S(-57,-54), S( -9,-28), S( -2,-10), S( 6, 5), S( 14, 12), // Knights
106-
S( 22, 26), S( 29, 29), S( 36, 29) },
105+
{ S(-62,-81), S(-53,-56), S(-12,-30), S( -4,-14), S( 3, 8), S( 13, 15), // Knights
106+
S( 22, 23), S( 28, 27), S( 33, 33) },
107107
{ S(-48,-59), S(-20,-23), S( 16, -3), S( 26, 13), S( 38, 24), S( 51, 42), // Bishops
108108
S( 55, 54), S( 63, 57), S( 63, 65), S( 68, 73), S( 81, 78), S( 81, 86),
109109
S( 91, 88), S( 98, 97) },

src/psqt.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ constexpr Score Bonus[][RANK_NB][int(FILE_NB) / 2] = {
4747
{ S( -2, 1), S( 20,-12), S(-10, 6), S(-2,25) }
4848
},
4949
{ // Knight
50-
{ S(-161,-105), S(-96,-82), S(-80,-46), S(-73,-14) },
51-
{ S( -83, -69), S(-43,-54), S(-21,-17), S(-10, 9) },
52-
{ S( -71, -50), S(-22,-39), S( 0, -7), S( 9, 28) },
53-
{ S( -25, -41), S( 18,-25), S( 43, 6), S( 47, 38) },
54-
{ S( -26, -46), S( 16,-25), S( 38, 3), S( 50, 40) },
55-
{ S( -11, -54), S( 37,-38), S( 56, -7), S( 65, 27) },
56-
{ S( -63, -65), S(-19,-50), S( 5,-24), S( 14, 13) },
57-
{ S(-195,-109), S(-67,-89), S(-42,-50), S(-29,-13) }
50+
{ S(-169,-105), S(-96,-74), S(-80,-46), S(-79,-18) },
51+
{ S( -79, -70), S(-39,-56), S(-24,-15), S( -9, 6) },
52+
{ S( -64, -38), S(-20,-33), S( 4, -5), S( 19, 27) },
53+
{ S( -28, -36), S( 5, 0), S( 41, 13), S( 47, 34) },
54+
{ S( -29, -41), S( 13,-20), S( 42, 4), S( 52, 35) },
55+
{ S( -11, -51), S( 28,-38), S( 63,-17), S( 55, 19) },
56+
{ S( -67, -64), S(-21,-45), S( 6,-37), S( 37, 16) },
57+
{ S(-200, -98), S(-80,-89), S(-53,-53), S(-32,-16) }
5858
},
5959
{ // Bishop
6060
{ S(-49,-58), S(- 7,-31), S(-10,-37), S(-34,-19) },

0 commit comments

Comments
 (0)