a tool, that can read already Annotated Games

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

Moderators: hgm, Rebel, chrisw

al75an
Posts: 3
Joined: Sat Jul 13, 2019 4:57 am
Full name: Alan Rasho

a tool, that can read already Annotated Games

Post by al75an »

Hi awesome Folks,
Is there a tool that can read already Annotated Games ? and save out games number with blunder/ bad moves number when the engine evaluation drops by ≥ 40 Centipawn
For example:

Game number blunder/ bad move number evaluation change

16 23. e5 45
19 33. c5 60
User avatar
hgm
Posts: 27793
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: a tool, that can read already Annotated Games

Post by hgm »

Not sure what you mean by 'already annotated'. Is that still PGN format? WinBoard / XBoard should allow you to annotate any game it can load with score/depth info.
User avatar
Dr.Wael Deeb
Posts: 9773
Joined: Wed Mar 08, 2006 8:44 pm
Location: Amman,Jordan

Re: a tool, that can read already Annotated Games

Post by Dr.Wael Deeb »

hgm wrote: Wed Jul 22, 2020 8:01 am Not sure what you mean by 'already annotated'. Is that still PGN format? WinBoard / XBoard should allow you to annotate any game it can load with score/depth info.
Indeed the question is not clear ....
Dr.D
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: a tool, that can read already Annotated Games

Post by Dann Corbit »

I guess what he wants is this:

Take the "decorated" PGN from a contest like TCEC or CCRL and feed it to a process that looks for sudden surges in evaluation, especially those seen by only one engine until it is too late. So he probably means score and time data and the point of interest being a sharp point of inflection.

There are some program that do that. The oldest one that I remember is by Thomas Burney.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Norm Pollock
Posts: 1056
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: a tool, that can read already Annotated Games

Post by Norm Pollock »

McBurney
Updated links for 40H Tools and Databases
http://40Hchess.epizy.com
http://nk-qy.info/40h
al75an
Posts: 3
Joined: Sat Jul 13, 2019 4:57 am
Full name: Alan Rasho

Re: a tool, that can read already Annotated Games

Post by al75an »

Hi,
Thank you for trying to help me
I am sorry for my bad English
yes, it is still a pgn file.
I have thousands of games in pgn format from engine room (Playchess Games)
what I need is a tool to read through the already annotated pgn games and print out (save to text)
any moves with a dropped evaluation more than 0.40 centipawn without annotating the games from start position
I know that Winboard,scid and Arena can auto annotate games but non of these tools can read an already annotated game and point out the moves that lead to loosing the game. like the below game

Event "Sunday 19 July Rapid Tour, 20m+2s, 12 "]
[Site "Machines A"]
[Date "2020.07.19"]
[Round "2"]
[White "Ulycrom"]
[Black "Bliper, Lc0 v0.26.1"]
[Result "0-1"]
[WhiteElo "2323"]
[BlackElo "2409"]
[EventDate "2020.07.19"]
[PlyCount "216"]
[EventType "swiss (rapid)"]

