Sorry about creating all this confusion now I managed to get stockfishdd working with the opening book 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?
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
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.
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
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?
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:
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.