I used the position but somewhat further in the variation to do some testing of two different versions of Glaurung Mjolnir. More to get a feel for the differences than exact testing.
The second version of Glaurung Mjolnir only differs in the place where the King safety is calculated, it was moved to after the calculation of Pawn storms (those are calculated mainly if there is opposite castling I believe) and more importantly even after calculating passed pawns. The place has become potentially important because now King Safety has become a modifying factor of that part of the the total midgame evaluation that is calculated before it, just as the eval has become part of King Safety.
There is something to be said to just move King Safety totally to the end of the evaluation routine then but it is worth some experimenting. For instance now I think that passed pawn eval in the new place should/could go up just a little because a certain portion of it will now be subtracted in King Safety. But mainly the objective was to see if I could detect some differences overall.
This is a position far in the endgame so King Safety should play only a neglible role, but still it is good to check this. Positional effects are probably just about the most important effect that one should investigate for any new introduced term. In my opinion anyway,
I think I prefer the second version because it gets a nice score in later iterations, but the choice is not so easy and any differences could mainly be noise so far in the endgame. The position was taken 11 moves after the first position so it should be easier to see a win:
After the possible
[FEN "8/6k1/p3b1p1/Pp1p3p/1P1P1P1P/4N1K1/8/8 w - -"]
1. f5 gxf5 2. Ng2 Kf6 3. Nf4 Bf7
4. Nd3 Be6 5. Nc5 Bc8 6. Kf4 Ke7 7. Ke5 f4 8. Kxf4 Kf6
9. Ke3 Ke7 10. Kf3 Kf7 *
[ENGINE]
Name=Glaurung 080422 Mjolnir 003 (Build2)
Author=Tord Romstad
Filename=D:\Shredder 9 UCI\Engines\Glaurung 080422 Mjolnir\Glaurung 080422 Mjolnir.exe
[OPTIONS]
Pawn Structure (Endgame)=110
Passed Pawns=120
Single Reply Extension (PV nodes)=2
Single Reply Extension (non-PV nodes)=2
Threat Depth=6
Selectivity=8
Razoring Margin=350
[D]2b5/5k2/p7/PpNp3p/1P1P3P/5K2/8/8 w - -
Engine: Glaurung 080422 Mjolnir 003
Build 2 (256 MB, Athlon 2009 MHz)
by Tord Romstad
11.00 0:00 +0.25 11.Kf2 Kf6 12.Nd3 Kf5 13.Kf3 Be6
14.Ne5 Kf6 15.Ke3 Bf5 16.Kf4 (69.038) 220
12.00 0:00 +0.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.640.000
Build 1 with the same UCI optional parameters, but earlier calculation of King Safety, build 1 was faster reaching depths around 34 but did not reach such a high score, and in the eval it stayed with 13.Nc5 Bc8 14.Ke3 where I think Build 2 may have found some better moves, judging by the eval, also in another version that plays 14.Nf4, here even 13.Nf4. I let Build 1 calculate for more than 300 minutes. On the other hand: it is also nice to see the consistency in the analysis from depth 32 through 39, I could well be wrong but this may be really different from older versions of Glaurung I at least would not have expected it, also because I increased selectivity and other extensions even further and those other crazy changes
2b5/5k2/p7/PpNp3p/1P1P3P/5K2/8/8 w - -
Engine: Glaurung 080422 Mjolnir 003 Build 1 (256 MB)
by Tord Romstad
11.00 0:00 +0.31 11.Kf2 Kf6 12.Ke2 Ke7 13.Ke3 Kf6
14.Kd3 Bf5+ 15.Kd2 Bc8 16.Kc3 Ke7 (38.027) 809
12.00 0:00 +0.43 11.Kf2 Kf6 12.Ke2 Kg7 13.Ke3 Kg6
14.Nd3 Kf5 15.Nf4 Kg4 16.Nxd5 Kxh4 (76.811) 972
13.00 0:00 +0.25 11.Kf2 Kf6 12.Ke2 Kg6 13.Ke3 Kg7
14.Nd3 Be6 15.Ne5 Kf6 16.Kf4 Bf5
17.Ke3 (121.840) 974
14.00 0:00 +0.25 11.Kf2 Kf6 12.Ke2 Kg6 13.Nd3 Be6
14.Ne5+ Kf6 15.Ke3 Bf5 16.Kf4 Bc8
17.Kf3 Bf5 18.Ke3 (183.495) 976
14.00 0:00 +1.07 11.Nd3 Bg4+ 12.Kf2 Ke7 13.Nc5 Bc8
14.Ke3 Kf7 15.Nd3 Bf5 16.Nf4 Ke7
17.Nxd5+ Kd6 18.Nf4 Bg4 (296.266) 997
15.00 0:00 +1.17 11.Nd3 Bg4+ 12.Kf2 Ke7 13.Nc5 Bc8
14.Ke3 Kf7 15.Nd3 Bf5 16.Nf4 Ke7
17.Nxd5+ Kd6 18.Nf6 Bg4 19.Ke4 (402.041) 987
16.00 0:00 +1.15 11.Nd3 Bg4+ 12.Kf2 Ke7 13.Nc5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xh5 Bb7 18.Kf3 Ba8 19.Nf4 Bc6
20.Nd3 Bb7 21.Nc5 Bc8 22.Kg3 Kg6
23.Kf4 Kf6 24.h5 (13.190.113.061) 706
best move: Nc5-d3 time: 368:18.000 min n/s: 709.268 nodes: 15.673.380.000
New place of King Safety, only difference to Build 1:
// Middle-game specific evaluation terms
if(phase > PHASE_ENDGAME) {
// Pawn storms in positions with opposite castling.
if(square_file(pos.king_square(WHITE)) >= FILE_E &&
square_file(pos.king_square(BLACK)) <= FILE_D)
ei.mgValue +=
ei.pi->queenside_storm_value(WHITE) -
ei.pi->kingside_storm_value(BLACK);
else if(square_file(pos.king_square(WHITE)) <= FILE_D &&
square_file(pos.king_square(BLACK)) >= FILE_E)
ei.mgValue +=
ei.pi->kingside_storm_value(WHITE) -
ei.pi->queenside_storm_value(BLACK);
}
// King Safety
// Kings are evaluated after all other pieces for both sides,
// because we need complete attack information for all pieces when computing
// the king safety evaluation.
// [EdG: Evaluation of kings moved here after passed pawns eval]
//
for(Color c = WHITE; c <= BLACK; c++) {
s = pos.king_square(c);
evaluate_king(pos, s, c, ei);
}
// Mobility