1.d4
[%eval 5,1] [%emt 0:00:00]
1...Nf6
[%eval 0,0] [%emt 0:00:00] (d5)
2.c4
[%eval 5,1] [%emt 0:00:00]
2...e6
[%eval 0,0] [%emt 0:00:00]
3.Nf3
[%eval 5, 1] [%emt 0:00:00]
3...d5
[%eval 0,0] [%emt 0:00:00]
4.Nc3
[%eval 5,1] [%emt 0: 00:00]
4...c6
[%eval 0,0] [%emt 0:00:00] (c5)
5.Bg5
[%eval 5,1] [%emt 0:00:00]
5...h6
[%eval 0,0] [%emt 0:00:00]
6.Bxf6
[%eval 5,1] [%emt 0:00:00]
6...Qxf6
[%eval 0,0] [%emt 0:00:00]
7.e3
[%eval 5,1] [%emt 0:00:00]
7...g6
[%eval 0,0] [%emt 0:00:00] (Nd7)
8.Be2
[%eval 5,1] [%emt 0:00:00]
8...Bg7
[%eval 0,0] [%emt 0:00:00] (Nd7)
9.O-O
[%eval 5,1] [%emt 0:00:00]
9...O-O
[%eval 0,0] [%emt 0:00:00] (Nd7)
10.e4
[%eval 5,1] [%emt 0:00:00]
10...dxe4
[%eval 8,13] [%emt 0:00:19] (dxc4)
11.Nxe4
[%eval 5,1] [%emt 0:00:00]
11...Qf4
[%eval 8,15] [%emt 0:00:14]
12.Qc2
[%eval 5,1] [%emt 0:00:00]
12...c5
[%eval 6,16] [%emt 0: 00:17]
13.dxc5
[%eval 5,1] [%emt 0:00:00]
13...a5
[%eval 6,17] [%emt 0:00:18]
14.Rad1
[%eval 5,1] [%emt 0:00:00]
14...Bd7
[%eval 0,16] [%emt 0:00:34]
15.g3
[%eval 5,1] [%emt 0:00:00]
15...Qc7
[%eval 2,18] [%emt 0:00:15]
16.Nd4
[%eval 5,1] [%emt 0:00:00]
16...Na6
[%eval 2,17] [%emt 0:00:19]
17.Nb5
[%eval 5,1] [%emt 0:00:00]
17...Qd8
[%eval 1,15] [%emt 0:00:25]
18.Rd2
[%eval 5,1] [%emt 0:00:00]
18...Qe7
[%eval 0,17] [%emt 0:00:43]
19.Rfd1
[%eval 5,1] [%emt 0:00:00]
19...Bc6
[%eval -6,15] [%emt 0:00:44]
20.Nd4
[%eval 5,1] [%emt 0:00: 00]
20...Bxe4
[%eval -6,15] [%emt 0:00:18] (Nxc5)
21.Qxe4
[%eval 5,1] [%emt 0: 00:00]
21...Nxc5
[%eval -5,15] [%emt 0:00:15]
22.Qe3
[%eval 5,1] [%emt 0:00:00]
22...Qg5
[%eval -5,14] [%emt 0:00:41]
23.f4
[%eval 5,1] [%emt 0:00:00]
23...Qf6
[%eval -5,14] [%emt 0:01:26]
24.Bf3
[%eval 5,1] [%emt 0:00:00]
24...Rad8
[%eval -5,15] [%emt 0:00:06]
25.b3
[%eval 5,1] [%emt 0:00:00]
25...Rfe8
[%eval -11,12] [%emt 0:00:45] (g5)
26.Nb5
[%eval 0,38] [%emt 0:01:01]
26...b6
[%eval -12,13] [%emt 0:00:19]
27.Nd6
[%eval 0,38] [%emt 0:00:08]
27...Rf8
[%eval -13,12] [%emt 0:00:29]
28.Rd4
[%eval 0,39] [%emt 0:00:00]
28...h5
[%eval -13,13] [%emt 0:00:50] (g5)
29.Kh1
[%eval 0,41] [%emt 0:01:02]
29...Rd7
[%eval -18,14] [%emt 0:00:34] (h4)
30.Bc6
[%eval -24,32] [%emt 0:00:28]
30...Re7
[%eval -23,13] [%emt 0:00:24]
31.Ne4
[%eval -24,37] [%emt 0:00:39]
31...Nxe4
[%eval -22,12] [%emt 0:00:00]
32.Qxe4
[%eval -18,35] [%emt 0:00:17]
32...Rc7
[%eval -22,10] [%emt 0:00:16] (h4)
33.Rd6
[%eval -28,39] [%emt 0:01:19]
33...Rb8
[%eval -24,10] [%emt 0:01:20] (Rfc8)
34.R6d3
[%eval -21,33] [%emt 0:00:27]
34...h4
[%eval -26,14] [%emt 0:00:35] (Bf8)
35.g4
[%eval -24,35] [%emt 0:00:21]
35...g5
[%eval -29,12] [%emt 0:00:22]
36.fxg5
[%eval -24,37] [%emt 0:00:10]
36...Qxg5
[%eval -27,12] [%emt 0:00:08]
37.Rf1
[%eval 0,36] [%emt 0:00:23]
37...Bf6
[%eval -26,13] [%emt 0:00:26] (Be5)
38.Rdf3
[%eval -17,37] [%emt 0:00:21]
38...Be5
[%eval -25,14] [%emt 0:01:00] (Bg7)
39.Rf5
[%eval 0,40] [%emt 0:00:24]
39...exf5
[%eval -47,22] [%emt 0:00:21]
40.Qxe5
[%eval 0,45] [%emt 0:00:21]
40...Qe7
[%eval -40,23] [%emt 0:00:02]
41.Qf4
[%eval 0,48] [%emt 0:00:26]
41...Rd8
[%eval -29,22] [%emt 0:00:01] (Rxc6)
42.Bd5
[%eval 11,34] [%emt 0:00:29]
42...Rd6
[%eval -29,25] [%emt 0:00:02] (Rxd5)
43.Qxf5
[%eval -14,39] [%emt 0:01: 30]
43...Kg7
[%eval -22,30] [%emt 0:00:00]
44.g5
[%eval -13,38] [%emt 0:00:28]
44...Rg6
[%eval -45,25] [%emt 0:01:07]
45.Qb1
[%eval -12,44] [%emt 0:00:00]
45...Qe5
[%eval -45,24] [%emt 0:00:01] (Qe3)
46.Rf5
[%eval -118,37] [%emt 0:01:13]
46...Qc3
[%eval -46,26] [%emt 0:00:01]
47.Qf1
[%eval -113,37] [%emt 0:00:22]
47...Kh8
[%eval -46,25] [%emt 0:00:00]
48.Rf3
[%eval -97,36] [%emt 0:00:22]
48...Qd2
[%eval -46,22] [%emt 0:02:54]
49.Qa1+
[%eval -96,41] [%emt 0:00:08]
49...Rg7
[%eval -76,25] [%emt 0:00:08]
50.g6
[%eval -109,38] [%emt 0:00:25]
50...Re7
[%eval -72,32] [%emt 0:00:00]
51.Rf1
[%eval -111,38] [%emt 0:00:19]
51...fxg6
[%eval -67,31] [%emt 0:00:00]
52.Qf6
[%eval -107,36] [%emt 0:00:19]
52...Qe2
[%eval -65,18] [%emt 0:00:00]
53.Rf4
[%eval -126,37] [%emt 0:00:26]
53...Qd1+
[%eval -63,31] [%emt 0:00:53] (Qe1+)
54.Rf1
[%eval -103,37] [%emt 0:00:20]
54...Qe2
[%eval -60,31] [%emt 0:00:00]
55.Rf4
[%eval -108,38] [%emt 0:00:15]
55...Qe1+
[%eval -58,30] [%emt 0:00:00]
56.Kg2
[%eval -90,38] [%emt 0:00:22]
56...Re5
[%eval -58,32] [%emt 0:00:00] (h3+)
57.Qd8+
[%eval -67,30] [%emt 0:00: 17]
57...Kh7
[%eval -77,22] [%emt 0:00:28]
58.Qxh4+
[%eval -83,33] [%emt 0:00: 01]
58...Qxh4
[%eval -74,19] [%emt 0:00:04]
59.Rxh4+
[%eval -90,33] [%emt 0:00: 19]
59...Rh5
[%eval -73,1] [%emt 0:00:00]
60.Re4
[%eval -64,33] [%emt 0:00:14]
60...Rd7
[%eval -72,20] [%emt 0:00:02] (Kh6)
61.h4
[%eval -92,33] [%emt 0:00:40]
61...Rd6
[%eval -65,23] [%emt 0:00:39] (Kg7)
62.Re7+
[%eval -58,30] [%emt 0: 00:16]
62...Kh6
[%eval -63,26] [%emt 0:00:00]
63.Kg3
[%eval -35,31] [%emt 0:00: 26]
63...Rf6
[%eval -63,21] [%emt 0:00:00]
64.Be4
[%eval -83,33] [%emt 0:00:34]
64...b5
[%eval -63,28] [%emt 0:00:02]
65.Re8
[%eval -79,36] [%emt 0:00:20]
65...bxc4
[%eval -89,16] [%emt 0:00:19]
66.bxc4
[%eval -81,32] [%emt 0:00:01]
66...a4
[%eval -93,19] [%emt 0:00:03]
67.Re7
[%eval -70,34] [%emt 0:00:07]
67...a3
[%eval -100,12] [%emt 0:00:13] (Rf1)
68.Bf3
[%eval -121,41] [%emt 0:00:28]
68...Rhf5
[%eval -91,14] [%emt 0:00:11]
69.Re3
[%eval -121,39] [%emt 0:00:02]
69...Rc5
[%eval -93,12] [%emt 0:00:00] (Ra5)
70.Bd5
[%eval -121,38] [%emt 0:00: 10]
70...Ra5
[%eval -92,12] [%emt 0:00:00]
71.Rc3
[%eval -121,41] [%emt 0:00: 10]
71...Rf8
[%eval -92,11] [%emt 0:00:00] (Rf5)
72.Be4
[%eval -131,35] [%emt 0:00:49]
72...Rc8
[%eval -95,11] [%emt 0:00:07]
73.Kf4
[%eval -141,35] [%emt 0: 00:01]
73...Rh5
[%eval -95,12] [%emt 0:00:06]
74.Kg3
[%eval -131,35] [%emt 0: 00:02]
74...Rhc5
[%eval -95,11] [%emt 0:00:09]
75.Bd3
[%eval -132,35] [%emt 0: 00:09]
75...Ra8
[%eval -98,12] [%emt 0:00:00] (Ra5)
76.Kf3
[%eval -132,33] [%emt 0:00:29]
76...Kg7
[%eval -101,13] [%emt 0:00:01] (Raa5)
77.Be4
[%eval -137,32] [%emt 0:00:09]
77...Rac8
[%eval -99,13] [%emt 0:00:00] (Rh8)
78.Bd3
[%eval -144,34] [%emt 0:00:12]
78...Ra5
[%eval -103,15] [%emt 0:00:00] (Ra8)
79.Ke3
[%eval -142,30] [%emt 0:00:35]
79...Re8+
[%eval -111,12] [%emt 0:00:05]
80.Kd4
[%eval -158,26] [%emt 0:00:00]
80...Rh5
[%eval -139,14] [%emt 0:00:05] (Rd8+)
81.Rxa3
[%eval -152,26] [%emt 0:00:18]
81...Rxh4+
[%eval -156,15] [%emt 0:00: 00]
82.Kd5
[%eval -185,29] [%emt 0:00:47]
82...Rd8+
[%eval -163,22] [%emt 0:00: 00]
83.Kc6
[%eval -206,23] [%emt 0:00:02]
83...g5
[%eval -169,15] [%emt 0:00: 00]
84.c5
[%eval -187,27] [%emt 0:00:17]
84...Rh3
[%eval -220,13] [%emt 0:00: 02]
85.Ra7+
[%eval -212,22] [%emt 0:00:00]
85...Kf6
[%eval -216,13] [%emt 0:00: 01]
86.Be2
[%eval -243,22] [%emt 0:00:02]
86...Rc3
[%eval -234,12] [%emt 0:00: 04] (Rh2)
87.Rc7
[%eval -184,17] [%emt 0:00:01]
87...Rd2
[%eval -270,12] [%emt 0:00:04] (Rc2)
88.Bh5
[%eval -252,23] [%emt 0:00:05]
88...Rh2
[%eval -269,13] [%emt 0:00:00]
89.Bg4
[%eval -220,23] [%emt 0:00:03]
89...Rg2
[%eval -321,12] [%emt 0:00:04]
90.Bh5
[%eval -288,24] [%emt 0:00:00]
90...g4
[%eval -316,12] [%emt 0:00:04]
91.Rf7+
[%eval -316,23] [%emt 0:00:01]
91...Ke5
[%eval -320,13] [%emt 0:00:03] (Ke6)
92.a4
[%eval -257,21] [%emt 0:00:01]
92...g3
[%eval -440, 10] [%emt 0:00:03]
93.Re7+
[%eval -355,23] [%emt 0:00:05]
93...Kf6
[%eval -477, 11] [%emt 0:00:01]
94.Rf7+
[%eval -383,23] [%emt 0:00:01]
94...Ke6
[%eval -515, 10] [%emt 0:00:01]
95.Bf3
[%eval -385,23] [%emt 0:00:00]
95...Rd2
[%eval -1004, 9] [%emt 0:00:04]
96.Rf4
[%eval -416,24] [%emt 0:00:01]
96...g2
[%eval -1226,9] [%emt 0:00:03] (Ra3)
97.Re4+
[%eval -430,22] [%emt 0:00:02]
97...Kf5
[%eval -1020,9] [%emt 0:00:06]
98.Bxg2
[%eval -430,28] [%emt 0:00:00]
98...Rxg2
[%eval -989,9] [%emt 0:00:00]
99.Rd4
[%eval -441,30] [%emt 0:00:03]
99...Ke5
[%eval -971,8] [%emt 0:00:04] (Rg8)
100.Rd8
[%eval -475,27] [%emt 0:00:09]
100...Rg6+
[%eval -1036,7] [%emt 0:00:02] (Rcc2)
101.Kb5
[%eval -477,21] [%emt 0: 00:01]
101...Rc1
[%eval -1773,7] [%emt 0:00:02]
102.Re8+
[%eval -549,21] [%emt 0:00:02]
102...Re6
[%eval -1593,7] [%emt 0:00:02]
103.Rh8
[%eval -380,23] [%emt 0:00:01]
103...Rb1+
[%eval -2373,7] [%emt 0:00:02] (Kd5)
104.Kc4
[%eval -620,22] [%emt 0:00:02]
104...Ra6
[%eval -32513,1] [%emt 0:00:00] (Rc1+)
105.Rh5+
[%eval -416,19] [%emt 0:00:02]
105...Kf4
[%eval -32515,1] [%emt 0:00:00] (Ke4)
106.Rh3
[%eval -654,21] [%emt 0:00:06]
106...Rxa4+
[%eval -32521,1] [%emt 0:00: 00]
107.Kd5
[%eval -675,22] [%emt 0:00:00]
107...Ra8
[%eval -2543,7] [%emt 0:00: 07] (Rd1+)
108.Rc3
[%eval -714,21] [%emt 0:00:02]
108...Rd1+
[%eval -2334,7] [%emt 0:00:03] Ulycrom resigns
0-1
Norm Pollock
Posts: 1056
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: a tool, that can read already Annotated Games

Post by Norm Pollock »

The notation for evaluation in centipawns with depth of analysis has several formats. PGN standards do not set a particular style. You are using the ChessBase style of the format [%eval -28,39]. The more common PGN style is the format {+0.20/25 4:19m} or {-0.04/11 81s}. It also includes the time for the evaluation. The latter format may be difficult for a parsing tool to detect because it does not have a tag in front.

You also do not indicate whether the evaluation is in terms of the active player (the side on the move), or in terms of White. It appears that the point of view of the active player is much more common.

So to write such a took, the user would have to input the style, and the perspective (active or White), perhaps by parameters.

If you are only using playchess games, I suggest you look at this link for games in cbv format:

https://en.chessbase.com/post/tutorial- ... ves-01-eng
Updated links for 40H Tools and Databases
http://40Hchess.epizy.com
http://nk-qy.info/40h