lynx-chess / Lynx

Chess Engine, written in C#
https://lichess.org/@/Lynx_BOT
MIT License
39 stars 3 forks source link

⚖️ Friendly and enemy king distance to passed pawn #955

Closed eduherminio closed 2 weeks ago

eduherminio commented 2 weeks ago

952 and #954 failed separatedly.

But together...

Tuned values

    public static readonly TaperedEvaluationTermByRank FriendlyKingDistanceToPassedPawnBonus =
    [
        Pack(0, 0),
        Pack(22, 45),
        Pack(5, 38),
        Pack(-4, 27),
        Pack(-3, 22),
        Pack(6, 20),
        Pack(11, 20),
        Pack(17, 12)
    ];

    public static readonly TaperedEvaluationTermByRank EnemyKingDistanceToPassedPawnPenalty =
    [
        Pack(0, 0),
        Pack(-51, -16),
        Pack(-16, 11),
        Pack(2, 24),
        Pack(8, 35),
        Pack(19, 45),
        Pack(18, 57),
        Pack(23, 62)
    ];
Score of Lynx-eval-passed-pawn-friendly-and-enemy-king-distance-3691-win-x64 vs Lynx 3689 - main: 3617 - 3372 - 5172  [0.510] 12161
...      Lynx-eval-passed-pawn-friendly-and-enemy-king-distance-3691-win-x64 playing White: 2626 - 899 - 2555  [0.642] 6080
...      Lynx-eval-passed-pawn-friendly-and-enemy-king-distance-3691-win-x64 playing Black: 991 - 2473 - 2617  [0.378] 6081
...      White vs Black: 5099 - 1890 - 5172  [0.632] 12161
Elo difference: 7.0 +/- 4.7, LOS: 99.8 %, DrawRatio: 42.5 %
SPRT: llr 2.89 (100.1%), lbound -2.25, ubound 2.89 - H1 was accepted