chessgod101
Please login to view all of the forum content.

PolyGlot Tolerant, a new tool to create .bin books.

Go down

PolyGlot Tolerant, a new tool to create .bin books.

Post  kramnik on Thu Jan 03, 2019 1:45 pm

Polyglot Tolerant (click here to download).

Welcome to the new world of PolyGlot Tolerant, a 64bit variation of Polyglot made more permissive through an addiction to its base code (in other words it won't stuck for errors on the games, it will just skip the games containing errors) and able to handle pgn archives larger than 2 GB.

This program has been positively tested with very large archives and normal ones.

This tool turns PGN archives into BIN books. The PGN archive must be filtered from comments with Scid before the compilation to the BIN format.

In example, this is the accepted format, where there are just moves:

[Event ""]
[Site "DESKTOP"]
[Date "2018.12.17"]
[Round "1"]
[White "Goi 5.1 BIN upd.1"]
[Black "Vitamin14_10nov2018"]
[Result "1/2-1/2"]
[ECO "C54"]
[Annotator "0.28;-0.19"]
[PlyCount "108"]
[TimeControl "60"]

1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.d3 Nf6 5.c3 d6 6.Nbd2 a5 7.Nf1 O-O 8.Ng3 Bb6
9.O-O Be6 10.Bxe6 fxe6 11.Qb3 Qe8 12.a4 Nd7 13.Be3 Qg6 14.Nh4 Qe8 15.h3
Ra6 16.Bd2 Nc5 17.Qc2 Ra8 18.Rae1 Ne7 19.Bg5 Ng6 20.Nxg6 Qxg6 21.Be3 Rf7
22.Kh2 Nd7 23.Bxb6 Nxb6 24.f3 Qg5 25.Ne2 Raf8 26.b3 Nd7 27.Rb1 b6 28.b4
Ra8 29.Qa2 Nf8 30.Rfd1 Rf6 31.Qd2 Qh4 32.b5 Rd8 33.d4 Ng6 34.Qe3 Rdf8 35.
Rf1 Qh5 36.Rf2 R6f7 37.Rbf1 Nf4 38.Qd2 Kh8 39.Nxf4 exf4 40.c4 Rd8 41.Rd1
e5 42.dxe5 Qxe5 43.Qd5 Re7 44.Qxe5 Rxe5 45.Rd5 h6 46.Rf1 g5 47.Rc1 Kg7 48.
Kg1 Kf6 49.Kf2 Rxd5 50.cxd5 Rd7 51.g3 fxg3+ 52.Kxg3 Ke5 53.Kg4 Rh7 54.Rc6
Rf7 1/2-1/2

While this is an unaccepted format:

[Event "WIN-AGPOMB377GN, Blitz 1m+1s"]
[Site "WIN-AGPOMB377GN"]
[Date "2018.08.18"]
[Round "1"]
[White "Brainfish 140818 64 POPCNT"]
[Black "Brainfish 140818 64 POPCNT2"]
[Result "1/2-1/2"]
[ECO "C54"]
[Annotator "0.00;0.00"]
[PlyCount "107"]
[TimeControl "60+1"]

{Intel(R) Xeon(R) CPU E7- 4870 @ 2.40GHz 2397 MHz W=41.4 plies; 72 277kN/s;
29 743 978 TBAs; Blue 7-7.ctg B=38.7 plies; 72 293kN/s; 16 105 313 TBAs;
Vitamin11_RC5_n4k_2j5_2018ago10.ctg} 1. e4 {[%eval 0,0] [%emt 0:00:00]} e5 {
[%eval 0,0] [%emt 0:00:00]} 2. Nf3 {[%eval 0,0] [%emt 0:00:00]} Nc6 {[%eval 0,
0] [%emt 0:00:00]} 3. Bc4 {[%eval 0,0] [%emt 0:00:00]} Bc5 {[%eval 0,0] [%emt
0:00:00]} 4. d3 {[%eval 0,0] [%emt 0:00:00]} Nf6 {[%eval 0,0] [%emt 0:00:00]}
5. O-O {[%eval 0,0] [%emt 0:00:00]} O-O {[%eval 0,0] [%emt 0:00:00]} 6. c3 {
[%eval 0,0] [%emt 0:00:00]} d6 {[%eval 0,0] [%emt 0:00:00]} 7. Bg5 {[%eval 0,0]
[%emt 0:00:00]} h6 {[%eval 0,0] [%emt 0:00:00]} 8. Bh4 {[%eval 0,0] [%emt 0:00:
00]} a6 {[%eval 0,0] [%emt 0:00:00]} 9. a4 {[%eval 0,0] [%emt 0:00:00]} g5 {
[%eval 0,0] [%emt 0:00:00]} 10. Bg3 {[%eval 0,0] [%emt 0:00:00]} Ba7 {[%eval 0,
0] [%emt 0:00:00]} 11. Nbd2 {[%eval 0,0] [%emt 0:00:00]} Nh7 {[%eval 0,0]
[%emt 0:00:00]} 12. h3 {[%eval 0,0] [%emt 0:00:00]} h5 {[%eval 0,0] [%emt 0:00:
00]} et cetera...

With this tool you will be able to create a BIN book, to merge different BIN books, to 'dissect' a BIN books into three PGN files (but installing Python before) and to play with BIN book on Arena with chess engines not supporting the Polyglot format, such as the official Stockfish.

This program lies down the GPL license, so you are free to upload, share and redistribute wherever you want, with any person you want, just cite the authors, please:

- Fabien Letouzy
- Michel Van den Bergh
- Massimiliano Goi

kramnik

Posts : 86
Points : 132
Reputation : 34
Join date : 2018-06-28

View user profile

Back to top Go down

Re: PolyGlot Tolerant, a new tool to create .bin books.

Post  TheBluesBrother on Wed Jan 09, 2019 6:22 am

Thank you very much..

TheBluesBrother

Posts : 21
Points : 28
Reputation : 6
Join date : 2018-09-05

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum