downloading xboard

Unfortunaly I went to mess up other thing as well. I commanded
cp /usr/share/stockfish20/stockfish20.ini ~/stockfishdd.ini

in terminal window (I don`t know if that changed anything) and created a copy of that stockfishdd ini file as I told earlier.

  1. Now when I use the code: xboard -fcp ‘polyglot stockfishdd.ini’ -scp ‘polyglot stockfishdd.ini’ -zp -ics -icshost chessclub.com

it loads stockfish20(instead of stockfishdd) without the performance.bin opening book. Strange. But interesting

Sorry about creating all this confusion now I managed to get stockfishdd working with the opening book :slight_smile: Thx for all help. If you can reply to my earlier post, thx

It should really not be that hard to understand.
“cp” is there for copying files.
The syntax is:

cp *from* *to*

It copies the file “from” to the place specified with “to”.

“sudo” is there to get root rights, which you need if you want to copy a file to a system-wide location like /usr/local/bin/ (i.e. outside of your home directory)

So “sudo cp “Downloads/BlackMamba20 - Linux/BlackMamba-64bit” /usr/local/bin/” would copy the file “Downloads/BlackMamba20 - Linux/BlackMamba-64bit” to /usr/local/bin, which is exactly what you don’t want to do to get an .ini file. It just does the copy, it doesn’t create an .ini (or any other) file.

You have ~/stockfishdd.ini, right?
So copy this one:

cp ~/stockfishdd.ini  ~/blackmamba.ini

This will create a new file ~/blackmamba.ini, which is the same as stockfishdd.ini (you don’t need “sudo” here, since you only copy the file inside your home directory). So open the blackmamba.ini then in a text editor and change the EngineCommand line to “EngineCommand=blackmamba”.

And I ask again: why don’t you just use a (graphical) file manager like dolphin, if you don’t grasp the concept of copying files and directories on the command line? :wink:

Ok would be this then: xboard -fcp ‘polyglot blackmamba.ini’ -scp ‘polyglot blackmamba.ini’ -zp -ics -icshost chessclub.com now working.

Need to program own chess engine I found some instrutions on blackmamba site but not sure what program I need maybe Microsoft Visual studio that creates some bots. I need to look more about that when my holiday begins after few weeks :slight_smile:

But then of course I would have to specify the engines path to xboard after creating ini file for the engine though there is much to do to program the engine and create some evaluation for it.

Need to upgrade my processors and hardware stockfish engine plays too weak chess. But before that, I can return to the book making. I have some png files in “Documents” All downloaded from chesstempo. I dont know how to make opening book of them because the way to convert a PNG file .bin doesnt work:

code:
polyglot make-book -pgn mybook.pgn -bin *mybook.bin → PolyGlot 1.4.64b by Fabien Letouzey.
inserting games …
tellusererror POLYGLOT: pgn_open(): can’t open file “mybook.pgn”: No such file or directory

*mybook? Can I name the png-files in my “Documents” to “mybook” somehow?

I have png files that include both black and white moves (in the opening) and I also need to
make a book for white’s moves and a book for black’s moves with different options (i.e. “-min-game” or “-max-ply”)
but haven`t got really that far because the whole project is in prime factors.

Yes, use a file manager.
Or something like this from the command line:

mv oldfile newfile

But you know, polyglot doesn’t expect any specific filename. It’s you who told polyglot to read from mybook.pgn.

Why don’t you just specify the real filename on the plyglot line, f.e.

polyglot make-book -pgn *real_filename_of_the_pgn_file.pgn* -bin *mybook.bin*

And you don’t have to name the output file mybook.bin either. Just specify anything else after the ‘-bin’ option.

Nice I somehow put all the png files into one mybook.png filefolder and cant turn them back. I dont know if that matters though. I have mybook.png in “Downloads” containing all the png files. And I named it manually.

Now code:

polyglot make-book -pgn Downloads/mybook.pgn -bin mybook.bin
PolyGlot 1.4.64b by Fabien Letouzey.
inserting games …
tellusererror POLYGLOT: pgn_char_read(): fgetc(): Is a directory

Now mybook.pgn is in bin format?

Of course it matters.
You need to specify a file to polyglot, not a directory.

Now code:

polyglot make-book -pgn Downloads/mybook.pgn -bin mybook.bin
PolyGlot 1.4.64b by Fabien Letouzey.
inserting games …
tellusererror POLYGLOT: pgn_char_read(): fgetc(): Is a directory

Now mybook.pgn is in bin format?

No. mybook.pgn is a directory, but polyglot expects a file.

For me it makes no sense to put all pgn files in a folder named mybook.pgn but anyway, this should work then:

polyglot make-book -pgn Downloads/mybook.pgn/*name_of_a_pgn_file_in_there.pgn* -bin mybook.bin

If you want to join more than one book together, you have to use “polyglot merge-book” as mentioned earlier in this thread. But this needs .bin files.

And please, try to get some basic understanding about files and folders.
Especially if you plan to write your own chess engine… :wink:

Hi!

Now

polyglot make-book -pgn Downloads/mybook.pgn/ct6.pgn -bin mybook.bin
PolyGlot 1.4.64b by Fabien Letouzey.
inserting games …
tellusererror POLYGLOT: pgn_next_move(): malformed move at line 10, column 0, game 1

ct6.pgn is just one of the pgn files in “mybook.pgn” filefolder then now mybook.pgn is in bin format? Does it contain all the pgn files from “mybook.pgn”

No. Again mybook.pgn is just a folder now, it isn’t in any format, neither pgn nor bin.
The files in there are still the same files as they were before, i.e. in pgn format probably.

That polyglot line should create a new file “mybook.bin” (in bin format obviously) out of the Downloads/mybook.pgn/ct6.pgn file (and only that). But for some reason this failed apparently.
Maybe that pgn file is not a valid pgn file? Maybe the download was incomplete?
Try with another one maybe?
Maybe upload that file to http://susepaste.org/ and post a link, so I could have a look?

And what does the second question mean anyway? Of course “mybook.pgn” contains all the pgn files from “mybook.pgn”, as it is “mybook.pgn”.

Uploading failed!!!
Only gif|jpg|png|jpeg|svg files smaller then 5120k are allowed for this time interval. Allowed file size depends on expiration time.

Of course, an PGN file is no graphics file.
But it should be a text file, so click on “Code” in the upper-right corner (but this should be default when you enter the page).
If that doesn’t work, try to append the extension .txt to the pgn file fro uploading. (I hope you know by now how to rename a file…)
Or open the file in a text editor and copy/paste its contents to the susepaste text input field.

But the file could also be too big for susepaste. How big is it?
Maybe it would be allowed if you selected a shorter “Delete After” timeframe?

http://susepaste.org/12206538

OK, and where did you download it from? Could you provide a link?

The file seems to be incomplete.
The last line reads:

1.d4 Nf6 2.c4 c5 3.d5 e6 4.Nc3 exd5 5.cxd5 d6 6.e4 g6 7.Nf3 Bg7 8.h3 O-O 9.Bd3  

Apparently something is missing there. If I append “1-0” f.e. polyglot accepts it:

1.d4 Nf6 2.c4 c5 3.d5 e6 4.Nc3 exd5 5.cxd5 d6 6.e4 g6 7.Nf3 Bg7 8.h3 O-O 9.Bd3 1-0

But I don’t know enough about PGN (or Standard Algebraic Notation) to tell you what should be put there. (this seems to be some kind of score/game result IIUIC)
Well, Wikipedia says this:

If the game result is anything other than “*”, the result is repeated at the end of the movetext.

So I guess it’s ok to just append “", although it should actually not be necessary in this case (AIUI "” should be assumed if nothing is explicitely given). So this should work as intended:

1.d4 Nf6 2.c4 c5 3.d5 e6 4.Nc3 exd5 5.cxd5 d6 6.e4 g6 7.Nf3 Bg7 8.h3 O-O 9.Bd3 *

Btw, I just noticed that you can open such a .pgn file directly in xboard to view it: :wink:

xboard Downloads/mybook.pgn/ct6.pgn

I downloaded all the png files from chesstempo for example:

http://chesstempo.com/gamedb/opening/2729

So just add * to the end of game moves in each “pgn” file (in text editor)

Yes. It worked with the one you posted at least.

polyglot make-book -pgn Downloads/mybook.pgn/ct6.pgn -bin mybook.bin
PolyGlot 1.4.64b by Fabien Letouzey.
inserting games …
2 game.
17 entries.
filtering entries …
0 entries.
sorting entries …
saving entries …
all done!

So now all the 15 png files in bin format? Next I need to to make a book for whites moves and a book for blacks moves from mybook.bin. I don`t know how to use “-min-game” or “-max-ply” though

No. All pgn files are still in pgn format.
Only Downloads/mybook.pgn/ct6.pgn has been converted to bin format, which is in mybook.bin now.

If you want all pgn files in one .bin file, you have to convert all of them to .bin format (to separate .bin files), and then merge all the .bin files to one with “polyglot merge-book”.

Next I need to to make a book for whites moves and a book for blacks moves from mybook.bin. I don`t know how to use “-min-game” or “-max-ply” though

I don’t know either.
Please read the documentation and think about it yourself.

polyglot merge-book
PolyGlot 1.4.64b by Fabien Letouzey.
tellusererror POLYGLOT: book_open(): can’t open file “(null)”: Bad address

I put already all the files into bin-format but something is wrong. After creating the “book” I can later add/remove new variations? I think so according to the document but haven`t got that far.

Sigh.
You have to specify the books you want to merge and the resulting file of course.
I already mentioned this in this thread somewhere.

Something like this:

polyglot merge-book -in1 book1.bin -in2 book2.bin -out newbook.bin

newbook.bin is then created and contains both book1.bin and book2.bin.

Run “polyglot --help” for an overview.