Blunder checking using just opening books

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

Moderator: Ras

Ferdy
Posts: 4856
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Blunder checking using just opening books

Post by Ferdy »

giovanni wrote:Thanks, Ferdy. I tried the exe file under wine and it worked flawlessly! :wink:
Ferdy wrote:The tool uses python-chess libs, thanks to the author of python-chess, Niklas Fiekas.
python-chess libs can be found here.
https://python-chess.readthedocs.io/en/v0.14.1/

Added book weight in book move comment to see how dominating is the book move.

Code: Select all

[Event "GCT Blitz Paris 2016"]
[Site "Paris FRA"]
[Date "2016.06.11"]
[Round "1.3"]
[White "Vachier-Lagrave, Maxime"]
[Black "Fressinet, Laurent"]
[Result "1-0"]
[WhiteTitle "GM"]
[BlackTitle "GM"]
[WhiteElo "2789"]
[BlackElo "2687"]
[ECO "C65"]
[Opening "Ruy Lopez"]
[Variation "Berlin defence"]
[WhiteFideId "623539"]
[BlackFideId "608742"]
[EventDate "2016.06.11"]
[Annotator "BookName: ProDeo.bin"]

1.e4 {top:2} 1...e5 {top:2} 2.Nf3 {top:1} 2...Nc6 {top:1} 3.Bb5 {top:1} 3...Nf6 !? {top:2} (3...a6 {bookweight:3455}) 4.d3 ?! (4.O-O {bookweight:192}) 4...Bc5 ?! (4...d6 {bookweight:10}) 5.c3 O-O 6.O-O Re8 7.Nbd2 a6 8.Bxc6 dxc6 9.Nc4 Nd7 10.Qc2 Bd6 11.d4 Qe7 12.Re1 c5 13.dxe5 Nxe5 14.Nfxe5 Bxe5 15.f4 Bf6 16.e5 Qe6 17.Ne3 Be7 18.c4 f5 19.b3 Qf7 20.Bb2 Be6 21.Rad1 Rad8 22.Nd5 Rd7 23.Qf2 Red8 24.Qf3 Bf8 25.Bc3 b6 26.h3 h5 27.Kh2 Kh8 28.Ne3 Rxd1 29.Rxd1 Rxd1 30.Qxd1 g6 31.Nd5 Qd7 32.Qf3 Kg7 33.Nf6 Qc8 34.Qc6 Kf7 35.Nd5 Qd7 36.Qxd7+ Bxd7 37.Nxc7 Bc8 38.a4 Be7 39.e6+ Bxe6 40.Nxa6 Bd6 41.Be5 Ke7 42.Nc7 Bxc7 43.Bxc7 Kd7 44.Bxb6 Kc6 45.Ba5 Bf7 46.Kg3 Kb7 47.Kh4 Be8 48.Kg5 Bc6 49.Kxg6 Bxg2 50.h4 Bf3 51.Bc3 Bd1 52.a5 Bxb3 53.Kxh5 Bxc4 54.Kg6  1-0
Download exe, py, bat and python-chess lib files.
http://www.mediafire.com/download/s44jw ... ook_ana.7z

Sample batch commands in a .bat file. The book is not included you have to supply your own book polyglot book and add it in --bookname.

Code: Select all

book_analyzer1.exe --inputfile "gctbliparis16.pgn" --outputfile "gctbliparis16_out.pgn" --bookname "ProDeo.bin" --endmovenum 40
:wink:
It is good to know that it works.

I will be releasing a new version to add a license to it to comply with the use of Python-chess modules that are used in that tool.

If you have other features that would like to be added in that tool, just post it here. If it is easy to implement I will probably add it.

I thought of adding the move book weight percentage since the book weight alone seems not too informative as what the book has to say regarding the position. If there is only one move in the book from the given position then it is 100%.

I also plan of parsing the moves in a game from last move to first move so that it is easier to mark the last position of the game where the book move ends.
giovanni
Posts: 142
Joined: Wed Jul 08, 2015 12:30 pm

