Skip to content

Commit

Permalink
Merge pull request official-stockfish#383 from ianfab/horde_psqt
Browse files Browse the repository at this point in the history
Tweak piece-square tables for horde chess
  • Loading branch information
ddugovic authored Jul 8, 2017
2 parents efe0e89 + 783d48a commit 4ac9de8
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions src/psqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,63 +350,63 @@ const Score Bonus[VARIANT_NB][PIECE_TYPE_NB][RANK_NB][int(FILE_NB) / 2] = {
{
{ },
{ // Pawn
{ S(-32,-45), S(-30, -46), S(-23, -20), S( -7, -7) },
{ S(-27,-27), S( -6, -15), S( -8, -10), S( -7, -12) },
{ S(-59,-21), S( -5, -9), S(-11, 6), S( 4, 4) },
{ S( -3, -7), S( 18, 13), S( 5, 10), S( 32, 2) },
{ S( 11, 0), S( 15, 18), S( 11, 21), S( 30, 38) },
{ S( 21, 13), S( 12, 20), S( 32, 35), S( 36, 33) },
{ S( 21, 33), S( 32, 33), S( 44, 38), S( 50, 55) },
{ S( -24,-99), S(-40,-115), S(-46, -63), S( 69, -8) },
{ S( -48,-57), S( 40, -32), S(-24, -26), S( 41, -20) },
{ S(-120,-62), S( 25, -19), S(-18, -19), S( 15, 17) },
{ S( -30,-30), S( 42, 23), S( 0, 3), S( 76, 26) },
{ S( -14,-30), S( 50, 4), S( -9, 44), S( 33, 52) },
{ S( -1, 29), S(-11, 1), S( 30, 47), S( 28, 56) },
{ S( 1, 18), S( 33, 55), S( 63, 29), S( 31, 20) },
},
{ // Knight
{ S(-143, -97), S(-96,-82), S(-80,-46), S(-73,-14) },
{ S( -83, -69), S(-43,-55), S(-21,-17), S(-10, 9) },
{ S( -71, -50), S(-22,-39), S( 0, -8), S( 9, 28) },
{ S( -25, -41), S( 18,-25), S( 43, 7), S( 47, 38) },
{ S( -26, -46), S( 16,-25), S( 38, 2), S( 50, 41) },
{ S( -11, -55), S( 37,-38), S( 56, -8), S( 71, 27) },
{ S( -62, -64), S(-17,-50), S( 5,-24), S( 14, 13) },
{ S(-195,-110), S(-66,-90), S(-42,-50), S(-29,-13) }
{ S(-131, -94), S(-95, -77), S(-41,-26), S(-66, -8) },
{ S(-108, -77), S(-42, -61), S(-11,-58), S( 13, 10) },
{ S( -70, -59), S(-10, -40), S(-15,-19), S( 9, 23) },
{ S( -43, -38), S( 9, -60), S( 54, 20), S( 55, 31) },
{ S( -31, -43), S( -2, -12), S( 21, -5), S( 53, 22) },
{ S( 6, -60), S( 72, -37), S( 34,-11), S( 77, 7) },
{ S( -53, -68), S(-18, -50), S( 11,-46), S( 11, 2) },
{ S(-204,-131), S(-50,-112), S(-29,-47), S( -6,-19) }
},
{ // Bishop
{ S(-54,-68), S(-23,-40), S(-35,-46), S(-44,-28) },
{ S(-30,-43), S( 10,-17), S( 2,-23), S( -9, -5) },
{ S(-19,-32), S( 17, -9), S( 11,-13), S( 1, 8) },
{ S(-21,-36), S( 18,-13), S( 11,-15), S( 0, 7) },
{ S(-21,-36), S( 14,-14), S( 6,-17), S( -1, 3) },
{ S(-27,-35), S( 6,-13), S( 2,-10), S( -8, 1) },
{ S(-33,-44), S( 7,-21), S( -4,-22), S(-12, -4) },
{ S(-45,-65), S(-21,-42), S(-29,-46), S(-39,-27) }
{ S(-53,-49), S(-24,-54), S( -2,-46), S(-25,-14) },
{ S(-41,-61), S( 7,-12), S( 5, -9), S(-38,-21) },
{ S(-45,-35), S( -3, -1), S( 2, 6), S(-19, 14) },
{ S(-40,-51), S( 31, -9), S( 51, 4), S( 7,-19) },
{ S( 2,-46), S( 5, -1), S( 4,-43), S( 11, 19) },
{ S( -9,-61), S(-10, -7), S(-12,-17), S( -6, 11) },
{ S(-35,-26), S( 28,-41), S( 16,-39), S( -8, -5) },
{ S(-53,-67), S(-31,-53), S(-29,-67), S(-14, 4) }
},
{ // Rook
{ S(-25, 0), S(-16, 0), S(-16, 0), S(-9, 0) },
{ S(-21, 0), S( -8, 0), S( -3, 0), S( 0, 0) },
{ S(-21, 0), S( -9, 0), S( -4, 0), S( 2, 0) },
{ S(-22, 0), S( -6, 0), S( -1, 0), S( 2, 0) },
{ S(-22, 0), S( -7, 0), S( 0, 0), S( 1, 0) },
{ S(-21, 0), S( -7, 0), S( 0, 0), S( 2, 0) },
{ S(-12, 0), S( 4, 0), S( 8, 0), S(12, 0) },
{ S(-23, 0), S(-15, 0), S(-11, 0), S(-5, 0) }
{ S(-23, 20), S(-46, 23), S(-41,-16), S(-32,-19) },
{ S(-52, 21), S(-32, -1), S(-21,-12), S( 11, 14) },
{ S( 11, 15), S(-12,-13), S( -8,-16), S( -8,-25) },
{ S( 18, 48), S(-21, -2), S( 30,-33), S(-21, 6) },
{ S( -3, 32), S( -1,-18), S(-11, -2), S( 3,-29) },
{ S( 0, 0), S(-14,-17), S( -4,-19), S( 6,-15) },
{ S( 2,-19), S(-27, -1), S(-31, 21), S( 30, -5) },
{ S( 0,-33), S(-38, 16), S(-27,-24), S( -2, 20) }
},
{ // Queen
{ S( 0,-70), S(-3,-57), S(-4,-41), S(-1,-29) },
{ S(-4,-58), S( 6,-30), S( 9,-21), S( 8, -4) },
{ S(-2,-39), S( 6,-17), S( 9, -7), S( 9, 5) },
{ S(-1,-29), S( 8, -5), S(10, 9), S( 7, 17) },
{ S(-3,-27), S( 9, -5), S( 8, 10), S( 7, 23) },
{ S(-2,-40), S( 6,-16), S( 8,-11), S(10, 3) },
{ S(-2,-54), S( 7,-30), S( 7,-21), S( 6, -7) },
{ S(-1,-75), S(-4,-54), S(-1,-44), S( 0,-30) }
{ S( 5,-55), S( -1,-65), S(-19,-40), S( 6,-26) },
{ S( 24,-58), S( 11, -9), S( 9,-28), S(-26,-17) },
{ S( 12,-45), S(-21,-15), S( -4, 19), S( 0, 4) },
{ S( 17,-54), S( 18, 4), S( 22,-11), S( -5, 10) },
{ S( 17, 1), S( 28,-16), S(-12, 5), S( 15, 10) },
{ S(-16,-21), S( -8,-20), S( 5, -9), S( 42, 13) },
{ S(-10,-29), S( 12,-35), S( 3,-30), S(-25, -6) },
{ S( 14,-31), S(-10,-44), S( 11,-63), S( -7,-21) }
},
{ // King
{ S(205, 67), S(403, -6), S(394,115), S(518,102) },
{ S(214, 63), S(308,116), S(333,169), S(245,255) },
{ S(277, -2), S(261,141), S(286, 69), S(189,207) },
{ S(280,164), S(298,233), S(126,266), S(-45, 55) },
{ S(134, 89), S(255,225), S(152,245), S( 28,-67) },
{ S(212,156), S(191,171), S( 59,160), S(153,248) },
{ S( 75,-25), S(203,134), S(168,141), S(-76,133) },
{ S(137, 49), S(187, 1), S( 60, 26), S(-25, 56) }
{ S(156, 72), S(381, 37), S(398, 90), S(488,103) },
{ S(226, 36), S(305,143), S(327,177), S(267,234) },
{ S(285, 0), S(266,121), S(254, 61), S(178,172) },
{ S(230,173), S(308,233), S(158,230), S(-44, 68) },
{ S(146,106), S(268,186), S(156,236), S( 11,-67) },
{ S(211,142), S(202,166), S( 86,165), S(170,275) },
{ S( 41,-24), S(205,103), S(216,136), S(-54,123) },
{ S(105, 58), S(207,-19), S( 75, 59), S(-26, 57) }
}
},
#endif
Expand Down

0 comments on commit 4ac9de8

Please sign in to comment.