New Tool : Strategic-Insight.exe

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

Moderator: Ras

User avatar
Rebel
Posts: 7382
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

New Tool : Strategic-Insight.exe

Post by Rebel »

Measure Strategic Insight / Dominance of engines.

From a PGN comp-comp match with various strong engines measure each game for Strategic Insight / Dominance over the opponent and when present save those games into a new PGN. Best demonstrated with an example from practice.


[pgn][Event "Best of Chess"]
[Site "Evaluation Strategic Insight"]
[Date "2025.07.19"]
[White "CSTal-2.1-EAS"]
[Black "Igel-3.30"]
[Result "1-0"]
[PlyCount "74"]
[StrategicInsight "2155"]

{26=1000} {27=1155} 1. d4 {book} d5 {book} 2. Bg5 {book} f6 {book} 3. Bd2 {book} Nc6 {book} 4. e3 {book} e5 {book} 5. Bb5 {book} exd4 {book} 6. exd4 {book} Be6 {book} 7. Nc3 {+0.46/14 0.60s} Qd7 {+0.14/17 0.51s} 8. Nge2 {+0.27/14 0.34s} a6 {+0.28/18 0.48s} 9. Ba4 {+0.19/15 0.35s} Bf7 {+0.42/17 0.35s} 10. Nf4 {+0.29/14 0.34s} Nge7 {+0.35/17 0.45s} 11. O-O {+1.00/14 0.36s} b5 {+0.22/19 0.41s} 12. Bb3 {+0.84/14 0.33s} Nxd4 {+0.07/17 0.40s} 13. Re1 {+0.72/14 0.39s} O-O-O {+1.14/17 0.40s} 14. Be3 {+0.35/16 0.63s} Ndf5 {+1.10/17 0.42s} 15. a4 {+0.46/12 0.19s} b4 {+1.12/16 0.38s} 16. Qe2 {+1.22/13 0.32s} Qc6 {+0.18/17 0.36s} 17. Nb5 {+1.34/14 0.41s} Kb7 {+0.07/16 0.35s} 18. Nd3 {+1.98/13 0.26s} Nxe3 {+1.49/16 0.35s} 19. Nd4 {+1.07/14 0.31s} Qd6 {+0.57/17 0.33s} 20. Qxe3 {+0.96/13 0.19s} Ng6 {+0.83/17 0.34s} 21. Nf5 {+0.77/13 0.67s} Qb6 {+1.89/17 0.34s} 22. Qf3 {+0.40/13 0.48s} c5 {+1.34/17 0.35s} 23. a5 {+1.20/12 0.18s} Qc7 {+1.83/18 0.30s} 24. c4 {+0.11/14 0.28s} bxc3 {+0.90/16 0.30s} 25. bxc3 {+1.27/14 0.18s} c4 {+0.53/17 0.28s} 26. Reb1 {+2.00/14 0.26s} cxb3 {+1.38/16 0.27s} 27. Rxb3+ {+2.31/15 0.14s} Ka8 {+0.64/17 0.27s} 28. Rb6 {+1.93/15 0.19s} Qc8 {+0.95/18 0.26s} 29. Rab1 {+1.72/15 0.49s} Rd7 {+0.91/16 0.24s} 30. Qe2 {+1.72/13 0.35s} Be7 {+0.72/16 0.24s} 31. Nb2 {+2.40/12 0.27s} Ka7 {+1.91/14 0.23s} 32. Na4 {+3.97/13 0.14s} Rc7 {+3.21/13 0.21s} 33. Qe3 {+9.52/14 0.15s} Ka8 {-2.35/16 0.19s} 34. Nd6 {+10.10/17 0.21s} Ra7 {-7.67/13 0.19s} 35. R6b3 {+M29/17 0.16s} Bxd6 {-14.43/14 0.17s} 36. Nb6+ {+M21/26 0.051s} Kb7 {-15.86/17 0.17s} 37. Nxc8+ {+M19/30 0.067s} Kxc8 {-16.23/17 0.14s, White wins by adjudication} 1-0
[/pgn]

PGN tag : [StrategicInsight "2155"]

Note, it lists at the start the critical move or moves (labeled as Strategic Insight), move 26 and move 27 in the game rewarded with a bonus.

26=1000
27=1155

If we look at the moves in detail -

26. Reb1 {+2.00/14 0.26s} cxb3 {+1.38/16 0.27s}
27. Rxb3+ {+2.31/15 0.14s} Ka8 {+0.64/17 0.27s}
28. Rb6 {+1.93/15 0.19s} Qc8 {+0.95/18 0.26s}
29. Rab1 {+1.72/15 0.49s} Rd7 {+0.91/16 0.24s}
30. Qe2 {+1.72/13 0.35s} Be7 {+0.72/16 0.24s}
31. Nb2 {+2.40/12 0.27s} Ka7 {+1.91/14 0.23s}
32. Na4 {+3.97/13 0.14s} Rc7 {+3.21/13 0.21s} ???
33. Qe3 {+9.52/14 0.15s} Ka8 {-2.35/16 0.19s} finally...

We see that black has no idea what is coming to him until 6 moves later.