Re: Blunder checking using just opening books

Post by giovanni »

Thanks, Ferdy. All these seem to be nice add-ons to you program. Keep up the good work!
Giovanni

Ferdy wrote:
giovanni wrote:Thanks, Ferdy. I tried the exe file under wine and it worked flawlessly! :wink:
Ferdy wrote:The tool uses python-chess libs, thanks to the author of python-chess, Niklas Fiekas.
python-chess libs can be found here.
https://python-chess.readthedocs.io/en/v0.14.1/

Added book weight in book move comment to see how dominating is the book move.

Code: Select all

[Event "GCT Blitz Paris 2016"]
[Site "Paris FRA"]
[Date "2016.06.11"]
[Round "1.3"]
[White "Vachier-Lagrave, Maxime"]
[Black "Fressinet, Laurent"]
[Result "1-0"]
[WhiteTitle "GM"]
[BlackTitle "GM"]
[WhiteElo "2789"]
[BlackElo "2687"]
[ECO "C65"]
[Opening "Ruy Lopez"]
[Variation "Berlin defence"]
[WhiteFideId "623539"]
[BlackFideId "608742"]
[EventDate "2016.06.11"]
[Annotator "BookName: ProDeo.bin"]

1.e4 {top:2} 1...e5 {top:2} 2.Nf3 {top:1} 2...Nc6 {top:1} 3.Bb5 {top:1} 3...Nf6 !? {top:2} (3...a6 {bookweight:3455}) 4.d3 ?! (4.O-O {bookweight:192}) 4...Bc5 ?! (4...d6 {bookweight:10}) 5.c3 O-O 6.O-O Re8 7.Nbd2 a6 8.Bxc6 dxc6 9.Nc4 Nd7 10.Qc2 Bd6 11.d4 Qe7 12.Re1 c5 13.dxe5 Nxe5 14.Nfxe5 Bxe5 15.f4 Bf6 16.e5 Qe6 17.Ne3 Be7 18.c4 f5 19.b3 Qf7 20.Bb2 Be6 21.Rad1 Rad8 22.Nd5 Rd7 23.Qf2 Red8 24.Qf3 Bf8 25.Bc3 b6 26.h3 h5 27.Kh2 Kh8 28.Ne3 Rxd1 29.Rxd1 Rxd1 30.Qxd1 g6 31.Nd5 Qd7 32.Qf3 Kg7 33.Nf6 Qc8 34.Qc6 Kf7 35.Nd5 Qd7 36.Qxd7+ Bxd7 37.Nxc7 Bc8 38.a4 Be7 39.e6+ Bxe6 40.Nxa6 Bd6 41.Be5 Ke7 42.Nc7 Bxc7 43.Bxc7 Kd7 44.Bxb6 Kc6 45.Ba5 Bf7 46.Kg3 Kb7 47.Kh4 Be8 48.Kg5 Bc6 49.Kxg6 Bxg2 50.h4 Bf3 51.Bc3 Bd1 52.a5 Bxb3 53.Kxh5 Bxc4 54.Kg6  1-0
Download exe, py, bat and python-chess lib files.
http://www.mediafire.com/download/s44jw ... ook_ana.7z

Sample batch commands in a .bat file. The book is not included you have to supply your own book polyglot book and add it in --bookname.

Code: Select all

book_analyzer1.exe --inputfile "gctbliparis16.pgn" --outputfile "gctbliparis16_out.pgn" --bookname "ProDeo.bin" --endmovenum 40
:wink:
It is good to know that it works.

I will be releasing a new version to add a license to it to comply with the use of Python-chess modules that are used in that tool.

If you have other features that would like to be added in that tool, just post it here. If it is easy to implement I will probably add it.

I thought of adding the move book weight percentage since the book weight alone seems not too informative as what the book has to say regarding the position. If there is only one move in the book from the given position then it is 100%.

I also plan of parsing the moves in a game from last move to first move so that it is easier to mark the last position of the game where the book move ends.