It looks like this is already shareable. Sample command-line in a batch file is below. Added option for start and end move to analyze. If you want the engine to analyze both sides then don't use the --player option. Pos with Ae evaluation below -300 cp will be skipped. This is not settable.
Epd file for pos with blunder are saved, this is in overwrite mode, whose filename depends on the input pgn file.
epdfilename = [out_test_] <inputpgnfile_no_ext>.epd
Sample epd output.
Code: Select all
r2r2k1/p1pnqppp/2p5/4pP2/1b2N3/3PB2P/PP2QPP1/R4RK1 b - - bm Bd6; ce -112; acd 15; sm f6; Bmu b4d6; Ae "Stockfish 6"; c0 "Caruana,F-Nakamura,Hi"; c1 "7th London Classic 2015";
Bmu = Bestmove in uci move format
Ae = Analyzing engine
sm = supplied move, this is the move in actual game
bm is the bestmove found by the Ae
Output of pgn file is append mode so that analyzed games are all saved
Sample pgn file. The score in the analyzed games are based on side POV.
[pgn]
[Event "7th London Classic 2015"]
[Site "London ENG"]
[Date "2015.12.06"]
[Round "3"]
[White "Caruana,F"]
[Black "Nakamura,Hi"]
[Result "1/2-1/2"]
[WhiteElo "2787"]
[BlackElo "2793"]
[EventDate "2015.12.03"]
[ECO "C65"]
[Annotator "Stockfish 6 @0.5s/pos"]
{blunder_margin = 0.30, hash = 128, threads = 1}
1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.d3
Bc5 5.Bxc6 dxc6 6.Nbd2 Qe7 7.h3 O-O
8.Nc4 Nd7 9.Qe2 b5 10.Ne3 Nb6 11.Nf5
Bxf5 12.exf5 Nd7 13.Nd2 Bb4 14.c3 Ba5
15.Ne4 b4 16.O-O Rfd8 17.cxb4 Bxb4 18.Be3
18...f6 $2 {-1.43/12} (18...Bd6 {-1.12/15}) 19.Qc2 $2 {1.10/14} (19.Rac1 {1.43/12})
Nb6 20.a3 Bd6 21.Qxc6 Qd7 22.Qxd7 Rxd7
23.Rfc1 Nd5 24.Bd2 Bf8 25.g3 a5 26.Kf1
a4 27.Ke2 Rb8 28.Rc2 Rb3 29.Rac1 Rd8
30.Nc3 Nxc3+ 31.Bxc3 Rd5 32.g4 c6 33.Rg1
h6 34.h4 Be7 35.Rg3 35...Kf7 $2 {-1.07/16} (35...Bc5 {-0.45/13})
36.Kd2 $2 {0.00/17} (36.Re3 {1.07/16}) Bd6 37.Ke2 Bc5
38.g5 Bd4 39.gxh6 gxh6 40.Rg6 Bxc3 41.bxc3
h5 42.Rh6 Kg7 43.Rg6+ Kf7 44.Rh6 Kg7
45.Rg6+ 1/2-1/2
[Event "7th London Classic 2015"]
[Site "London ENG"]
[Date "2015.12.06"]
[Round "3"]
[White "Grischuk,A"]
[Black "Giri,A"]
[Result "1/2-1/2"]
[WhiteElo "2750"]
[BlackElo "2778"]
[EventDate "2015.12.03"]
[ECO "C67"]
[Annotator "Stockfish 6 @0.5s/pos"]
{blunder_margin = 0.30, hash = 128, threads = 1}
1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O
Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5
8.Qxd8+ Kxd8 9.h3 Ke8 10.Nc3 h5 11.Ne2
b6 12.Bg5 c5 13.Nc3 Bb7 14.Rad1 Bxf3
15.gxf3 c6 16.Ne4 Be7 17.f4 Bxg5 18.fxg5
Ke7 19.Nd6 Ke6 20.f4 Rad8 21.Rfe1 g6
22.Kf2 Nd4 23.c3 Nf5 24.Kf3 24...Ng7 $2 {-1.14/17} (24...Nh4+ {-0.79/13})
25.Rd2 Ke7 26.Red1 Rhg8 27.a4 a6 28.Nc4
Rxd2 29.Rxd2 b5 30.Na5 Rc8 31.Rd6 bxa4
32.Rxc6 32...Rd8 $2 {-1.37/14} (32...Rxc6 {-0.94/18}) 33.Nc4 a3
34.bxa3 $2 {0.00/14} (34.Rc7+ {1.14/15}) Rd3+ 35.Ke4 Rxc3
36.Nd6 Rxa3 37.Rc7+ Ke6 38.Rxf7 Ne8 39.Rf8
Nxd6+ 40.exd6 Ra4+ 41.Ke3 Kxd6 42.Rf6+ Kd5
43.f5 Ra3+ 44.Kf4 Ra4+ 45.Ke3 Ra3+ 46.Kf4
Ra4+ 47.Ke3 1/2-1/2
[Event "7th London Classic 2015"]
[Site "London ENG"]
[Date "2015.12.06"]
[Round "3"]
[White "Adams,Mi"]
[Black "Aronian,L"]
[Result "1/2-1/2"]
[WhiteElo "2744"]
[BlackElo "2781"]
[EventDate "2015.12.03"]
[ECO "C88"]
[Annotator "Stockfish 6 @0.5s/pos"]
{blunder_margin = 0.30, hash = 128, threads = 1}
1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4
Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 O-O
8.a4 b4 9.d4 d6 10.dxe5 dxe5 11.Qxd8
Rxd8 12.Nbd2 Bd6 13.a5 h6 14.Bc4 Re8
15.Nb3 Be6 16.Bd3 Red8 17.Nfd2 Nd7 18.Nc4
Nc5 19.Nxc5 Bxc5 20.Be3 Bxe3 21.Nxe3 b3
22.Bf1 Nd4 23.cxb3 Nxb3 24.Ra3 Rd2 25.Re2
Rxe2 26.Bxe2 Nd4 27.Bf1 Kf8 28.Rc3 28...Rb8 $2 {-0.37/15} (28...c6 {0.00/17})
29.Rxc7 Rxb2 30.h4 $2 {-0.20/16} (30.Ra7 {0.32/15}) Ra2
31.Bxa6 Rxa5 32.Bc8 Ra8 33.Bxe6 Nxe6 34.Rc2
h5 1/2-1/2
[Event "7th London Classic 2015"]
[Site "London ENG"]
[Date "2015.12.06"]
[Round "3"]
[White "Anand,V"]
[Black "Carlsen,M"]
[Result "1/2-1/2"]
[WhiteElo "2803"]
[BlackElo "2850"]
[EventDate "2015.12.03"]
[ECO "C67"]
[Annotator "Stockfish 6 @0.5s/pos"]
{blunder_margin = 0.30, hash = 128, threads = 1}
1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O
Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5
8.Qxd8+ Kxd8 9.Nc3 Ke8 10.h3 Be6 11.Rd1
Bc5 12.g4 Ne7 13.Ng5 Bd5 14.Nge4 Bb6
15.Kg2 Rd8 16.Bf4 Ng6 17.Bg3 h5 18.f4
hxg4 19.hxg4 Ke7 20.Rh1 Bd4 21.Nxd5+ cxd5
22.Nc3 Bxc3 23.bxc3 Kd7 24.f5 Ne7 25.Rae1
Rde8 26.Kf3 $2 {0.00/18} (26.e6+ {0.39/15}) Rxh1 27.Rxh1
Nc6 28.Re1 g5 29.a4 a6 30.Kg2 Kc8
31.Kf2 b6 32.Kf3 Kd7 33.Kf2 Kc8 34.Re3 $2 {-0.44/17} (34.e6 {0.00/20})
Na5 35.Re1 Nc4 36.Kf3 $2 {-0.95/15} (36.Kg2 {-0.56/15})
Kd7 37.Kg2 a5 38.Kf2 c6 39.Kg2 b5
40.Rb1 $2 {-1.27/15} (40.Ra1 {-0.76/16}) 40...Rh8 $2 {0.74/16} (40...bxa4 {1.27/15})
41.Bf2 Nxe5 42.axb5 Nxg4 43.bxc6+ Kxc6 44.Bd4
Re8 45.Kg3 Ne5 46.Rb6+ Kc7 47.Rf6 Kd7
48.Bxe5 Rxe5 49.Kg4 Ke7 50.Kxg5 Re1 51.Ra6
f6+ 52.Kg4 Rg1+ 53.Kf4 Rf1+ 54.Kg4 Rg1+
55.Kf4 Rf1+ 56.Kg4 1/2-1/2
[Event "7th London Classic 2015"]
[Site "London ENG"]
[Date "2015.12.06"]
[Round "3"]
[White "Vachier Lagrave,M"]
[Black "Topalov,V"]
[Result "1-0"]
[WhiteElo "2765"]
[BlackElo "2803"]
[EventDate "2015.12.03"]
[ECO "B90"]
[Annotator "Stockfish 6 @0.5s/pos"]
{blunder_margin = 0.30, hash = 128, threads = 1}
1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4
Nf6 5.Nc3 a6 6.h3 e5 7.Nde2 h5
8.g3 Nbd7 9.Bg2 b5 10.Nd5 Nxd5 11.Qxd5
Rb8 12.Be3 Be7 13.Qd2 Nf6 14.O-O O-O
15.Kh2 Bb7 16.Nc3 Rc8 17.a4 b4 18.Nd5
Nxd5 19.exd5 a5 20.Qe2 Bg5 21.Bxg5 Qxg5
22.h4 22...Qf6 $2 {-0.46/16} (22...Qd8 {0.06/13}) 23.Qb5 Qe7
24.Qxa5 Rxc2 25.Rac1 $2 {-0.17/13} (25.Qb6 {0.14/13}) Rxb2
26.Rb1 Ra2 27.Qxb4 Ba6 28.Qb3 28...Bxf1 $2 {-0.58/16} (28...Re2 {-0.14/14})
29.Qxa2 Bxg2 30.Kxg2 30...Ra8 $2 {-1.12/16} (30...e4 {-0.51/14})
31.a5 e4 32.Rb3 32...f5 $2 {-2.07/16} (32...Qa7 {-1.32/14})
33.Qd2 $2 {0.79/15} (33.a6 {2.07/16}) 33...Qc7 $2 {-1.36/17} (33...Qf7 {-0.79/15})
34.Qb2 34...Rxa5 $2 {-1.63/19} (34...Qxa5 {-1.17/19}) 35.Rb7 Ra2
36.Qb5 36...Rxf2+ $2 {-5.89/15} (36...Qc1 {-1.61/17}) 37.Kxf2 Qc2+
38.Qe2 1-0
[/pgn]
Command-line sample.
Code: Select all
blunder_checker3 --analyzer "Stockfish 6.exe" --hash 128 --threads 1 --inputfile lcc-15-03.pgn --outputfile out_lcc-15-03.pgn --blundermargincp 30 --analysistimems 500 --startmove 16 --endmove 40
:: Default analysis time = 1sec, startmove = 12, endmove = 40
:: blunder_checker3 --analyzer "Stockfish 6.exe" --hash 128 --threads 1 --inputfile lcc-15-03.pgn --outputfile out_lcc-15-03.pgn --blundermargincp 30
:: Default hash = 64 mb, threads = 1
:: blunder_checker3 --analyzer "Stockfish 6.exe" --inputfile lcc-15-03.pgn --outputfile out_lcc-15-03.pgn --blundermargincp 30 --player "Nakamura,Hi"
:: Default blundermargincp = 50 cp
:: blunder_checker3 --analyzer "Stockfish 6.exe" --inputfile lcc-15-03.pgn --outputfile out_lcc-15-03.pgn
Download, exe and batch file
https://app.box.com/s/4vztkh1riye5gl0743se9wrwpewwiqgy