That's the idea, extract those games into a new PGN.

The inner work, evaluating each won game, no draws. The tool uses a flexible parameter, the default score of +1.50, when an engine has a score of 1.50 or higher (say a score of 1.75) it starts to look at the score of the opponent for the next 2 moves, if both scores are still positive a bonus is given 2 x 1.75 = 350 points. Then it checks the third move of the opponent and if still positive 3 x 1.75 = 525 points. All the way up to 5 moves.

Look at the above game, move 26.Reb1 has a score of 2.00 and the opponent still had a positive score 5 moves later, thus the bonus becomes 5 x 200 = 1000, likewise for the next move 27. Rxb3+ {+2.31}, 5 x 231=1155.

Examples are rare, from an elo pool match of 3400 elo, each engine having played 15.000 games only few games are extracted.

Code: Select all

Engine            Games
CSTal-2.1-EAS      449 
Stockfish-17.1     351
Rebel-EAS-2.0      302
Rebel-Extreme-1.1  237
Rebel-Extreme      197
Velvet-8.1-Risky   192
Fritz-20           146
Patricia-4         118
Patricia-3.01      115
Patricia-5.0       102 
Games are included in the download.

You can tune the default value of 150 in the Strategic-Insight.ini file, a value of 100 will give you more PGN output, a value of 175 or higher less output.


90% of coding is debugging, the other 10% is writing bugs.
BrendanJNorman
Posts: 2584
Joined: Mon Feb 08, 2016 12:43 am
Full name: Brendan J Norman

Re: New Tool : Strategic-Insight.exe

Post by BrendanJNorman »

Rebel wrote: Sun Sep 14, 2025 9:28 pm Measure Strategic Insight / Dominance of engines.

From a PGN comp-comp match with various strong engines measure each game for Strategic Insight / Dominance over the opponent and when present save those games into a new PGN. Best demonstrated with an example from practice.


[pgn][Event "Best of Chess"]
[Site "Evaluation Strategic Insight"]
[Date "2025.07.19"]
[White "CSTal-2.1-EAS"]
[Black "Igel-3.30"]
[Result "1-0"]
[PlyCount "74"]
[StrategicInsight "2155"]

{26=1000} {27=1155} 1. d4 {book} d5 {book} 2. Bg5 {book} f6 {book} 3. Bd2 {book} Nc6 {book} 4. e3 {book} e5 {book} 5. Bb5 {book} exd4 {book} 6. exd4 {book} Be6 {book} 7. Nc3 {+0.46/14 0.60s} Qd7 {+0.14/17 0.51s} 8. Nge2 {+0.27/14 0.34s} a6 {+0.28/18 0.48s} 9. Ba4 {+0.19/15 0.35s} Bf7 {+0.42/17 0.35s} 10. Nf4 {+0.29/14 0.34s} Nge7 {+0.35/17 0.45s} 11. O-O {+1.00/14 0.36s} b5 {+0.22/19 0.41s} 12. Bb3 {+0.84/14 0.33s} Nxd4 {+0.07/17 0.40s} 13. Re1 {+0.72/14 0.39s} O-O-O {+1.14/17 0.40s} 14. Be3 {+0.35/16 0.63s} Ndf5 {+1.10/17 0.42s} 15. a4 {+0.46/12 0.19s} b4 {+1.12/16 0.38s} 16. Qe2 {+1.22/13 0.32s} Qc6 {+0.18/17 0.36s} 17. Nb5 {+1.34/14 0.41s} Kb7 {+0.07/16 0.35s} 18. Nd3 {+1.98/13 0.26s} Nxe3 {+1.49/16 0.35s} 19. Nd4 {+1.07/14 0.31s} Qd6 {+0.57/17 0.33s} 20. Qxe3 {+0.96/13 0.19s} Ng6 {+0.83/17 0.34s} 21. Nf5 {+0.77/13 0.67s} Qb6 {+1.89/17 0.34s} 22. Qf3 {+0.40/13 0.48s} c5 {+1.34/17 0.35s} 23. a5 {+1.20/12 0.18s} Qc7 {+1.83/18 0.30s} 24. c4 {+0.11/14 0.28s} bxc3 {+0.90/16 0.30s} 25. bxc3 {+1.27/14 0.18s} c4 {+0.53/17 0.28s} 26. Reb1 {+2.00/14 0.26s} cxb3 {+1.38/16 0.27s} 27. Rxb3+ {+2.31/15 0.14s} Ka8 {+0.64/17 0.27s} 28. Rb6 {+1.93/15 0.19s} Qc8 {+0.95/18 0.26s} 29. Rab1 {+1.72/15 0.49s} Rd7 {+0.91/16 0.24s} 30. Qe2 {+1.72/13 0.35s} Be7 {+0.72/16 0.24s} 31. Nb2 {+2.40/12 0.27s} Ka7 {+1.91/14 0.23s} 32. Na4 {+3.97/13 0.14s} Rc7 {+3.21/13 0.21s} 33. Qe3 {+9.52/14 0.15s} Ka8 {-2.35/16 0.19s} 34. Nd6 {+10.10/17 0.21s} Ra7 {-7.67/13 0.19s} 35. R6b3 {+M29/17 0.16s} Bxd6 {-14.43/14 0.17s} 36. Nb6+ {+M21/26 0.051s} Kb7 {-15.86/17 0.17s} 37. Nxc8+ {+M19/30 0.067s} Kxc8 {-16.23/17 0.14s, White wins by adjudication} 1-0
[/pgn]

