Playing with "The Secret of Chess"

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Harald
Posts: 318
Joined: Thu Mar 09, 2006 1:07 am

Playing with "The Secret of Chess"

Post by Harald »

Playing with "The Secret of Chess"
==================================

Everybody is now either talking about neural nets
or doing just material and piece square table evaluation.
I did something completely different during the last lockdown weeks.

I implemented an alternative evaluation in C++ in my private engine Elephant 1.9.
That means I implemented the complete evaluation from the book
"The Secret of Chess" by Lyudmil Tsvetkov (2017).

This can either replace my own evaluation in the normal engine play
or it is just used as a position evaluation in a test mode with detailed logging.
The switch is made with some macros. Deactivated the whole logging code is gone.

The book has about 7 or 8 main chapters or topics and about
292 evaluation patterns or features and lots of piece square tables.
In my C++ source that is written in
7536 (eval) + 2320 (pawn eval) + 2231 (psqt) + 744 (logging) = 12831 lines of code.

That looks like this

Code: Select all

       case WKnight:
        {
            BB tt = attacks[sq];
            while (tt)
            {
                SquareType to = msb_nr(tt);
                PieceType to_piece = board[to];
                if (to_piece == NoPiece && !(attackers[to] & pos.bitboard_[Black][Pawn]))
                {
                    mobility_value[White] += psqt.get_mobility_psq(White, Knight, to);
                    LOG_EVAL_FEATURE_SQ_PC_TO(EvalTopicMobility, "Mobility piece square table", White, sq, piece, to, psqt.get_mobility_psq(White, Knight, to))
                    ++mobility_num;
                }
                ...

I had to make a few tiny changes and own decisions compared to the raw TSoC
because not all definitions were absolutely clear or the implementation would be too arkward.
There may still exist some bugs in my implementation. I could not test all of it by now.

My engine itself is not very strong. I think there are some bugs in the search,
qsearch, SEE implementation and the performance (NPS) is not very good.
With the TSoC evaluation activated (no logging) the NPS and search depth goes down a lot
and with an interesting playing style it most often loses against FairyMax in Winboard.
When I scale down every non-material positional evaluation by 50% my engine has more wins
than losses and some of the games look spectacular.

Therefore the test and logging variant for one position only is more interesting.
Here is an example taken from a gm2600 position:

Test evaluation for FEN/EPD 8/p5p1/1pnnkp2/4p2p/4P3/P2K1P2/1PN3PP/4B3 b - - 0 37 [0.5]

[d]8/p5p1/1pnnkp2/4p2p/4P3/P2K1P2/1PN3PP/4B3 b - - 0 37

Code: Select all

   +-----------------+           
 8 | . . . . . . . . | (Black)   
 7 | o . . . . . o . |           
 6 | . o n n k o . . |           
 5 | . . . . o . . o | (M50=0)   
 4 | . . . . P . . . | (M=37)    
 3 | P . . K . P . . |           
 2 | . P N . . . P P |           
 1 | . . . . B . . . |           
   +-----------------+           
     a b c d e f g h             
Topic                Side  Midgame Endgame
material_value       White    1200    1260
material_value       Black    1190    1230
psqt_value           White      71     162
psqt_value           Black     120     237
corr_piece_value     White     -14     -35
corr_piece_value     Black      20      20
pawn_value           White      61      24
pawn_value           Black      57      19
pawn_piece_value     White      69      36
pawn_piece_value     Black      53      28
mobility_value       White     163     173
mobility_value       Black     197     208
outpost_value        White      12       0
outpost_value        Black      32       6
imbalance_value      White       0       0
imbalance_value      Black     -10     -30
king_safety_value    White       4      32
king_safety_value    Black     110      48
piece_activity_value White      32      15
piece_activity_value Black      15       5
total_value          White    1598    1667
total_value          Black    1784    1771
total_value combined (W-B)    -186    -104
total_score                   -121  for interpolation_permille 797
final_score (scaled)          -121

Bitboards and infos from the pawn evaluation
half open files (White) 3030303030303030  (Black) 3030303030303030  (open) 3030303030303030
passed pawns    (White) 0000000000000000  (Black) 0000000000000000
isolated pawns  (White) 0000000000000000  (Black) 0000000000000000
backward pawns  (White) 0000000000000000  (Black) 0000000000000000
doubled pawns   (White) 0000000000000000  (Black) 0000000000000000
ram pawns       (White) 0000000008000000  (Black) 0000000800000000
closing pawns   (White) 0000000000000000  (Black) 0000000000000000

Score 121
Collected Evaluation (midgame to endgame interpolation 797/1000):
         Evaluation Topic,                                                                     Feature,       Side, Square,    To, Piece,       Score
EvalTopicMaterial        ,                                                                Piece values,      White,     e4,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      White,     a3,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      White,     f3,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      White,     b2,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      White,     g2,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      White,     h2,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      White,     c2,      ,     N,         302
EvalTopicMaterial        ,                                                                Piece values,      White,     e1,      ,     B,         328
EvalTopicMaterial        ,                                                                Piece values,      Black,     a7,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      Black,     g7,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      Black,     b6,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      Black,     f6,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      Black,     e5,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      Black,     h5,      ,     P,         103
EvalTopicMaterial        ,                                                                Piece values,      Black,     c6,      ,     N,         302
EvalTopicMaterial        ,                                                                Piece values,      Black,     d6,      ,     N,         302
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     e4,      ,     P,          53
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     a3,      ,     P,           9
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     d3,      ,     K,          28
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     f3,      ,     P,          19
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     b2,      ,     P,           9
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     g2,      ,     P,           9
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     h2,      ,     P,           7
EvalTopicPieceSquareTable,                                                          Piece square table,      White,     e1,      ,     B,           9
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     a7,      ,     P,           7
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     g7,      ,     P,           9
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     b6,      ,     P,          14
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     c6,      ,     N,          28
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     d6,      ,     N,          37
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     e6,      ,     K,          28
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     f6,      ,     P,          19
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     e5,      ,     P,          53
EvalTopicPieceSquareTable,                                                          Piece square table,      Black,     h5,      ,     P,          19
EvalTopicPawnsOnly       ,                                                              Defended pawns,      White,     e4,      ,     P,          10
EvalTopicPawnsOnly       ,                                                              Defended pawns,      White,     a3,      ,     P,           2
EvalTopicPawnsOnly       ,                                                              Defended pawns,      White,     f3,      ,     P,           4
EvalTopicPawnsOnly       ,                                                            Long chain pawns,      White,     f3,      ,     P,           3
EvalTopicPawnsOnly       ,                                                                   Weak spot,      White,     b3,      ,     .,          -2
EvalTopicPawnsOnly       ,                                                               Aligned pawns,      White,     g2,      ,     P,           3
EvalTopicPawnsOnly       ,                                                     Defending aligned pawns,      White,     g2,      ,     P,           1
EvalTopicPawnsOnly       ,                                                               Aligned pawns,      White,     h2,      ,     P,           2
EvalTopicPawnsOnly       ,                                                                   Weak spot,      Black,     a6,      ,     .,          -2
EvalTopicPawnsOnly       ,                                                                   Weak spot,      Black,     g6,      ,     .,          -2
EvalTopicPawnsOnly       ,                                                              Defended pawns,      Black,     b6,      ,     P,           3
EvalTopicPawnsOnly       ,                                                              Defended pawns,      Black,     f6,      ,     P,           4
EvalTopicPawnsOnly       ,                                                            Long chain pawns,      Black,     f6,      ,     P,           3
EvalTopicPawnsOnly       ,                                                              Defended pawns,      Black,     e5,      ,     P,          10
EvalTopicPawnsOnly       ,                                                    Verticaly isolated pawns,      Black,     h5,      ,     P,         -10
EvalTopicPawnsOnly       ,                                                                Central bind,      White,       ,      ,     P,           8
EvalTopicPawnsOnly       ,                                                                Central bind,      Black,       ,      ,     P,           8
EvalTopicPawnsOnly       ,                                               Space advantage on both sides,      Black,       ,      ,     P,          12
EvalTopicCorrPieceValues ,                                           Pawns on own bishop color squares,      White,     a3,      ,     P,         -14
EvalTopicCorrPieceValues ,                                           Pawns on own bishop color squares,      White,     b2,      ,     P,         -14
EvalTopicCorrPieceValues ,                                           Pawns on own bishop color squares,      White,     h2,      ,     P,         -14
EvalTopicCorrPieceValues ,                                                  Knights with blocked pawns,      White,     c2,      ,     N,          10
EvalTopicCorrPieceValues ,                                                  Knights with blocked pawns,      Black,     c6,      ,     N,          10
EvalTopicCorrPieceValues ,                                                  Knights with blocked pawns,      Black,     d6,      ,     N,          10
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     c6,    b8,     N,          11
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     c6,    d8,     N,          13
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     c6,    e7,     N,          15
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     c6,    a5,     N,          16
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     c6,    d4,     N,          30
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     d6,    c8,     N,          12
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     d6,    e8,     N,          13
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     d6,    b7,     N,          13
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     d6,    f7,     N,          14
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     d6,    b5,     N,          24
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     d6,    c4,     N,          28
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     e6,    d7,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     e6,    e7,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     e6,    f7,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      Black,     h5,    h4,     P,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     d3,    c3,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     d3,    e3,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     d3,    d2,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     d3,    e2,     K,           4
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     c2,    b4,     N,          24
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     c2,    e3,     N,          24
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     c2,    a1,     N,          10
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     e1,    b4,     B,          21
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     e1,    h4,     B,          14
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     e1,    c3,     B,          18
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     e1,    g3,     B,          17
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     e1,    d2,     B,          13
EvalTopicMobility        ,                                                 Mobility piece square table,      White,     e1,    f2,     B,          12
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,      White,     c6,      ,     .,           9
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,      White,     e6,      ,     .,           9
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,      White,     f6,      ,     .,           9
EvalTopicPawnsAndPieces  ,                                               Extended central piece attack,      White,     e6,      ,     .,           5
EvalTopicPawnsAndPieces  ,                                               Extended central piece attack,      White,     g7,      ,     .,           5
EvalTopicPawnsAndPieces  ,                                               Extended central piece attack,      White,     e6,      ,     .,           5
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,      Black,     d6,      ,     .,           9
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,      Black,     d3,      ,     .,           9
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,      Black,     f3,      ,     .,           9
EvalTopicPawnsAndPieces  ,                                               Extended central piece attack,      Black,     g2,      ,     .,           5
EvalTopicOutposts        ,                                      Minor piece diagonally behind own pawn,      Black,     d6,      ,     N,           4
EvalTopicOutposts        ,                                      Minor piece near own pawn on same rank,      Black,     d6,      ,     N,           4
EvalTopicOutposts        ,                                                           Penetration point,      White,     d5,      ,     .,           1
EvalTopicOutposts        ,                                                           Penetration point,      White,     f5,      ,     .,           1
EvalTopicOutposts        ,                                                           Penetration point,      Black,     d4,      ,     .,           1
EvalTopicOutposts        ,                                                           Penetration point,      Black,     f4,      ,     .,           1
EvalTopicImbalances      ,                                                                 Knight pair,      Black,       ,      ,     .,         -26
EvalTopicKingSafety      ,                                                             No pawn shelter,      White,       ,      ,     .,         -14
EvalTopicKingSafety      ,                                         No pawn on 2nd rank in king shelter,      Black,       ,      ,     .,          -4
EvalTopicKingSafety      ,                                               Knight attacking king shelter,      Black,     c6,      ,     N,          14
EvalTopicKingSafety      ,                                                         Knight on king side,      Black,     c6,      ,     N,           2
EvalTopicKingSafety      ,                                          Minor piece defending king shelter,      Black,     c6,      ,     N,           1
EvalTopicKingSafety      ,                                               Knight attacking king shelter,      Black,     d6,      ,     N,          14
EvalTopicKingSafety      ,                                                         Knight on king side,      Black,     d6,      ,     N,           2
EvalTopicKingSafety      ,                                                    Minor piece king shelter,      Black,     d6,      ,     N,           9
EvalTopicKingSafety      ,                                                        Pawn in king shelter,      Black,     f6,      ,     P,          18
EvalTopicKingSafety      ,                                              Blocked storming pawn kingside,      White,     e4,      ,     P,          14
EvalTopicKingSafety      ,                                   King in center sheltered by defended pawn,      White,     d3,      ,     K,           1
EvalTopicKingSafety      ,                                               Knight attacking king shelter,      White,     c2,      ,     N,          14
EvalTopicKingSafety      ,                                                    Minor piece king shelter,      White,     c2,      ,     N,           9
EvalTopicKingSafety      ,                                                         Bishop on king side,      White,     e1,      ,     B,           1
EvalTopicKingSafety      ,                                          Minor piece defending king shelter,      White,     e1,      ,     B,           1
EvalTopicKingSafety      ,                                           Two semi open files near opp king,      Black,       ,      ,     .,           6
EvalTopicPieceActivity   ,                                                             Defending pawns,      Black,     a7,      ,     P,           5
EvalTopicPieceActivity   ,                                            Preventing opp minor penetration,      Black,     b6,      ,     P,           1
EvalTopicPieceActivity   ,                                                            Potential checks,      Black,     c6,      ,     N,           9
EvalTopicPieceActivity   ,                                                           Undefended pieces,      Black,     c6,      ,     N,         -11
EvalTopicPieceActivity   ,                                                              Direct Attacks,      Black,     d6,      ,     N,           8
EvalTopicPieceActivity   ,                                          Knight attacking opp defended pawn,      Black,     d6,      ,     N,          -4
EvalTopicPieceActivity   ,                                                                Hanging pawn,      White,     e4,      ,     P,          -2
EvalTopicPieceActivity   ,                                            Preventing opp minor penetration,      White,     a3,      ,     P,           1
EvalTopicPieceActivity   ,                                                            Potential checks,      White,     c2,      ,     N,           9
EvalTopicPieceActivity   ,                                                               Piece defence,      White,     e1,      ,     B,          11

Evaluation based on topics (midgame to endgame interpolation 797/1000):
Evaluation Topic         , White score, Black score, Total score (seen from White)
EvalTopicMaterial        ,        1248,        1222,          26
EvalTopicPieceSquareTable,         144,         213,         -69
EvalTopicCorrPieceValues ,         -31,          20,         -51
EvalTopicPawnsOnly       ,          32,          27,           5
EvalTopicPawnsAndPieces  ,          43,          33,          10
EvalTopicMobility        ,         171,         206,         -35
EvalTopicOutposts        ,           2,          11,          -9
EvalTopicImbalances      ,           0,         -26,          26
EvalTopicKingSafety      ,          26,          63,         -37
EvalTopicPieceActivity   ,          18,           7,          11
EvalTopicTotalValue      ,        1653,        1776,        -123

No scaling occured

Evaluation for squares (White):
  +----------+----------+----------+----------+----------+----------+----------+----------+
8 | .      0 | .      0 | .      0 | .      0 | .      0 | .      0 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
7 | p      0 | .      0 | .      0 | .      0 | .      0 | .      0 | p      5 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
6 | .      0 | p      0 | n      9 | n      0 | k     19 | p      9 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
5 | .      0 | .      0 | .      0 | .      1 | p      0 | .      1 | .      0 | p      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
4 | .      0 | .      0 | .      0 | .      0 | P    178 | .      0 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
3 | P    102 | .     -2 | .      0 | K     47 | .      0 | P    129 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
2 | .      0 | P     99 | N    402 | .      0 | .      0 | .      0 | P    117 | P     98 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
1 | .      0 | .      0 | .      0 | .      0 | B    446 | .      0 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
       A          B          C          D          E          F          G          H

Evaluation for squares (Black):
  +----------+----------+----------+----------+----------+----------+----------+----------+
8 | .      0 | .      0 | .      0 | .      0 | .      0 | .      0 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
7 | p    115 | .      0 | .      0 | .      0 | .      0 | .      0 | p    112 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
6 | .     -2 | p    121 | n    440 | n    500 | k     41 | p    147 | .     -2 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
5 | .      0 | .      0 | .      0 | .      0 | p    166 | .      0 | .      0 | p    115 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
4 | .      0 | .      0 | .      0 | .      1 | P      0 | .      1 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
3 | P      0 | .      0 | .      0 | K      9 | .      0 | P      9 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
2 | .      0 | P      0 | N      0 | .      0 | .      0 | .      0 | P      5 | P      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
1 | .      0 | .      0 | .      0 | .      0 | B      0 | .      0 | .      0 | .      0 |
  +----------+----------+----------+----------+----------+----------+----------+----------+
       A          B          C          D          E          F          G          H

Used evaluation feature count:
EvalTopicMaterial        ,                                                                Piece values,       16
EvalTopicPieceSquareTable,                                                          Piece square table,       18
EvalTopicCorrPieceValues ,                                                  Knights with blocked pawns,       12
EvalTopicCorrPieceValues ,                                           Pawns on own bishop color squares,        3
EvalTopicPawnsOnly       ,                                                               Aligned pawns,        2
EvalTopicPawnsOnly       ,                                                                Central bind,        2
EvalTopicPawnsOnly       ,                                                              Defended pawns,        6
EvalTopicPawnsOnly       ,                                                     Defending aligned pawns,        1
EvalTopicPawnsOnly       ,                                                     Distant neighbour pawns,        2
EvalTopicPawnsOnly       ,                                                            Long chain pawns,        2
EvalTopicPawnsOnly       ,                                                                   Ram pawns,        2
EvalTopicPawnsOnly       ,                                               Space advantage on both sides,        1
EvalTopicPawnsOnly       ,                                                   Symmetrical aligned pawns,        4
EvalTopicPawnsOnly       ,                                                    Verticaly isolated pawns,        1
EvalTopicPawnsOnly       ,                                                                   Weak spot,        3
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,        6
EvalTopicPawnsAndPieces  ,                                               Extended central piece attack,        4
EvalTopicMobility        ,                                                 Mobility piece square table,       37
EvalTopicOutposts        ,                                      Minor piece diagonally behind own pawn,        1
EvalTopicOutposts        ,                                      Minor piece near own pawn on same rank,        1
EvalTopicOutposts        ,                                                           Penetration point,        4
EvalTopicImbalances      ,                                                                 Knight pair,        1
EvalTopicKingSafety      ,                                                         Bishop on king side,        1
EvalTopicKingSafety      ,                                              Blocked storming pawn kingside,        1
EvalTopicKingSafety      ,                                   King in center sheltered by defended pawn,        1
EvalTopicKingSafety      ,                                               Knight attacking king shelter,        3
EvalTopicKingSafety      ,                                                         Knight on king side,        2
EvalTopicKingSafety      ,                                          Minor piece defending king shelter,        2
EvalTopicKingSafety      ,                                                    Minor piece king shelter,        2
EvalTopicKingSafety      ,                                         No pawn on 2nd rank in king shelter,        1
EvalTopicKingSafety      ,                                                             No pawn shelter,        1
EvalTopicKingSafety      ,                                                        Pawn in king shelter,        1
EvalTopicKingSafety      ,                                           Two semi open files near opp king,        1
EvalTopicPieceActivity   ,                                          Bishop attacking opp defended pawn,        1
EvalTopicPieceActivity   ,                                                             Defending pawns,       18
EvalTopicPieceActivity   ,                                                              Direct Attacks,       74
EvalTopicPieceActivity   ,                                                                Hanging pawn,        1
EvalTopicPieceActivity   ,                                          Knight attacking opp defended pawn,        3
EvalTopicPieceActivity   ,                                                               Piece defence,       16
EvalTopicPieceActivity   ,                                                            Potential checks,        4
EvalTopicPieceActivity   ,                                                 Potential discovered checks,        1
EvalTopicPieceActivity   ,                                            Preventing opp minor penetration,        2
EvalTopicPieceActivity   ,                                                    Queen and bishop battery,        1
EvalTopicPieceActivity   ,                                                           Undefended pieces,        1
EvalTopicPieceActivity   ,                                                               X-ray attacks,       10
EvalTopicPieceActivity   ,                                             X-ray past three pieces attacks,        5
EvalTopicPieceActivity   ,                                               X-ray past two pieces attacks,        5
Harald
Posts: 318
Joined: Thu Mar 09, 2006 1:07 am

Re: Playing with "The Secret of Chess"

Post by Harald »

May be even more interesting is the combined result of 1 million gm2600 position
that maksimKorzh posted here lately. Doing this takes two minutes.
In the table i_p means interpolation_permille that gets up from midgame 0 to endgame 1000.

Code: Select all

Evaluation info statistic:
         Evaluation Topic,                                                                     Feature, Piece,      count,   min_score,   max_score,  mean_score,   sum_score,  min_i_p,  max_i_p, mean_i_p
EvalTopicMaterial        ,                                                                Piece values,     P,    1048660,          95,         105,          98,   103166596,        0,     1000,      335
EvalTopicMaterial        ,                                                                Piece values,     N,     176750,         301,         310,         307,    54370476,        0,      950,      240
EvalTopicMaterial        ,                                                                Piece values,     B,     205322,         320,         329,         322,    66248542,        0,      948,      265
EvalTopicMaterial        ,                                                                Piece values,     R,     287795,         460,         488,         469,   135023629,        0,      925,      305
EvalTopicMaterial        ,                                                                Piece values,     Q,     120744,         900,         943,         911,   110001674,        0,      854,      221
EvalTopicPieceSquareTable,                                                          Piece square table,     P,    1048660,           0,          65,          17,    18148185,        0,     1000,      335
EvalTopicPieceSquareTable,                                                          Piece square table,     N,     176750,         -40,         118,          21,     3719528,        0,      950,      240
EvalTopicPieceSquareTable,                                                          Piece square table,     B,     205322,         -20,          79,          15,     3120530,        0,      948,      265
EvalTopicPieceSquareTable,                                                          Piece square table,     R,     287795,         -20,          49,           3,      986081,        0,      925,      305
EvalTopicPieceSquareTable,                                                          Piece square table,     Q,     120744,           0,          38,           4,      591772,        0,      854,      221
EvalTopicPieceSquareTable,                                                          Piece square table,     K,     199872,        -101,         120,          50,    10036454,        0,     1000,      412
EvalTopicCorrPieceValues ,               Blocked pawns on own bishop color square and Bishop vs Knight,     P,        684,          -7,          -7,          -7,       -4788,      898,      898,      898
EvalTopicCorrPieceValues ,                      Blocked pawns on own bishop color square in the center,     P,      45505,         -20,          -2,         -11,     -539180,        0,      948,      248
EvalTopicCorrPieceValues ,                                   Blocked pawns on own bishop color squares,     P,      69887,         -10,          -5,          -9,     -664752,        0,      948,      303
EvalTopicCorrPieceValues , Isolated center pawns on own bishop color square blocked by opp minor piece,     P,       1043,         -15,          -8,         -14,      -14674,        0,      898,      251
EvalTopicCorrPieceValues ,                                                  Knights with blocked pawns,     N,     707000,           0,          21,           1,      855069,        0,      950,      240
EvalTopicCorrPieceValues ,                      One bishop and one opp knight with pawns on both wings,     B,       6175,          35,          48,          41,      253555,      235,      898,      555
EvalTopicCorrPieceValues ,                                           Pawns on own bishop color squares,     P,     602040,         -15,          -4,          -9,    -5478966,        0,      948,      217
EvalTopicCorrPieceValues ,                      Twice backward center pawns on own bishop color square,     P,        446,         -12,          -6,         -11,       -5172,        0,      898,      164
EvalTopicPawnsOnly       ,                                                               Aligned pawns,     P,     419500,           1,          63,           5,     2438320,        0,     1000,      228
EvalTopicPawnsOnly       ,                                  Backward long chain pawn blocked condition,     P,        342,          -8,          -8,          -8,       -2736,        0,     1000,      397
EvalTopicPawnsOnly       ,                                    Blocked own doubled pawn on its 3rd rank,     P,        807,         -15,         -15,         -15,      -12105,      101,     1000,      455
EvalTopicPawnsOnly       ,                                                                Central bind,     P,     103843,           0,          40,          26,     2737507,        0,     1000,      342
EvalTopicPawnsOnly       ,                                       Central unopposed chain backward pawn,     P,       1783,         -15,          -2,         -11,      -20672,        0,      899,      218
EvalTopicPawnsOnly       ,                                                      Connected passed pawns,     P,       7265,          40,          40,          40,      290600,        0,     1000,      628
EvalTopicPawnsOnly       ,                                                      Defended aligned pawns,     P,      23860,           2,          19,           3,       87677,        0,     1000,      251
EvalTopicPawnsOnly       ,                                          Defended outer central lever pawns,     P,       2883,           0,          15,          12,       35629,        0,     1000,      168
EvalTopicPawnsOnly       ,                                                              Defended pawns,     P,     317157,           2,          53,           7,     2293670,        0,     1000,      323
EvalTopicPawnsOnly       ,                                                     Defending aligned pawns,     P,      73618,           1,          15,           1,      133096,        0,     1000,      224
EvalTopicPawnsOnly       ,                                              Distance between doubled pawns,     P,      27434,           0,           8,           1,       38710,        0,     1000,      426
EvalTopicPawnsOnly       ,                                                       Distant backward pawn,     P,      11389,         -10,         -10,         -10,     -113890,        0,     1000,      440
EvalTopicPawnsOnly       ,                                                     Distant neighbour pawns,     P,     290406,           0,          34,           2,      688220,        0,     1000,      296
EvalTopicPawnsOnly       ,                                                            Double root pawn,     P,      18768,         -30,          -7,         -17,     -333083,        0,     1000,      365
EvalTopicPawnsOnly       ,                                                               Doubled pawns,     P,      27434,         -48,         -10,         -20,     -573372,        0,     1000,      426
EvalTopicPawnsOnly       ,                                                        Fixed isolated pawns,     P,      12334,           2,           3,           2,       32222,        0,     1000,      564
EvalTopicPawnsOnly       ,                    Fully closed side with space advantage on the other side,     P,         37,           3,          50,          24,         917,        0,      948,      506
EvalTopicPawnsOnly       ,                                                      Isolated opposed pawns,     P,      36200,         -42,         -15,         -27,     -999350,        0,     1000,      549
EvalTopicPawnsOnly       ,                                                    Isolated unopposed pawns,     P,      47222,         -57,         -18,         -35,    -1694284,        0,     1000,      557
EvalTopicPawnsOnly       ,                                                       Lever on the 3rd rank,     P,       1738,          10,          10,          10,       17380,        0,     1000,      256
EvalTopicPawnsOnly       ,                                                                 Lever pawns,     P,      33521,           0,          36,           3,      114829,        0,     1000,      263
EvalTopicPawnsOnly       ,                                                            Long chain pawns,     P,      40283,           2,          39,           4,      193326,        0,     1000,      286
EvalTopicPawnsOnly       ,                                                                   Mainstays,     P,        579,          10,          15,          12,        7033,        0,     1000,      410
EvalTopicPawnsOnly       ,              Opp pawn controls square in front of own doubled isolated_pawn,     P,       2820,          -8,          -8,          -8,      -22560,        0,     1000,      501
EvalTopicPawnsOnly       ,                                                   Outer central lever pawns,     P,       4653,           0,          20,          16,       78388,        0,     1000,      158
EvalTopicPawnsOnly       ,                                               Pair of central isolated pawn,     P,        131,         -30,          -3,         -15,       -2020,        0,      899,      486
EvalTopicPawnsOnly       ,                                     Pair of doubled pawns on adjacent files,     P,        196,         -20,         -20,         -20,       -3920,        0,      899,      389
EvalTopicPawnsOnly       ,                                              Pair of potential passed pawns,     P,        423,          30,          30,          30,       12690,        0,      950,      257
EvalTopicPawnsOnly       ,                                                           Passed pawn maker,     P,       2823,           7,          15,           7,       21801,        0,     1000,      472
EvalTopicPawnsOnly       ,                                                                Passed pawns,     P,      61447,           6,         150,          50,     3072371,        0,     1000,      600
EvalTopicPawnsOnly       ,                                                      Potential passed pawns,     P,      58028,          10,          52,          24,     1416662,        0,     1000,      385
EvalTopicPawnsOnly       ,                                                                   Ram pawns,     P,     135044,           0,          50,           2,      387708,        0,     1000,      420
EvalTopicPawnsOnly       ,                                 Restricted own doubled pawn on its 3rd rank,     P,       1781,          -8,          -6,          -6,      -12082,        0,     1000,      433
EvalTopicPawnsOnly       ,                                                              Rollercoasters,     P,        143,          40,          60,          41,        5900,      101,      896,      557
EvalTopicPawnsOnly       ,                                               Semibackward pawn on 2nd rank,     P,       5549,         -15,         -10,         -13,      -75505,        0,     1000,      257
EvalTopicPawnsOnly       ,                                               Space advantage on both sides,     P,      77468,          10,          20,          16,     1270295,        0,     1000,      361
EvalTopicPawnsOnly       ,                                            Spearhead connected passed pawns,     P,         16,           0,          68,          51,         817,       50,      950,      455
EvalTopicPawnsOnly       ,                                                              Squeezed pawns,     P,        211,         -10,         -10,         -10,       -2110,      101,      899,      459
EvalTopicPawnsOnly       ,                                              Standard backward opposed pawn,     P,      25096,         -44,           0,         -27,     -693821,        0,     1000,      438
EvalTopicPawnsOnly       ,                                            Standard backward unopposed pawn,     P,      10949,         -50,          -3,         -34,     -375859,        0,     1000,      467
EvalTopicPawnsOnly       ,                                                   Symmetrical aligned pawns,     P,     397864,           0,          24,           0,       10039,        0,     1000,      410
EvalTopicPawnsOnly       ,                                                               Tripled pawns,     P,        154,         -30,         -30,         -30,       -4620,      101,      899,      455
EvalTopicPawnsOnly       ,                                                      Twice backward feature,     P,       3409,         -25,         -15,         -20,      -71016,        0,     1000,      418
EvalTopicPawnsOnly       ,                                                 Twice backward opposed pawn,     P,       1873,         -62,           0,         -47,      -89448,        0,     1000,      430
EvalTopicPawnsOnly       ,                                               Twice backward unopposed pawn,     P,        567,         -69,         -36,         -52,      -29888,        0,     1000,      468
EvalTopicPawnsOnly       ,                                             Two and two pawns in the center,     P,        787,          -7,           0,          -6,       -5030,        0,     1000,       83
EvalTopicPawnsOnly       ,                  Two opp pawns control square in front of own isolated pawn,     P,       1268,          -5,          -5,          -5,       -6340,        0,     1000,      467
EvalTopicPawnsOnly       ,                                                           Unbackwarded pawn,     P,      14737,           5,          10,           8,      121953,        0,     1000,      326
EvalTopicPawnsOnly       ,                                             Unopposed lever on the 4th rank,     P,       2466,           0,           7,           5,       13027,        0,     1000,      249
EvalTopicPawnsOnly       ,                                                     Unstoppable passed pawn,     P,       2334,          20,          30,          26,       61600,        0,     1000,      635
EvalTopicPawnsOnly       ,                                                    Verticaly isolated pawns,     P,     154852,         -25,          -1,          -8,    -1317232,        0,     1000,      416
EvalTopicPawnsOnly       ,                                                       Very long pawn chains,     P,       2045,           0,          34,           5,       11281,        0,     1000,      253
EvalTopicPawnsOnly       ,                                                                   Weak spot,     .,     174126,         -10,           0,          -6,    -1084011,        0,     1000,      378
EvalTopicPawnsAndPieces  ,                                                        Attacking root pawns,     N,         53,          10,          10,          10,         530,        0,      950,      345
EvalTopicPawnsAndPieces  ,                                                        Attacking root pawns,     B,         65,          10,          10,          10,         650,        0,      898,      374
EvalTopicPawnsAndPieces  ,                                                        Attacking root pawns,     R,         52,          10,          10,          10,         520,      205,      851,      637
EvalTopicPawnsAndPieces  ,                                                        Attacking root pawns,     Q,         69,          10,          10,          10,         690,      101,      708,      343
EvalTopicPawnsAndPieces  ,                                                Bishop controlling weak spot,     B,      48210,           0,           5,           3,      188050,        0,      948,      198
EvalTopicPawnsAndPieces  ,                                                       Central backwardmaker,     P,       2274,          12,          30,          25,       58581,        0,      898,      213
EvalTopicPawnsAndPieces  ,                                               Central chain knight blockade,     N,         17,          12,          23,          20,         348,      101,      898,      291
EvalTopicPawnsAndPieces  ,                                                        Central piece attack,     .,     283006,           8,          15,          13,     3741593,        0,     1000,      257
EvalTopicPawnsAndPieces  ,                                            Centralised blocking minor piece,     N,       2086,           0,          50,          13,       28152,        0,      950,      477
EvalTopicPawnsAndPieces  ,                                            Centralised blocking minor piece,     B,       2273,           0,          50,          12,       28056,        0,      948,      506
EvalTopicPawnsAndPieces  ,                                        Defending rook from behind via x-ray,     R,       5545,          10,          10,          10,       55450,        0,      875,      463
EvalTopicPawnsAndPieces  ,                                               Extended central piece attack,     .,     567683,           4,           8,           6,     3943813,        0,     1000,      280
EvalTopicPawnsAndPieces  ,                                                 King supporting passed pawn,     K,      61447,           0,          10,           0,       31185,        0,     1000,      600
EvalTopicPawnsAndPieces  ,                              Knight and pawn immobilising opp isolated pawn,     .,       1306,           3,           5,           4,        5961,        0,      899,      259
EvalTopicPawnsAndPieces  ,                                                Knight controlling weak spot,     N,      20311,           0,           3,           2,       47996,        0,      950,      231
EvalTopicPawnsAndPieces  ,                                          Minor piece and pawn attack center,     N,       3840,           1,           7,           6,       24383,        0,      899,       88
EvalTopicPawnsAndPieces  ,                                          Minor piece and pawn attack center,     B,       1321,           1,           7,           5,        7831,        0,      898,      152
EvalTopicPawnsAndPieces  ,                                          Minor piece blockading passed pawn,     N,       2086,           0,          20,          10,       21845,        0,      950,      477
EvalTopicPawnsAndPieces  ,                                          Minor piece blockading passed pawn,     B,       2273,           0,          20,           9,       20715,        0,      948,      506
EvalTopicPawnsAndPieces  ,                Minor piece controlling square in front of opp backward pawn,     N,       4887,           8,           8,           8,       39096,        0,      950,      263
EvalTopicPawnsAndPieces  ,                Minor piece controlling square in front of opp backward pawn,     B,       2347,           8,           8,           8,       18776,        0,      948,      412
EvalTopicPawnsAndPieces  ,                                               More pieces with passed pawns,     .,       7594,          21,          39,          31,      239108,       50,      950,      572
EvalTopicPawnsAndPieces  ,                   Pieces attacking the square in front of own or opp passer,     N,       8647,          15,          15,          15,      129705,        0,      950,      495
EvalTopicPawnsAndPieces  ,                   Pieces attacking the square in front of own or opp passer,     B,      11389,          15,          15,          15,      170835,        0,      948,      521
EvalTopicPawnsAndPieces  ,                   Pieces attacking the square in front of own or opp passer,     R,      15676,          10,          10,          10,      156760,        0,      925,      573
EvalTopicPawnsAndPieces  ,                   Pieces attacking the square in front of own or opp passer,     Q,      14163,           5,           5,           5,       70815,        0,      854,      386
EvalTopicPawnsAndPieces  ,                                                              Pointed chains,     P,         60,          15,          50,          40,        2456,        0,      692,      181
EvalTopicPawnsAndPieces  ,                                    Semi central pawn controlling the center,     P,      36029,           0,          20,          11,      428418,        0,     1000,      406
EvalTopicPawnsAndPieces  ,                                          Space advantage with closed center,     P,        313,           2,          15,          10,        3379,        0,      899,      275
EvalTopicPawnsAndPieces  ,                                       Starting pointed chains of more pawns,     P,       2597,           1,          11,           9,       25287,        0,      899,      120
EvalTopicPawnsAndPieces  ,                                        Starting pointed chains of two pawns,     P,      14056,           0,           7,           5,       82300,        0,     1000,      164
EvalTopicMobility        ,                                                  Available double pawn push,     P,      79292,           0,           8,           5,      435408,        0,     1000,      307
EvalTopicMobility        ,                                                 Bishop trapped by own pawns,     B,       1686,        -220,        -220,        -220,     -370920,        0,      898,      217
EvalTopicMobility        ,                                                 Knight trapped by opp pawns,     N,         62,        -150,        -150,        -150,       -9300,        0,      950,      275
EvalTopicMobility        ,                                                 Knight trapped by own pawns,     N,        411,        -220,        -150,        -150,      -62000,        0,      899,      237
EvalTopicMobility        ,                                              Low mobility piece on the edge,     N,       4426,         -20,         -20,         -20,      -88520,        0,      950,      186
EvalTopicMobility        ,                                              Low mobility piece on the edge,     B,       7956,         -20,         -20,         -20,     -159120,        0,      898,      149
EvalTopicMobility        ,                                              Low mobility piece on the edge,     R,      34671,         -20,         -20,         -20,     -693420,        0,      873,       94
EvalTopicMobility        ,                                              Low mobility piece on the edge,     Q,       1697,         -20,         -20,         -20,      -33940,        0,      580,       68
EvalTopicMobility        ,                                                 Mobility piece square table,     P,     757472,           0,          37,           1,     1077850,        0,     1000,      330
EvalTopicMobility        ,                                                 Mobility piece square table,     N,     676835,          10,          32,          18,    12810776,        0,      950,      276
EvalTopicMobility        ,                                                 Mobility piece square table,     B,     822918,           8,          28,          16,    13442405,        0,      948,      335
EvalTopicMobility        ,                                                 Mobility piece square table,     R,    1409283,           4,          18,           8,    11388348,        0,      925,      421
EvalTopicMobility        ,                                                 Mobility piece square table,     Q,     784101,           2,           8,           4,     3295998,        0,      854,      289
EvalTopicMobility        ,                                                 Mobility piece square table,     K,     553180,           2,           5,           3,     1933907,        0,     1000,      498
EvalTopicMobility        ,                                                         Self trapped bishop,     B,          4,         -25,         -24,         -24,         -99,      495,      644,      541
EvalTopicMobility        ,                                                          Zero mobility king,     K,       4140,         -30,         -10,         -17,      -72486,        0,     1000,      374
EvalTopicMobility        ,                                         Zero mobility piece not on the edge,     N,        418,         -15,         -15,         -15,       -6270,        0,      750,       67
EvalTopicMobility        ,                                         Zero mobility piece not on the edge,     B,       1668,         -15,         -15,         -15,      -25020,        0,      896,      114
EvalTopicMobility        ,                                         Zero mobility piece not on the edge,     R,        221,         -15,         -15,         -15,       -3315,        0,      875,      365
EvalTopicMobility        ,                                         Zero mobility piece not on the edge,     Q,         77,         -15,         -15,         -15,       -1155,        0,      625,      187
EvalTopicMobility        ,                                             Zero mobility piece on the edge,     N,        558,         -40,         -40,         -40,      -22320,        0,      898,      190
EvalTopicMobility        ,                                             Zero mobility piece on the edge,     B,       6353,         -40,         -40,         -40,     -254120,        0,      896,       86
EvalTopicMobility        ,                                             Zero mobility piece on the edge,     R,       9067,         -40,         -40,         -40,     -362680,        0,      873,       76
EvalTopicMobility        ,                                             Zero mobility piece on the edge,     Q,        391,         -40,         -40,         -40,      -15640,        0,      623,       76
EvalTopicOutposts        ,                                   Bishop on 4th rank and backward opp pawns,     B,        205,           2,           6,           4,         918,        0,      898,      395
EvalTopicOutposts        ,                                   Knight on 4th rank and backward opp pawns,     N,        466,           3,           8,           6,        2816,        0,      899,      323
EvalTopicOutposts        ,                                   Knight on 4th rank and backward opp pawns,     B,        106,           2,           6,           4,         458,        0,      896,      443
EvalTopicOutposts        ,                      Knight on 5th rank and opp knight on adjacent 6th rank,     N,       2116,           2,           5,           4,        9852,        0,      847,      139
EvalTopicOutposts        ,                                  Minor outpost on 7th rank defended by pawn,     N,        149,          17,          30,          23,        3432,        0,      899,      465
EvalTopicOutposts        ,                                  Minor outpost on 7th rank defended by pawn,     B,        298,          17,          30,          20,        6221,        0,      898,      610
EvalTopicOutposts        ,                                                 Minor piece behind own pawn,     N,       4518,           6,          15,          12,       55287,        0,      950,      278
EvalTopicOutposts        ,                                                 Minor piece behind own pawn,     B,       7024,           5,          12,           9,       69601,        0,      898,      253
EvalTopicOutposts        ,                             Minor piece diagonally behind own minor outpost,     N,        210,           4,          10,           7,        1642,        0,      847,      306
EvalTopicOutposts        ,                             Minor piece diagonally behind own minor outpost,     B,        159,           4,          10,           7,        1223,        0,      847,      324
EvalTopicOutposts        ,                                      Minor piece diagonally behind own pawn,     N,       4605,           3,          10,           7,       36268,        0,      950,      304
EvalTopicOutposts        ,                                      Minor piece diagonally behind own pawn,     B,       4480,           3,           8,           5,       26495,        0,      898,      343
EvalTopicOutposts        ,                                   Minor piece more behind own minor outpost,     N,         34,           4,           8,           6,         214,        0,      646,      284
EvalTopicOutposts        ,                                   Minor piece more behind own minor outpost,     B,         32,           4,           8,           5,         185,        0,      700,      378
EvalTopicOutposts        ,                                      Minor piece near own pawn on same rank,     N,      11561,           3,          10,           8,       94262,        0,      950,      264
EvalTopicOutposts        ,                                      Minor piece near own pawn on same rank,     B,       7435,           2,           8,           5,       44439,        0,      948,      331
EvalTopicOutposts        ,                                             No pawn defended bishop outpost,     B,      21956,           4,         130,          33,      745205,        0,      948,      521
EvalTopicOutposts        ,                                             No pawn defended knight outpost,     N,      22221,           4,         120,          39,      866708,        0,      950,      481
EvalTopicOutposts        ,                                                 Outpost blocking enemy pawn,     N,       6181,          10,          10,          10,       61810,        0,      950,      367
EvalTopicOutposts        ,                                                 Outpost blocking enemy pawn,     B,       4348,          10,          10,          10,       43480,        0,      948,      450
EvalTopicOutposts        ,                                                           Penetration point,     .,     262604,           0,          10,           4,     1063522,        0,     1000,      417
EvalTopicOutposts        ,                                                    Permanent minor outposts,     N,       5364,           0,          43,          15,       85362,      205,      950,      664
EvalTopicOutposts        ,                                                    Permanent minor outposts,     B,       6622,           0,          41,          15,      104858,      159,      948,      687
EvalTopicOutposts        ,                                           Rook on 6th rank defended by pawn,     R,       1228,           5,          10,           6,        8585,        0,      925,      593
EvalTopicOutposts        ,                                     Rook on 6th rank twice defended by pawn,     R,         48,          11,          20,          15,         739,        0,      851,      458
EvalTopicOutposts        ,                                           Rook on 7th rank defended by pawn,     R,        467,          15,          15,          15,        7005,      101,      925,      655
EvalTopicOutposts        ,                                              Rook outpost blocking opp pawn,     R,       1694,           2,           4,           2,        5042,        0,      875,      544
EvalTopicOutposts        ,                                                    Rook outpost on 4th rank,     R,       5757,           1,           3,           1,       10677,        0,      925,      614
EvalTopicOutposts        ,                                                    Rook outpost on 5th rank,     R,       7298,           2,           5,           3,       22470,        0,      925,      631
EvalTopicOutposts        ,                                         Single pawn defended bishop outpost,     B,       4359,           6,         170,          50,      219584,        0,      948,      514
EvalTopicOutposts        ,                                         Single pawn defended knight outpost,     N,       5212,           5,         150,          53,      280115,        0,      950,      382
EvalTopicOutposts        ,                                                       Twice defended knight,     N,       1090,           1,          15,          11,       12527,        0,      950,      225
EvalTopicOutposts        ,                                          Twice pawn defended bishop outpost,     B,        315,           9,         205,          62,       19774,        0,      898,      522
EvalTopicOutposts        ,                                          Twice pawn defended knight outpost,     N,       1116,           8,         174,          71,       79955,        0,      950,      298
EvalTopicOutposts        ,       Twice pawn defended knight outpost on 5th rank and no opp pawns ahead,     N,        269,           1,          10,           6,        1743,        0,      950,      354
EvalTopicOutposts        ,                                                Unretreatable knight outpost,     N,        311,         -15,         -15,         -15,       -4665,        0,      950,      391
EvalTopicOutposts        ,                                                             Useless outpost,     N,       3091,         -30,         -11,         -21,      -67810,        0,      950,      403
EvalTopicOutposts        ,                                                             Useless outpost,     B,       3458,         -30,         -11,         -20,      -70824,        0,      948,      476
EvalTopicImbalances      ,                                                                 Bishop pair,     .,      61793,          30,          47,          32,     2031843,        0,      846,      143
EvalTopicImbalances      ,                                               Bishop pair and no opp bishop,     .,       1794,          20,          20,          20,       35880,      154,      846,      442
EvalTopicImbalances      ,                                                                 Knight pair,     .,      48985,         -28,         -10,         -12,     -601318,        0,      899,      114
EvalTopicImbalances      ,                                                                 More pieces,     .,      14545,          20,         100,          21,      311640,       50,      950,      490
EvalTopicImbalances      ,                                        One more piece and opp color bishops,     .,       2023,          50,          50,          50,      101150,       52,      846,      392
EvalTopicImbalances      ,                                          Queen and bishop vs queen and rook,     .,       2230,           8,           8,           8,       17840,      127,      581,      379
EvalTopicImbalances      ,                                                            Queen and knight,     .,      91139,          15,          15,          15,     1367085,        0,      804,      153
EvalTopicImbalances      ,                                                       Queen and two knights,     .,      42925,           7,           7,           7,      300475,        0,      653,       62
EvalTopicImbalances      ,                                                                  Queen pair,     .,         57,          15,          38,          24,        1409,       60,      633,      391
EvalTopicImbalances      ,                                                             Rook and bishop,     .,     128450,          10,          10,          10,     1284500,        0,      873,      269
EvalTopicImbalances      ,                                                     Rook and minor vs queen,     .,       1114,          60,          60,          60,       66840,      231,      729,      615
EvalTopicImbalances      ,                                                Rook and two minors vs queen,     .,        166,          93,         107,          96,       15980,      321,      677,      594
EvalTopicImbalances      ,                                                          Rook bishop knight,     .,      93181,          10,          10,          10,      931810,        0,      773,      178
EvalTopicImbalances      ,                                                                   Rook pair,     .,     114152,         -10,         -10,         -10,    -1141520,        0,      800,      220
EvalTopicImbalances      ,                                                          Rook pair vs queen,     .,        563,          33,          38,          33,       19001,      209,      705,      623
EvalTopicImbalances      ,                                                       Three minors vs queen,     .,         58,          32,          48,          39,        2293,      299,      701,      512
EvalTopicImbalances      ,                                                        Three minors vs rook,     .,         56,          70,          70,          70,        3920,      227,      773,      551
EvalTopicImbalances      ,                                                   Three minors vs two rooks,     .,         18,          15,          15,          15,         270,      302,      698,      517
EvalTopicImbalances      ,                                                         Two minors vs queen,     .,        290,          40,          40,          40,       11600,      248,      753,      558
EvalTopicImbalances      ,                                                          Two minors vs rook,     .,       1511,          12,          18,          14,       21212,      175,      825,      594
EvalTopicImbalances      ,                                                Two rooks and minor vs queen,     .,         80,         150,         150,         150,       12000,      347,      654,      598
EvalTopicKingSafety      ,                                               Ability to immediately castle,     K,      12742,           3,          10,           8,      112227,        0,      748,      119
EvalTopicKingSafety      ,                                                  All storming pawns blocked,     .,         75,         -50,           0,         -26,       -1971,        0,     1000,      476
EvalTopicKingSafety      ,                                               Backward pawn in king shelter,     P,       4947,         -20,         -10,         -15,      -76633,        0,     1000,      450
EvalTopicKingSafety      ,                                               Bishop attacking king shelter,     B,      74926,          10,          15,          13,      981524,        0,      948,      369
EvalTopicKingSafety      ,                           Bishop attacking three empty king shelter squares,     B,          6,           2,           8,           4,          26,      497,      896,      734
EvalTopicKingSafety      ,                                  Bishop defending weak spot in king shelter,     B,      15410,           1,          10,           7,      118216,        0,      948,      233
EvalTopicKingSafety      ,                                                         Bishop on king side,     B,     104575,           0,           5,           3,      378612,        0,      948,      259
EvalTopicKingSafety      ,                                    Bishop pair with kings on opposite sides,     .,       6017,           2,          15,          11,       66204,        0,      846,      259
EvalTopicKingSafety      ,                          Bishop shelter attacks with opposite color bishops,     B,      27401,          10,          15,          12,      334474,       52,      948,      555
EvalTopicKingSafety      ,                                          Bishop xray attacking king shelter,     B,      48682,           5,           8,           7,      352243,        0,      948,      272
EvalTopicKingSafety      ,                                              Blocked storming pawn kingside,     P,      38154,           8,         157,          27,     1061917,        0,     1000,      406
EvalTopicKingSafety      ,                                             Blocked storming pawn queenside,     P,       6324,           8,         144,          37,      237970,        0,     1000,      571
EvalTopicKingSafety      ,                              Center pawns filling the gap to storming pawns,     P,      51728,           0,           8,           5,      296860,        0,     1000,      276
EvalTopicKingSafety      ,                             Color deficiency with weak spot in king shelter,     .,       3891,         -38,          -2,         -21,      -84045,       52,      948,      461
EvalTopicKingSafety      ,                                                Doubled pawn in king shelter,     P,       4234,         -15,          -8,         -12,      -51154,        0,     1000,      428
EvalTopicKingSafety      ,                                      Edge storming pawn blocked by opp king,     P,        293,         -80,          -4,         -28,       -8418,        0,      950,      640
EvalTopicKingSafety      ,                                            Exposed king with blocked center,     K,        108,           0,          15,           9,         981,        0,     1000,      394
EvalTopicKingSafety      ,                                                                  Fianchetto,     B,      19911,           1,          15,          12,      243404,        0,      948,      177
EvalTopicKingSafety      ,                                               Immobile pawn in king shelter,     P,       3959,         -20,           0,         -11,      -47331,        0,     1000,      402
EvalTopicKingSafety      ,                                               Isolated pawn in king shelter,     P,      13826,         -20,         -10,         -13,     -192715,        0,     1000,      607
EvalTopicKingSafety      ,                                   King in center sheltered by defended pawn,     K,       5641,           0,           7,           4,       22588,        0,     1000,      431
EvalTopicKingSafety      ,                              King in semi center sheltered by defended pawn,     K,       1344,           0,           4,           2,        2718,        0,     1000,      502
EvalTopicKingSafety      ,                                                   King on fully closed side,     K,         79,           3,          30,          20,        1599,        0,      899,      327
EvalTopicKingSafety      ,                                                      King safety queen pins,     B,       1515,          40,          80,          76,      116560,        0,      502,       38
EvalTopicKingSafety      ,                                               Knight attacking king shelter,     N,      42250,          13,          20,          17,      721785,        0,      950,      421
EvalTopicKingSafety      ,                                  Knight defending weak spot in king shelter,     N,       8880,           0,           5,           3,       32550,        0,      950,      248
EvalTopicKingSafety      ,                                          Knight near king on edge in corner,     N,         68,           4,          12,           8,         546,       50,      899,      440
EvalTopicKingSafety      ,                                                         Knight on king side,     N,      84864,           1,          10,           7,      641568,        0,      950,      245
EvalTopicKingSafety      ,                      Minor outpost stopping opp rook on open file near king,     N,        214,           2,          15,           6,        1489,        0,      875,      538
EvalTopicKingSafety      ,                      Minor outpost stopping opp rook on open file near king,     B,        174,           2,          13,           6,        1131,      101,      873,      570
EvalTopicKingSafety      ,                 Minor piece controling square in front of opp storming pawn,     N,      10513,           1,          10,           7,       77544,        0,      950,      264
EvalTopicKingSafety      ,                 Minor piece controling square in front of opp storming pawn,     B,      10150,           1,          10,           6,       68669,        0,      948,      326
EvalTopicKingSafety      ,                 Minor piece controling square in front of own storming pawn,     N,       9216,           1,          10,           7,       67731,        0,      950,      267
EvalTopicKingSafety      ,                 Minor piece controling square in front of own storming pawn,     B,       6163,           1,          10,           6,       37295,        0,      948,      398
EvalTopicKingSafety      ,                                          Minor piece defending king shelter,     N,      53125,           0,           5,           3,      191705,        0,      950,      264
EvalTopicKingSafety      ,                                          Minor piece defending king shelter,     B,      68229,           0,           5,           3,      235866,        0,      948,      295
EvalTopicKingSafety      ,                                                    Minor piece king shelter,     N,      18250,           7,          15,          11,      217487,        0,      950,      383
EvalTopicKingSafety      ,                                                    Minor piece king shelter,     B,      48694,           7,          15,          12,      627810,        0,      948,      257
EvalTopicKingSafety      ,                                     Minor piece on 3rd rank in king shelter,     N,      37633,           0,           8,           6,      260218,        0,      950,      129
EvalTopicKingSafety      ,                                     Minor piece on 3rd rank in king shelter,     B,      10878,           0,           8,           6,       66070,        0,      948,      231
EvalTopicKingSafety      ,                                         No pawn on 2nd rank in king shelter,     .,      24357,         -20,           0,          -8,     -213408,        0,     1000,      562
EvalTopicKingSafety      ,                                                             No pawn shelter,     .,      33598,         -70,           0,         -18,     -635049,        0,     1000,      729
EvalTopicKingSafety      ,                                               Opener storming pawn kingside,     P,       8951,           0,          40,           5,       45470,        0,     1000,      328
EvalTopicKingSafety      ,                                              Opener storming pawn queenside,     P,       1044,           0,          36,           4,        4811,        0,     1000,      464
EvalTopicKingSafety      ,                                                        Pawn in king shelter,     P,     363579,          15,          30,          25,     9191239,        0,     1000,      309
EvalTopicKingSafety      ,                                                Queen attacking king shelter,     Q,      42913,          37,          50,          44,     1923781,        0,      854,      338
EvalTopicKingSafety      ,                                                          Queen on king side,     Q,      38291,           3,          20,          14,      548267,        0,      854,      285
EvalTopicKingSafety      ,                                       Queen on same closed file as opp king,     Q,       3914,           2,           8,           6,       23541,        0,      779,      237
EvalTopicKingSafety      ,                                           Queen xray attacking king shelter,     Q,      51082,          18,          25,          22,     1168966,        0,      854,      256
EvalTopicKingSafety      ,                                                 Rook attacking king shelter,     R,      45848,          21,          30,          23,     1097213,        0,      925,      607
EvalTopicKingSafety      ,                                    Rook on adjacent closed file as opp king,     R,      40901,           1,          12,          10,      411347,        0,      925,      169
EvalTopicKingSafety      ,                               Rook on adjacent semi closed file as opp king,     R,       4898,           1,           7,           4,       20852,        0,      925,      401
EvalTopicKingSafety      ,                Rook on b or g open file with opp king on adjacent edge file,     R,        762,           2,          20,           9,        6977,        0,      925,      542
EvalTopicKingSafety      ,                                                           Rook on king side,     R,     126443,           1,          15,          10,     1337991,        0,      925,      288
EvalTopicKingSafety      ,                       Rook on open edge file with opp king on adjacent file,     R,       1116,           3,          40,          20,       22868,        0,      925,      488
EvalTopicKingSafety      ,                                        Rook on same closed file as opp king,     R,       3342,           2,          15,           9,       33399,        0,      875,      328
EvalTopicKingSafety      ,                                   Rook on same semi closed file as opp king,     R,       1391,           1,          10,           4,        6607,        0,      925,      522
EvalTopicKingSafety      ,                                            Rook xray attacking king shelter,     R,      59035,          10,          15,          13,      769165,        0,      925,      376
EvalTopicKingSafety      ,                                          Semi backward pawn in king shelter,     P,       1053,          -8,          -1,          -5,       -5494,        0,      899,      340
EvalTopicKingSafety      ,                                     Single pawn on 3rd rank in king shelter,     P,       9418,         -10,           0,          -4,      -39825,        0,     1000,      579
EvalTopicKingSafety      ,                                            Temporary prevention of castling,     K,       1379,         -20,          -5,         -16,      -22723,        0,      747,      176
EvalTopicKingSafety      ,                                                                Trapped rook,     R,      29956,         -70,          -9,         -63,    -1913249,        0,      873,       88
EvalTopicKingSafety      ,                                         Twice backward pawn in king shelter,     P,         76,         -40,         -22,         -30,       -2307,        0,      898,      484
EvalTopicKingSafety      ,                                                Twice defended storming pawn,     P,        251,           3,          30,          21,        5280,        0,      899,      299
EvalTopicKingSafety      ,                                           Two semi open files near opp king,     .,      33625,           0,          30,           9,      311280,        0,     1000,      691
EvalTopicKingSafety      ,                                            Unblocked storming pawn kingside,     P,      76162,          12,         176,          38,     2965775,        0,     1000,      414
EvalTopicKingSafety      ,                                           Unblocked storming pawn queenside,     P,      13289,          12,         176,          49,      657857,        0,     1000,      566
EvalTopicKingSafety      ,                                                   Weak spot in king shelter,     .,      53554,         -20,           0,         -11,     -626441,        0,     1000,      416
...
Harald
Posts: 318
Joined: Thu Mar 09, 2006 1:07 am

Re: Playing with "The Secret of Chess"

Post by Harald »

...

Code: Select all

EvalTopicPieceActivity   ,                                          Bishop attacking opp defended pawn,     B,     205322,         -10,           0,           0,     -146849,        0,      948,      265
EvalTopicPieceActivity   ,                                                Bishop xray attacking center,     B,      11910,           4,           8,           7,       85999,        0,      948,      213
EvalTopicPieceActivity   ,                  Bishop xray attacking square in front of opp backward pawn,     B,       1520,           6,           6,           6,        9120,        0,      948,      345
EvalTopicPieceActivity   ,                                                     Continuous rook control,     R,       7805,           4,          15,          11,       88852,        0,      726,      234
EvalTopicPieceActivity   ,                                                             Defending pawns,     P,    2295285,           0,          10,           0,     1650434,        0,     1000,      336
EvalTopicPieceActivity   ,                                                              Direct Attacks,     P,    4194640,           0,         154,           0,      569475,        0,     1000,      335
EvalTopicPieceActivity   ,                                                              Direct Attacks,     N,     707000,           0,         110,           1,     1052933,        0,      950,      240
EvalTopicPieceActivity   ,                                                              Direct Attacks,     B,     821288,           0,         100,           1,     1344772,        0,      948,      265
EvalTopicPieceActivity   ,                                                              Direct Attacks,     R,    1151180,           0,          90,           1,     1159863,        0,      925,      305
EvalTopicPieceActivity   ,                                                              Direct Attacks,     Q,     482976,           0,          97,           3,     1715447,        0,      854,      221
EvalTopicPieceActivity   ,                                                              Direct Attacks,     K,     999360,           0,         122,           0,      402812,        0,     1000,      412
EvalTopicPieceActivity   ,                                                   Doubled rook file control,     R,       6427,           3,          15,           9,       59751,        0,      776,      375
EvalTopicPieceActivity   ,                                                              Hanging bishop,     B,      30284,         -10,          -7,          -9,     -273116,        0,      948,      343
EvalTopicPieceActivity   ,                                                              Hanging knight,     N,      49585,         -10,          -7,          -9,     -460182,        0,      950,      256
EvalTopicPieceActivity   ,                                                                Hanging pawn,     P,     274722,          -3,          -2,          -2,     -750845,        0,     1000,      329
EvalTopicPieceActivity   ,                                                               Hanging queen,     Q,       8959,         -30,         -21,         -26,     -240922,        0,      854,      304
EvalTopicPieceActivity   ,                                                                Hanging rook,     R,      22493,         -20,         -17,         -18,     -421722,        0,      925,      418
EvalTopicPieceActivity   ,                                                                   King pins,     B,       4028,          47,          90,          78,      318145,        0,      948,      243
EvalTopicPieceActivity   ,                                                                   King pins,     R,       4405,          32,          60,          43,      190708,        0,      925,      557
EvalTopicPieceActivity   ,                                                                   King pins,     Q,       5646,          25,          45,          37,      212605,        0,      854,      320
EvalTopicPieceActivity   ,                                         Knight attack threat upon opp queen,     N,     134837,           0,          16,           1,      248731,        0,      804,      126
EvalTopicPieceActivity   ,                                          Knight attacking opp defended pawn,     N,     176750,         -20,           0,           0,     -158512,        0,      950,      240
EvalTopicPieceActivity   ,                                    Minor outpost stopping rook on open file,     N,        778,          11,          20,          16,       12719,        0,      875,      369
EvalTopicPieceActivity   ,                                    Minor outpost stopping rook on open file,     B,        505,          11,          20,          15,        7753,        0,      873,      472
EvalTopicPieceActivity   ,           Minor piece attacking 1st or 2nd rank square attacked by opp rook,     N,       8628,           1,           8,           4,       42596,        0,      875,      378
EvalTopicPieceActivity   ,           Minor piece attacking 1st or 2nd rank square attacked by opp rook,     B,      10514,           1,           8,           4,       48769,        0,      873,      414
EvalTopicPieceActivity   ,                  Minor piece attacking 8th rank square attacked by opp rook,     N,       1535,           2,          15,           8,       12881,        0,      875,      441
EvalTopicPieceActivity   ,                  Minor piece attacking 8th rank square attacked by opp rook,     B,       3398,           2,          15,           8,       27810,        0,      873,      453
EvalTopicPieceActivity   ,                                 Minor piece defending central isolated pawn,     P,      12340,           0,          16,           1,       24296,        0,     1000,      438
EvalTopicPieceActivity   ,                                           Minor piece defending passed pawn,     P,     101506,           0,          24,           1,      143892,        0,     1000,      611
EvalTopicPieceActivity   ,                                                                Pawn defence,     N,      65881,          10,          15,          14,      931054,        0,      950,      151
EvalTopicPieceActivity   ,                                                                Pawn defence,     B,      25789,           7,          10,           9,      239844,        0,      948,      251
EvalTopicPieceActivity   ,                                                                Pawn defence,     R,      12243,           3,           5,           4,       50359,        0,      925,      477
EvalTopicPieceActivity   ,                                                                Pawn defence,     Q,      14167,           2,           3,           2,       40707,        0,      854,      265
EvalTopicPieceActivity   ,                                          Pawn support for rook on open file,     R,      32288,           2,           5,           3,      119934,        0,      925,      435
EvalTopicPieceActivity   ,                                                               Piece defence,     N,     707000,           0,          20,           2,     1519770,        0,      950,      240
EvalTopicPieceActivity   ,                                                               Piece defence,     B,     821288,           0,          30,           1,     1380266,        0,      948,      265
EvalTopicPieceActivity   ,                                                               Piece defence,     R,     863385,           0,          16,           1,     1047007,        0,      925,      305
EvalTopicPieceActivity   ,                                                               Piece defence,     Q,     241488,           0,           6,           0,      172154,        0,      854,      221
EvalTopicPieceActivity   ,                                                            Potential checks,     N,     176750,           0,          30,           1,      332422,        0,      950,      240
EvalTopicPieceActivity   ,                                                            Potential checks,     B,     205322,           0,          25,           0,      120115,        0,      948,      265
EvalTopicPieceActivity   ,                                                            Potential checks,     R,     287795,           0,          46,           1,      316414,        0,      925,      305
EvalTopicPieceActivity   ,                                                            Potential checks,     Q,     120744,           0,          85,           5,      653131,        0,      854,      221
EvalTopicPieceActivity   ,                                                 Potential discovered checks,     B,     205322,           0,          30,           0,        7074,        0,      948,      265
EvalTopicPieceActivity   ,                                                 Potential discovered checks,     R,     287795,           0,          60,           0,       39558,        0,      925,      305
EvalTopicPieceActivity   ,                                                 Potential discovered checks,     Q,     120744,           0,         120,           0,       50514,        0,      854,      221
EvalTopicPieceActivity   ,                                                        Potential pawn check,     P,       6234,           5,           7,           5,       34690,        0,     1000,      718
EvalTopicPieceActivity   ,                                            Preventing opp minor penetration,     P,      96605,           0,           5,           3,      349181,        0,      950,      258
EvalTopicPieceActivity   ,                                                    Queen and bishop battery,     B,     205322,           0,          18,           1,      364554,        0,      948,      265
EvalTopicPieceActivity   ,                                           Queen attacking opp defended pawn,     Q,     120744,         -30,           0,          -1,     -187252,        0,      854,      221
EvalTopicPieceActivity   ,                                                    Queen controlling center,     Q,      78939,           0,           3,           2,      177272,        0,      854,      253
EvalTopicPieceActivity   ,                                                          Queen on open file,     Q,      19885,           6,          10,           7,      159009,        0,      854,      377
EvalTopicPieceActivity   ,                                                     Queen on semi open file,     Q,      29142,           4,           7,           6,      181956,        0,      854,      209
EvalTopicPieceActivity   ,                                                                  Queen pins,     B,       2022,          25,          40,          38,       76845,        0,      727,      100
EvalTopicPieceActivity   ,                                                                  Queen pins,     R,       1897,          19,          30,          26,       49458,        0,      729,      255
EvalTopicPieceActivity   ,                                                 Queen xray attacking center,     Q,       6332,           0,           3,           2,       15348,        0,      854,      194
EvalTopicPieceActivity   ,                                                              Raking bishops,     B,       5865,           6,          10,           8,       51722,        0,      896,      217
EvalTopicPieceActivity   ,                                            Rook attacking opp defended pawn,     R,     287795,         -23,           0,           0,      -94446,        0,      925,      305
EvalTopicPieceActivity   ,                                                           Rook on open file,     R,      69971,          26,          40,          32,     2296516,        0,      925,      476
EvalTopicPieceActivity   ,                                              Rook on same file as opp queen,     R,      15412,           3,          15,          11,      184820,        0,      779,      191
EvalTopicPieceActivity   ,                                                      Rook on semi open file,     R,      51565,          11,          25,          19,     1003648,        0,      925,      364
EvalTopicPieceActivity   ,                      Rook on semi open file attacking a piece defended pawn,     R,      10916,          -5,          -2,          -4,      -43920,        0,      875,      340
EvalTopicPieceActivity   ,                                            Rook supporting pawn from behind,     R,      11710,           7,          10,           8,       94715,        0,      875,      366
EvalTopicPieceActivity   ,                                                               Royal battery,     Q,        199,          23,          40,          28,        5768,        0,      433,      281
EvalTopicPieceActivity   ,                                                          Safe bishop checks,     B,        359,          10,          15,          12,        4415,        0,      948,      542
EvalTopicPieceActivity   ,                                                          Safe knight checks,     N,        505,          21,          30,          23,       11690,        0,      950,      696
EvalTopicPieceActivity   ,                                                             Safe pawn check,     P,        203,          10,          10,          10,        2030,       50,     1000,      744
EvalTopicPieceActivity   ,                                                       Safe pawn push threat,     P,      24208,          15,          15,          15,      363120,        0,      950,      222
EvalTopicPieceActivity   ,                                                           Safe queen checks,     Q,       1776,          43,          60,          49,       87922,        0,      854,      524
EvalTopicPieceActivity   ,                                                            Safe rook checks,     R,       2039,          31,          39,          32,       66683,      101,      925,      728
EvalTopicPieceActivity   ,                                            Stopped bishop on long diagonals,     B,       6826,         -12,          -1,          -9,      -63083,        0,      948,      235
EvalTopicPieceActivity   ,                                                       Tactical lever threat,     P,      10071,           6,          12,          10,      105560,        0,     1000,      246
EvalTopicPieceActivity   ,                                                             Tactical levers,     P,       7952,           9,          11,          10,       84796,        0,     1000,      212
EvalTopicPieceActivity   ,                                                        Tactical pawn threat,     P,       1315,          15,          20,          18,       24674,        0,      925,      230
EvalTopicPieceActivity   ,                                                           Undefended pieces,     N,      24072,         -15,         -10,         -12,     -305750,        0,      950,      462
EvalTopicPieceActivity   ,                                                           Undefended pieces,     B,      48733,         -15,         -10,         -13,     -634284,        0,      948,      391
EvalTopicPieceActivity   ,                                                           Undefended pieces,     R,     101569,         -10,          -7,          -8,     -898243,        0,      925,      397
EvalTopicPieceActivity   ,                                                        Unsafe bishop checks,     B,        165,           6,           8,           7,        1213,        0,      873,      350
EvalTopicPieceActivity   ,                                                        Unsafe knight checks,     N,        381,          11,          20,          15,        6094,        0,      899,      402
EvalTopicPieceActivity   ,                                                           Unsafe pawn check,     P,        143,           5,           5,           5,         715,        0,     1000,      654
EvalTopicPieceActivity   ,                                                     Unsafe pawn push threat,     P,      56596,           8,           8,           8,      452768,        0,      950,      275
EvalTopicPieceActivity   ,                                                         Unsafe queen checks,     Q,        167,          11,          14,          12,        2154,      101,      752,      412
EvalTopicPieceActivity   ,                                                          Unsafe rook checks,     R,        351,          10,          15,          12,        4458,       75,      925,      459
EvalTopicPieceActivity   ,                                                               X-ray attacks,     B,    2053220,           0,          34,           0,      413080,        0,      948,      265
EvalTopicPieceActivity   ,                                                               X-ray attacks,     R,    2877950,           0,          30,           0,      778970,        0,      925,      305
EvalTopicPieceActivity   ,                                                               X-ray attacks,     Q,    1207440,           0,          34,           0,      669411,        0,      854,      221
EvalTopicPieceActivity   ,                                             X-ray past three pieces attacks,     B,    1026610,           0,           6,           0,       40319,        0,      948,      265
EvalTopicPieceActivity   ,                                             X-ray past three pieces attacks,     R,    1438975,           0,           6,           0,      250311,        0,      925,      305
EvalTopicPieceActivity   ,                                             X-ray past three pieces attacks,     Q,     603720,           0,           7,           0,      125199,        0,      854,      221
EvalTopicPieceActivity   ,                                               X-ray past two pieces attacks,     B,    1026610,           0,          13,           0,      105529,        0,      948,      265
EvalTopicPieceActivity   ,                                               X-ray past two pieces attacks,     R,    1438975,           0,          12,           0,      531611,        0,      925,      305
EvalTopicPieceActivity   ,                                               X-ray past two pieces attacks,     Q,     603720,           0,          14,           0,      277362,        0,      854,      221
EvalTopicScaling         ,                                                               Closed center,     .,       3263,           0,           0,           0,           0,        0,     1000,      237
EvalTopicScaling         ,                                       Closed center original mobility value,     .,       6526,        -325,         524,         165,     1079493,        0,     1000,      237
EvalTopicScaling         ,                                    Closed center scaled down mobility value,     .,       6526,        -228,         353,         126,      825427,        0,     1000,      237
EvalTopicScaling         ,                          General scaling (general endgame scaling) original,     .,       2593,         -79,          79,           2,        6828,      752,     1000,      862
EvalTopicScaling         ,                            General scaling (general endgame scaling) scaled,     .,       2593,         -39,          39,           1,        3379,      752,     1000,      862
EvalTopicScaling         ,                          General scaling (one pawn in the endgame) original,     .,        116,        -149,         149,           4,         534,      456,     1000,      785
EvalTopicScaling         ,                            General scaling (one pawn in the endgame) scaled,     .,        116,        -104,         104,           3,         373,      456,     1000,      785
EvalTopicScaling         ,                           General scaling (opposite color bishops) original,     .,       1940,         -99,          99,           3,        7032,      104,      896,      539
EvalTopicScaling         ,                             General scaling (opposite color bishops) scaled,     .,       1940,         -47,          47,           1,        2870,      104,      896,      539
EvalTopicScaling         ,                         General scaling (pairs of bishops endgame) original,     .,       5900,         -99,          99,           6,       40331,        0,      792,       81
EvalTopicScaling         ,                           General scaling (pairs of bishops endgame) scaled,     .,       5900,         -79,          79,           5,       32053,        0,      792,       81
EvalTopicScaling         ,                                    General scaling (pawn symmetry) original,     .,       2741,         -49,          49,           1,        3028,        0,     1000,      247
EvalTopicScaling         ,                                      General scaling (pawn symmetry) scaled,     .,       2741,         -24,          24,           0,        1500,        0,     1000,      247
EvalTopicScaling         ,           General scaling (reduced number of pawns in the endgame) original,     .,        148,         -99,          99,          15,        2309,      227,     1000,      722
EvalTopicScaling         ,             General scaling (reduced number of pawns in the endgame) scaled,     .,        148,         -49,          49,           7,        1147,      227,     1000,      722
EvalTopicScaling         ,            General scaling (rook vs queen fortress in the endgame) original,     .,          1,        -650,        -650,        -650,        -650,      779,      779,      779
EvalTopicScaling         ,              General scaling (rook vs queen fortress in the endgame) scaled,     .,          1,           0,           0,           0,           0,      779,      779,      779
EvalTopicScaling         ,                  General scaling (too closed positions on 7 files) original,     .,          4,         -95,          16,         -37,        -151,        0,      898,      398
EvalTopicScaling         ,                    General scaling (too closed positions on 7 files) scaled,     .,          4,           0,           0,           0,           0,        0,      898,      398
EvalTopicScaling         ,                  General scaling (too closed positions on 8 files) original,     .,          1,        -183,        -183,        -183,        -183,        0,        0,        0
EvalTopicScaling         ,                    General scaling (too closed positions on 8 files) scaled,     .,          1,           0,           0,           0,           0,        0,        0,        0
This table can answer questions like
- Which evaluation features are most common?
- What are the mean scores and which features have the greatest impact?
- In which game phase can the features be applied?
- And may be many more.

What next?
- May be I implement a Texel tuning for all parameters or at least for Topic modification factors.
- If an evaluation like this is given to a neural net or other training program what will it learn?
- May be I implement some missing endgame evaluation (like the rule of the square)
- May be I fix some errors in my Elephant engine.

I am not sure if and how I can or want to give the source code or the program to the public.
At least I do not want to violate any copyright.
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: Playing with "The Secret of Chess"

Post by carldaman »

Is there a copyright issue here? For example, ShashChess is an open-source implementation of Shashin's published algorithm, incorporated into Stockfish.

Building on Lyudmil's SoC is a fascinating idea. I hope you succeed! :)
Henk
Posts: 7216
Joined: Mon May 27, 2013 10:31 am

Re: Playing with "The Secret of Chess"

Post by Henk »

Elephant better name than Victoria. Because you deserve it
User avatar
lithander
Posts: 881
Joined: Sun Dec 27, 2020 2:40 am
Location: Bremen, Germany
Full name: Thomas Jahn

Re: Playing with "The Secret of Chess"

Post by lithander »

Very interesting and inspiring!

I can totally imagine why this eval might be expensive to compute. :)

Have you tried to play against another engine where you allow each engine to evaluate a fixed number of nodes instead of giving them a time budget? In that case the performance of the eval wouldn't have any impact on the outcome. Only the quality of the evaluation. I'd be curious how it would compare to the more established eval approaches, then?
Minimal Chess (simple, open source, C#) - Youtube & Github
Leorik (competitive, in active development, C#) - Github & Lichess
Branko Radovanovic
Posts: 89
Joined: Sat Sep 13, 2014 4:12 pm
Location: Zagreb, Croatia
Full name: Branko Radovanović

Re: Playing with "The Secret of Chess"

Post by Branko Radovanovic »

Let me just say kudos, finally someone has done it! Actually implementing all L. Tsvetkov's eval terms and letting some ML process decide about the weights is something I've been thinking about for a long time, but unfortunately it requires much more time than I have.

I find Tsvetkov's work fascinating. The only thing he got wrong, in my opinion, is that he tended to vastly overestimate the centipawn impact of most of his eval terms. I have no doubt that a hypothetical engine with weights implemented exactly as suggested by him would play awfully. However, that's what tuning is for - these weights, and not just eval features, are the true "secret of chess".

Have you by any chance tried ridge regression? It is a simple method to get rid of multicollinearity and junk variables.
Harald
Posts: 318
Joined: Thu Mar 09, 2006 1:07 am

Re: Playing with "The Secret of Chess"

Post by Harald »

Copyright issue?
The book has a copyright notice. And I took all features and all numbers from the book.
On the other hand this is a C++ program and not a text. That is much more than a translation. Ideas and algorithms
in software are free anyway (or should be). Most of the features are well known and just collected and given weights.
I think I have no real problem here.

Fixed number of nodes?
Good idea. I just don't have the time and resources to try everything that is interesting. It was just last saturday that the
TSoC evaluation and the logging was running for the first time. I am also not great at using Winboard or another GUI
and juggling with engines and their commands.

"The only thing he (Lyudmil Tsvetkov) got wrong, is that he tended to vastly overestimate the centipawn impact of most of his eval terms."
May be. In my own very first few tests (less than 10 games against FairyMax) with this evaluation in the search my
engine played strange. May be positional but surely giving away some wood easily. It played better with the positional feature scores
reduced to 50 percent. That is why my next goal is to texel tune these chapters/topics/functions with a midgame and endgame factor.
I am still writing my first Texel tuning function. Tuning of all (roughly) 370 * 2 (midgame/endgame) evaluation values
and the 50 * 2 (mg/eg) piece square tables (* 2 for White/Black) is a lot of work and takes some time.
That are up to 7140 parameters to tune or 3940 using symmetric PSQTs.

Also I think the book is missing a whole chapter about special endgame evaluation.

Have you by any chance tried ridge regression?
No. I had to google that. And despite my mathematical background some web pages with that look too complicated.
I need a cookbook example or a simple explanation for that. Don't bother. Typically I come up with some
unproven and instant ideas for a better tuning result. Like weighting mg/eg errors depending on mg/eg interpolation
in the example positions.

If I was a careful software developer I should first complete a test with all 536 FEN positions from the book
that I have written in a test file and check each logged evaluation against the comments from the book.
Does the evaluation find the same things that Lyudmil mentions? Until now I just looked up some of the results.

I am pleased that this nearly unnoticed thread finally found some interest in the group. Thanks for reading!
Branko Radovanovic
Posts: 89
Joined: Sat Sep 13, 2014 4:12 pm
Location: Zagreb, Croatia
Full name: Branko Radovanović

Re: Playing with "The Secret of Chess"

Post by Branko Radovanovic »

Harald wrote: Wed Feb 03, 2021 6:30 pm Have you by any chance tried ridge regression?
No. I had to google that. And despite my mathematical background some web pages with that look too complicated.
I need a cookbook example or a simple explanation for that. Don't bother. Typically I come up with some
unproven and instant ideas for a better tuning result. Like weighting mg/eg errors depending on mg/eg interpolation
in the example positions.
I've taken a look and most Google hits explain it terribly.

The thing is: normally, you minimize MSE. With ridge regression, you minimize MSE+lambda*sum(c.i^2) (i.e. MSE + lambda times sum of squared coefficients of the model).

Lambda is a free parameter. As you increase lambda, the solver is forced to shrink the coefficients, and the first to get shrunk and ultimately disappear are those with the least contribution to model fit. By pushing lambda up, you can drive the number of non-zero coefficients as low as you like. Simple as that. (Okay, one needs to normalize the variables too, that's the boring part.) In this way, one can get rid of eval terms which are redundant or just useless. Anyway, just an idea.
matejst
Posts: 364
Joined: Mon May 14, 2007 8:20 pm
Full name: Boban Stanojević

Re: Playing with "The Secret of Chess"

Post by matejst »

Great idea, Harald! I wish you a lot of success in this endeavor. Despite NNs, understanding evaluation is very important, perhaps the most important thing -- and probably the most difficult -- in computerchess.