Make .bin book Step by Step
Make .bin book Step by Step
HI all! Some friends in adv. lounge still didnt find how make a bin book to polyglot, so, today I decided to make a Step by Step... To everybody that has same problem or just start using poly right now and wanna make bin books too!
Step 1: You need polyglot folder in C:\ drive
Step 2: To make a bin book you will need a pgn file too, which has collection of games, inside polyglot folder
Step 3: Open your MS-DOS and it will look like this:
Step 4: You have to change to it typing 'cd c:\polygot' :
Step 5: Now you are ready to put the 7 commands you find in readme file inside polyglot folder, anyway I posted the commands:
polyglot make-book -min-game 1 -uniform -only-white -pgn games.pgn -bin w1.bin
polyglot make-book -min-score 50 -only-white -pgn games.pgn -bin w2.bin
polyglot make-book -min-game 1 -uniform -only-black -pgn games.pgn -bin b1.bin
polyglot make-book -min-score 40 -only-black -pgn games.pgn -bin b2.bin
polyglot merge-book -in1 w1.bin -in2 w2.bin -out w.bin
polyglot merge-book -in1 b1.bin -in2 b2.bin -out b.bin
polyglot merge-book -in1 w.bin -in2 b.bin -out mybook.bin
Your book is ready!
PS:
1. game.pgn and mybook.bin were according to my files, make your changes if necessary
2. I make bin book in that way, any comments or something different let me know
3. Good bin book is made if we use good pgn file...engine vs engine
Step 1: You need polyglot folder in C:\ drive
Step 2: To make a bin book you will need a pgn file too, which has collection of games, inside polyglot folder
Step 3: Open your MS-DOS and it will look like this:
Step 4: You have to change to it typing 'cd c:\polygot' :
Step 5: Now you are ready to put the 7 commands you find in readme file inside polyglot folder, anyway I posted the commands:
polyglot make-book -min-game 1 -uniform -only-white -pgn games.pgn -bin w1.bin
polyglot make-book -min-score 50 -only-white -pgn games.pgn -bin w2.bin
polyglot make-book -min-game 1 -uniform -only-black -pgn games.pgn -bin b1.bin
polyglot make-book -min-score 40 -only-black -pgn games.pgn -bin b2.bin
polyglot merge-book -in1 w1.bin -in2 w2.bin -out w.bin
polyglot merge-book -in1 b1.bin -in2 b2.bin -out b.bin
polyglot merge-book -in1 w.bin -in2 b.bin -out mybook.bin
Your book is ready!
PS:
1. game.pgn and mybook.bin were according to my files, make your changes if necessary
2. I make bin book in that way, any comments or something different let me know
3. Good bin book is made if we use good pgn file...engine vs engine
4ut0 ch355 m3mb3r WALDEMAR...g00d g4m3 f0r 4ll...y4h000000!
Re: Make .bin book Step by Step
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
VERY GOOD XSUPREMEX NICE POST CONGRATULATIONS VERY GOOD FRIEND
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
A VIDA E UM ETERNO PERDE E GANHA UM DIA A GENTE PERDE O OUTRO AGENTE APANHA
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
VERY GOOD XSUPREMEX NICE POST CONGRATULATIONS VERY GOOD FRIEND
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
A VIDA E UM ETERNO PERDE E GANHA UM DIA A GENTE PERDE O OUTRO AGENTE APANHA
-
- Senior Member
- Posts: 28
- Joined: 11 May 2008 09:19
Re: Make .bin book Step by Step
Where I can Download MS DOS ---> promt de comando that because I don't have and I don't know where I can download that please replay me plz
- matematiko
- Co-Admin
- Posts: 1511
- Joined: 17 Oct 2007 13:32
- Location: Texas USA
Re: Make .bin book Step by Step
OK Folks, here is an easier way to execute book commands.
Download to the folder where you have polyglot.exe, cygwin1.dll and a PGN database this command batch file:
http://h1.ripway.com/matematiko/Book.cmd
Don't run it yet. Open it with a text editor like notepad, and you'll see that it has only one line of code:
cmd.exe /k polyglot.exe make-book -pgn New.pgn -bin book.bin -max-ply 30
cmd.exe will launch the command prompt window.
/k The /k option will make the command prompt window to stay open, this is useful to see if there were any errors.
polyglot.exe This launches polyglot.
make-book This tells polyglot to start in book making mode.
-pgn New.pgn -bin book.bin -max-ply 30 And these are the options parsed to the book making section of polyglot. This is just an example, you should come up with your own commands that fit your needs.
This post is not about how to make books with polyglot, is about how to issue the
commands, so you should know what command to issue and for this you need to read the
documentation that comes with polyglot.
If you don't want to download the file because you think it has a virus that will reformat your computer, is OK, don't download it. Just create a new one, is very simple: right click in an empty space in the folder where you have polyglot.exe, cygwin1.dll and a PGN database, select new, them select text file. Then name it to something like whatever.cmd, then edit it as you wish.
Note: By default, windows does not show the extention of known files(.txt in this case), so to rename it you gonna have to go to a procedure that is beyond the intent of this topic. If this is the case, you gonna have to find out in your own how to rename the file or just download the one I am providing.
Cheers,
Download to the folder where you have polyglot.exe, cygwin1.dll and a PGN database this command batch file:
http://h1.ripway.com/matematiko/Book.cmd
Don't run it yet. Open it with a text editor like notepad, and you'll see that it has only one line of code:
cmd.exe /k polyglot.exe make-book -pgn New.pgn -bin book.bin -max-ply 30
cmd.exe will launch the command prompt window.
/k The /k option will make the command prompt window to stay open, this is useful to see if there were any errors.
polyglot.exe This launches polyglot.
make-book This tells polyglot to start in book making mode.
-pgn New.pgn -bin book.bin -max-ply 30 And these are the options parsed to the book making section of polyglot. This is just an example, you should come up with your own commands that fit your needs.
This post is not about how to make books with polyglot, is about how to issue the
commands, so you should know what command to issue and for this you need to read the
documentation that comes with polyglot.
If you don't want to download the file because you think it has a virus that will reformat your computer, is OK, don't download it. Just create a new one, is very simple: right click in an empty space in the folder where you have polyglot.exe, cygwin1.dll and a PGN database, select new, them select text file. Then name it to something like whatever.cmd, then edit it as you wish.
Note: By default, windows does not show the extention of known files(.txt in this case), so to rename it you gonna have to go to a procedure that is beyond the intent of this topic. If this is the case, you gonna have to find out in your own how to rename the file or just download the one I am providing.
Cheers,
-
- Senior Member
- Posts: 28
- Joined: 11 May 2008 09:19
Re: Make .bin book Step by Step
When you have this problem matematiko already answered...
matematiko wrote:
Also, some times polyglot complains of corrupted pgn databases and tells you exactly the line with the problem. To fix this issue, you have to manually edit the pgn database and delete the whole game with the corrupted line. To do this, notepad will do, unfortunally with large databases notepad will crash. To avoid this problem, I use editplus (http://www.editplus.com/). Editplus handles large text files(a pgn database is nothing else but a text file) and also displays the line number on the right hand side.
Good luck,
4ut0 ch355 m3mb3r WALDEMAR...g00d g4m3 f0r 4ll...y4h000000!
Re: Make .bin book Step by Step
Hi...Since http://wbec-ridderkerk.nl/html/details/PolyGlot.html gives the message: Sorry, the file you were looking for could not be found. It may have deleted or moved to a new location.
Can anybody explain the meaning of '-max-ply 30' ? THX
Can anybody explain the meaning of '-max-ply 30' ? THX
4ut0 ch355 m3mb3r WALDEMAR...g00d g4m3 f0r 4ll...y4h000000!
- mocha_1961
- Advanced Member
- Posts: 73
- Joined: 17 Dec 2007 02:09
Re: Make .bin book Step by Step
xsupremex wrote:Hi...Since http://wbec-ridderkerk.nl/html/details/PolyGlot.html gives the message: Sorry, the file you were looking for could not be found. It may have deleted or moved to a new location.
Can anybody explain the meaning of '-max-ply 30' ? THX
404 File Not Found
Sorry, the file you were looking for could not be found. It may have deleted or moved to a new location.
If you typed in the url, be sure the address is typed correctly.
If you got this page from a link on the wbec-ridderkerk.nl domain, please report the error to:
Webmaster WBEC-Ridderkerk
To go on to the main page of this site, click the link below:
WBEC-Ridderkerk
sorry xsupremex but this is what i got form that site. hehehe
No matter how strong and dedicated a leader may be, he must find root and strength amongst the people.
- matematiko
- Co-Admin
- Posts: 1511
- Joined: 17 Oct 2007 13:32
- Location: Texas USA
Re: Make .bin book Step by Step
-max-ply is the number of half moves you want your book to go. In this case, a -max-ply of 30 will go as far as 15 full moves(15 for whites and 15 for blacks).xsupremex wrote:Can anybody explain the meaning of '-max-ply 30' ? THX
Be aware that only moves found at least the number of times specified by "-min-game"(default: 3) will be used. Be also aware that if your PGN database is very small, no matter how deep you ask the book to go, the book will probably go only a few moves.
Maintaning a database is a never ending task. Keep always looking for new games in the net and keep adding the games that you played and saved.
Cheers,
Using engines to cheat:
- It is not ethical,
- It is useless, nothing is gained (how can one be proud of a score earn with dishonesty?)
- You will be baned, sooner or later,
- It gives us (the true chess engine players) a bad reputation.
- It is not ethical,
- It is useless, nothing is gained (how can one be proud of a score earn with dishonesty?)
- You will be baned, sooner or later,
- It gives us (the true chess engine players) a bad reputation.
Re: Make .bin book Step by Step
Congrats Mate!
4ut0 ch355 m3mb3r WALDEMAR...g00d g4m3 f0r 4ll...y4h000000!
- mocha_1961
- Advanced Member
- Posts: 73
- Joined: 17 Dec 2007 02:09
Re: Make .bin book Step by Step
matematiko wrote:-max-ply is the number of half moves you want your book to go. In this case, a -max-ply of 30 will go as far as 15 full moves(15 for whites and 15 for blacks).xsupremex wrote:Can anybody explain the meaning of '-max-ply 30' ? THX
Be aware that only moves found at least the number of times specified by "-min-game"(default: 3) will be used. Be also aware that if your PGN database is very small, no matter how deep you ask the book to go, the book will probably go only a few moves.
Maintaning a database is a never ending task. Keep always looking for new games in the net and keep adding the games that you played and saved.
Cheers,
so we have to save those pgn databases in a folder after we make a book?(binbook). just curious.
No matter how strong and dedicated a leader may be, he must find root and strength amongst the people.
Re: Make .bin book Step by Step
After you make a book? You have to keep the pgn and adding games on it if you wanna use it again to create other book...
4ut0 ch355 m3mb3r WALDEMAR...g00d g4m3 f0r 4ll...y4h000000!
- mocha_1961
- Advanced Member
- Posts: 73
- Joined: 17 Dec 2007 02:09
Re: Make .bin book Step by Step
thx a lotxsupremex wrote:After you make a book? You have to keep the pgn and adding games on it if you wanna use it again to create other book...
No matter how strong and dedicated a leader may be, he must find root and strength amongst the people.
Re: Make .bin book Step by Step
i need to put all commands in ms dos?
- matematiko
- Co-Admin
- Posts: 1511
- Joined: 17 Oct 2007 13:32
- Location: Texas USA
Re: Make .bin book Step by Step
Yes, but is not called MS-DOS any more. Just command prompt window, command console, etc. MS-DOS is a thing from the past.kenishka wrote:i need to put all commands in ms dos?
Using engines to cheat:
- It is not ethical,
- It is useless, nothing is gained (how can one be proud of a score earn with dishonesty?)
- You will be baned, sooner or later,
- It gives us (the true chess engine players) a bad reputation.
- It is not ethical,
- It is useless, nothing is gained (how can one be proud of a score earn with dishonesty?)
- You will be baned, sooner or later,
- It gives us (the true chess engine players) a bad reputation.