PGN tag : [StrategicInsight "2155"]

Note, it lists at the start the critical move or moves (labeled as Strategic Insight), move 26 and move 27 in the game rewarded with a bonus.

26=1000
27=1155

If we look at the moves in detail -

26. Reb1 {+2.00/14 0.26s} cxb3 {+1.38/16 0.27s}
27. Rxb3+ {+2.31/15 0.14s} Ka8 {+0.64/17 0.27s}
28. Rb6 {+1.93/15 0.19s} Qc8 {+0.95/18 0.26s}
29. Rab1 {+1.72/15 0.49s} Rd7 {+0.91/16 0.24s}
30. Qe2 {+1.72/13 0.35s} Be7 {+0.72/16 0.24s}
31. Nb2 {+2.40/12 0.27s} Ka7 {+1.91/14 0.23s}
32. Na4 {+3.97/13 0.14s} Rc7 {+3.21/13 0.21s} ???
33. Qe3 {+9.52/14 0.15s} Ka8 {-2.35/16 0.19s} finally...

We see that black has no idea what is coming to him until 6 moves later.

That's the idea, extract those games into a new PGN.

The inner work, evaluating each won game, no draws. The tool uses a flexible parameter, the default score of +1.50, when an engine has a score of 1.50 or higher (say a score of 1.75) it starts to look at the score of the opponent for the next 2 moves, if both scores are still positive a bonus is given 2 x 1.75 = 350 points. Then it checks the third move of the opponent and if still positive 3 x 1.75 = 525 points. All the way up to 5 moves.

Look at the above game, move 26.Reb1 has a score of 2.00 and the opponent still had a positive score 5 moves later, thus the bonus becomes 5 x 200 = 1000, likewise for the next move 27. Rxb3+ {+2.31}, 5 x 231=1155.

Examples are rare, from an elo pool match of 3400 elo, each engine having played 15.000 games only few games are extracted.

Code: Select all

Engine            Games
CSTal-2.1-EAS      449 
Stockfish-17.1     351
Rebel-EAS-2.0      302
Rebel-Extreme-1.1  237
Rebel-Extreme      197
Velvet-8.1-Risky   192
Fritz-20           146
Patricia-4         118
Patricia-3.01      115
Patricia-5.0       102 
Games are included in the download.

You can tune the default value of 150 in the Strategic-Insight.ini file, a value of 100 will give you more PGN output, a value of 175 or higher less output.


Interesting idea, Ed.

And long time no talk.

You and Chris still working?

I need to catch up on computer chess lol.

May I ask, what strategic themes is this tool looking for specifically?
User avatar
Rebel
Posts: 7382
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: New Tool : Strategic-Insight.exe

Post by Rebel »

BrendanJNorman wrote: Mon Sep 15, 2025 4:01 am Interesting idea, Ed.

And long time no talk.

You and Chris still working?

I need to catch up on computer chess lol.

May I ask, what strategic themes is this tool looking for specifically?
Hey Brendan, where have you been this time ? :D

There is only one pattern based on computer scores, the game in the OP is a good example. Chess System Tal is not afraid of 25...c4 because it understands the position. The opponent obvious not, it needs 6 moves before it realizes it is lost.

The tool is just a start of a greater goal, to analyze the games of the big-boys, Magnus, Kasparov all the way to Alekhine and Morphy. And thus also for your own games.
90% of coding is debugging, the other 10% is writing bugs.
swami
Posts: 6662
Joined: Thu Mar 09, 2006 4:21 am

Re: New Tool : Strategic-Insight.exe

Post by swami »

Thanks, Ed, for sharing this tool. However, when I tried to download it, Microsoft windows security (Windows defender) flagged it as a virus (false), is there a way around?
User avatar
Graham Banks
Posts: 44635
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: New Tool : Strategic-Insight.exe

Post by Graham Banks »

swami wrote: Tue Sep 16, 2025 4:29 am Thanks, Ed, for sharing this tool. However, when I tried to download it, Microsoft windows security (Windows defender) flagged it as a virus (false), is there a way around?
Open up Defender and allow it.
gbanksnz at gmail.com
User avatar
Rebel
Posts: 7382
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: New Tool : Strategic-Insight.exe

Post by Rebel »

Yes, Windows nonsense.
90% of coding is debugging, the other 10% is writing bugs.
User avatar
flok
Posts: 599
Joined: Tue Jul 03, 2018 10:19 am
Full name: Folkert van Heusden

Re: New Tool : Strategic-Insight.exe

Post by flok »

swami wrote: Tue Sep 16, 2025 4:29 am Thanks, Ed, for sharing this tool. However, when I tried to download it, Microsoft windows security (Windows defender) flagged it as a virus (false), is there a way around?
If he just publishes the source code (enabling non-windows users to use it well) there would be no problem.