DGT Pi New Book Upload

510 views
Skip to first unread message

Tobias

unread,
Aug 12, 2020, 11:03:27 AM8/12/20
to PicoChess
Hello,

I would like to add a new book on the DGT Pi.

But I have a problem with the file upload. ( Permission denied )

I use picochess 0.9N with login "pi" and password "picochess" with W-LAN Connection. (Sftp Port 22)

It doesnt work with WinSCP or Filezilla :(


Could you please help me? 


Thank you :)

RandyR

unread,
Aug 12, 2020, 12:24:49 PM8/12/20
to PicoChess
Tobias,
I don't use WinSCP but I found this on the web:

  • In WinSCP select Advanced and navigate to Environment > SCP/Shell
  • Change the text in the field from default to sudo -s and your "pi" account will log in using sudo privileges, letting you SCP files anywhere as root.

Hope this helps.

Randy

Tobias

unread,
Aug 13, 2020, 9:47:33 AM8/13/20
to PicoChess
Hi, now it is fine :)

Thank you!

I have another question...

I uploaded the new book with a lot of games with the Kings Gambit, but the computer is taking exactly the same moves every game?

At the standard books, example "Open-Book", the computer do random moves?


Could anyone help me?


Scally

unread,
Aug 13, 2020, 1:43:58 PM8/13/20
to PicoChess
Hi Tobias,

What’s the name of the Book File you added and have you added this book to the choice of books in Picochess?

Can you tell me the contents of your books folder via:
cd /opt/picochess/books
ls (That’s small LS) what files are in here
cat books.ini (This shows me which of your book files are added to Picochess)

Some book files are very limited, especially in lesser known openings. Others are huge, like the Cerebellum books, but these will only play the best line each time.


Cheers,

Al.

Tobias

unread,
Aug 13, 2020, 2:04:39 PM8/13/20
to PicoChess
Hello Scally,

I made a own book with 1500 games from the king´s gambit.

I used the tutorial from Topschach Benny.

The filename is r-kingsgambit.bin

The book is working, but I would like different pc moves in various games.

Have you a idea?

mvanthoor

unread,
Aug 13, 2020, 3:08:56 PM8/13/20
to PicoChess
Hi Tobias,

How big are the variational differences between the games? There aren't many ways to play the king's gambit in a good way. If there are a few variations that dominate in your book, the engine may choose only these variations most of the time. You'd need to look into changing the weights of the variations and set them all to 0, so the engine thinks they're all equal and so will choose a random one

I know how to do it in Fritz (ctg books); I don't yet know how to do it in other software that makes bin-books such as scid.

Scally

unread,
Aug 13, 2020, 3:54:07 PM8/13/20
to PicoChess
Hi Tobias,

Can I have a copy to play around with, some engines have a uci option that may help.

What engines are you using?


Al.

Tobias

unread,
Aug 14, 2020, 11:36:57 AM8/14/20
to PicoChess
Hello together,

Now it is fine, I use just 4 games in the database.

Now every game is different (90%)

Thank you guys for the help.

Tobias

Tobias

unread,
Aug 15, 2020, 7:25:32 AM8/15/20
to PicoChess
Hello,

I have another question, what es the maximum for books on the DGT Pi.

What filename can I use when the alphabet is full? (example z-spanishgame.bin)

regards Tobias

Scally

unread,
Aug 15, 2020, 8:48:40 AM8/15/20
to PicoChess
Hi Tobias,

You can call them what you want, some are huge.

Here’s mine for example:

pi@RPi-64bit:~/mount/SSD/opt/shared-folders/books $ ls -al
total 382580
drwxr-xr-x 2 pi pi 4096 Jul 27 12:29 .
drwxr-xr-x 14 pi pi 4096 May 9 18:25 ..
-rw-r--r-- 1 pi pi 0 Apr 18 12:01 a-nobook.bin
-rw-r--r-- 1 pi pi 286880 Apr 18 12:02 b-flank.bin
-rw-r--r-- 1 pi pi 3168 Jul 27 12:29 books.ini
-rw-r--r-- 1 pi pi 3168 Jul 27 21:47 books.ini.al
-rw-r--r-- 1 pi pi 651696 Apr 18 12:01 c-semiopen.bin
-rw-r--r-- 1 pi pi 305904 Apr 18 12:01 d-open.bin
-rw-r--r-- 1 pi pi 362032 Apr 18 12:02 e-closed.bin
-rw-r--r-- 1 pi pi 348480 Apr 18 12:01 f-indian.bin
-rw-r--r-- 1 pi pi 64736 Apr 18 12:01 g-fun.bin
-rw-r--r-- 1 pi pi 1475664 Apr 18 12:03 h-varied.bin
-rw-r--r-- 1 pi pi 19166672 Apr 18 12:01 i-gm1950.bin
-rw-r--r-- 1 pi pi 1487264 Apr 18 12:01 j-performance.bin
-rw-r--r-- 1 pi pi 5762000 Apr 18 12:01 k-stfish.bin
-rw-r--r-- 1 pi pi 1043568 Apr 18 12:03 l-anand.bin
-rw-r--r-- 1 pi pi 1923568 Apr 18 12:01 m-korchnoi.bin
-rw-r--r-- 1 pi pi 1013888 Apr 18 12:01 n-larsen.bin
-rw-r--r-- 1 pi pi 4337168 Apr 18 12:01 o-pro.bin
-rw-r--r-- 1 pi pi 246048 Apr 18 12:01 Perfect2019.bin
-rw-r--r-- 1 pi pi 430832 Apr 18 12:01 p-gm2001.bin
-rw-r--r-- 1 pi pi 3902368 Apr 18 12:01 q-komodo.bin
-rw-r--r-- 1 pi pi 4263200 Jun 14 12:10 r2-wasp.bin
-rw-r--r-- 1 pi pi 60588752 Apr 18 12:02 r-morphius.bin
-rw-r--r-- 1 pi pi 167787040 Jul 27 12:08 s1-cerebellum.bin
-rw-r--r-- 1 pi pi 10172160 Apr 18 12:01 s2-rodent.bin
-rw-r--r-- 1 pi pi 7563984 Jul 25 19:00 s3-lc0cerebellum.bin
-rw-r--r-- 1 pi pi 23452576 Mar 24 19:18 s4-lc0T610.bin
-rw-r--r-- 1 pi pi 14731456 Apr 18 12:01 t1-human.bin
-rw-r--r-- 1 pi pi 859232 Apr 18 12:01 t2-irina.bin
-rw-r--r-- 1 pi pi 10185472 May 31 15:18 texel.bin
-rw-r--r-- 1 pi pi 12868496 Apr 18 12:01 u-ranomi.bin
-rw-r--r-- 1 pi pi 2483696 Apr 18 12:03 v-feobos3.bin
-rw-r--r-- 1 pi pi 2494048 Apr 18 12:01 w-elo2400.bin
-rw-r--r-- 1 pi pi 346736 Apr 18 12:01 x-gm2600.bin
-rw-r--r-- 1 pi pi 106288 Apr 18 12:01 y-carlsen.bin
-rw-r--r-- 1 pi pi 7696 Apr 18 12:01 z10-capablanca.bin
-rw-r--r-- 1 pi pi 14368 Apr 18 12:01 z11-botvinnik.bin
-rw-r--r-- 1 pi pi 19648 Apr 18 12:01 z12-alekhine.bin
-rw-r--r-- 1 pi pi 11296 Apr 18 12:01 z13-fischer.bin
-rw-r--r-- 1 pi pi 45040 Apr 18 12:01 z14-karpov.bin
-rw-r--r-- 1 pi pi 29296 Apr 18 12:01 z15-petrosian.bin
-rw-r--r-- 1 pi pi 9361568 Apr 18 12:01 z16-exoticbook.bin
-rw-r--r-- 1 pi pi 8407936 Apr 18 12:03 z17-gambitbook.bin
-rw-r--r-- 1 pi pi 37808 Apr 18 12:01 z1-smyslov.bin
-rw-r--r-- 1 pi pi 25280 Apr 18 12:01 z2-carlsen2.bin
-rw-r--r-- 1 pi pi 11229632 Apr 18 12:01 z3-GMopenings.bin
-rw-r--r-- 1 pi pi 35776 Apr 18 12:01 z4-kramnik.bin
-rw-r--r-- 1 pi pi 10416 Apr 18 12:01 z5-lasker.bin
-rw-r--r-- 1 pi pi 35728 Apr 18 12:03 z6-tal.bin
-rw-r--r-- 1 pi pi 7856 Apr 18 12:01 z7-steinitz.bin
-rw-r--r-- 1 pi pi 30752 Apr 18 12:01 z8-spassky.bin
-rw-r--r-- 1 pi pi 14896 Apr 18 12:01 z9-euwe.bin
-rw-r--r-- 1 pi pi 1617072 Apr 18 12:01 z-kasparov.bin
pi@RPi-64bit:~/mount/SSD/opt/shared-folders/books $


Cheers,

Al.

Tobias

unread,
Aug 15, 2020, 9:03:17 AM8/15/20
to PicoChess
Thank you!

Is it possible that I can an completely picochess backup from the sd card?

mvanthoor

unread,
Aug 15, 2020, 9:28:41 AM8/15/20
to PicoChess
You can use Win32 Disk Imager for that. You can have it read the SD-card (in a card reader) and dump the contents to the hard drive.

The Image I'm building has the GUI and the SD copier in it. This will allow someone to use just connect a card reader to the RPi, log in over the network, and copy the card directly. Then the partitions on the copied card can be shrunk using GPARTED, and with dd, a dump can be made back onto the original card, in the home directory. It can then be downloaded from another computer. That will create a MUCH smaller image than the one Disk Imager will create.

At some point after I finish this image, I'll also write a short how-to on creating such an image. For now, as a backup, dumping the image using Win32 Disk Imager will work.

Tobias

unread,
Aug 15, 2020, 10:07:25 AM8/15/20
to PicoChess
Now I have a problem, my books are not working after renaming and deleting the standard books.

Just my first book "Koenigsgambit" is fine.

Thats the books.ini:

[a-nobook.bin]
small = nobook
medium = No book
large = No book

[b-koenigsgambit.bin]
small = Koenigsgambit
medium = Koenigsgambit
large = Koenigsgambit

[c-wienerpartie.bin]
small = WienerPartie
medium = Wiener Partie
large = Wiener Partie

[d-laeuferspiel.bin]
small = Laeuferspiel
medium = Laeuferspiel
large = Laeuferspiel

[e-centrepartie.bin]
small = CentrePartie
medium = Centre Partie
large = Centre Partie

[f-italienisch.bin]
small = Italienisch
medium = Italienisch
large = Italienisch

[g-vierspringer.bin]
small = Vierspringerspiel
medium = Vierspringerspiel
large = Vierspringerspiel

[h-zweispringer.bin]
small = Zweispringerspiel
medium = Zweispringerspiel
large = Zweispringerspiel

[i-schottisch.bin]
small = Schottisch
medium = Schottisch
large = Schottisch

Have you a idea?

regards
Message has been deleted

Tobias

unread,
Aug 15, 2020, 11:25:46 AM8/15/20
to PicoChess
Now I have reloaded the backup it is ok.

Why I cant delete the standard books?

RandyR

unread,
Aug 15, 2020, 11:34:27 AM8/15/20
to PicoChess
Tobias,
Small, medium and large refer to the number of characters displayed on the clock/display. The limits are as follows:

small - 6 characters
medium - 8 characters
large - 11 characters

For example, you could use:

[b-koenigsgambit.bin]
small = KngsGb
medium = KoengGbt
large = Koenigs Gbt  <<--------- spaces are counted

The same limitation exists in the engines.ini file. You need to be creative when shortening the names.

Randy

mvanthoor

unread,
Aug 15, 2020, 11:45:31 AM8/15/20
to PicoChess
You beat me to the punch with this one Randy :)

If PicoChess actually DOES ignore books if the names are too long, I'd look into changing this. Just read the name, and if it's longer than the one that'll fit on the clock, just cut the name off at the right amount of characters. In that case, the book will at least work. (Maybe I should start keeping a todo list.)

I would actually suggest:

short=KGmbt
medium=KGambit
long=KGambit

(Experiment if lower or upper case letters work best... don't know yet. I have an XL clock lying around from before I switched to the 3000LE. I'll hook that up for testing. I can't test the long names, but I assume if a upper/lowercase letter works best on the normal DGT3000, it'll also work best on the Pi. Might be different on the RevII, though.)

RandyR

unread,
Aug 15, 2020, 11:53:06 AM8/15/20
to PicoChess
On Saturday, August 15, 2020 at 10:45:31 AM UTC-5 mvanthoor wrote:
If PicoChess actually DOES ignore books if the names are too long, I'd look into changing this. Just read the name, and if it's longer than the one that'll fit on the clock, just cut the name off at the right amount of characters. In that case, the book will at least work. (Maybe I should start keeping a todo list.)

Or, have a scrolling display so no truncation would be required.

Yes, you better make a list. :^)

Randy

Sigifredo Franco

unread,
Mar 29, 2021, 11:50:25 PM3/29/21
to PicoChess

Tobias,

We’re you successfully able to add multiple books to your DGT Pi?
I am interested in creating my own books using chessbase 16 but I am not really sure where to start
Thanks

Sigi
Message has been deleted

Scally

unread,
Mar 30, 2021, 4:45:37 AM3/30/21
to PicoChess
Hi Sigi,

The books files have to be in .bin format for Picochess and added to /opt/picochess/books 

You can then build the books.ini file used by Picochess to select the books by typing:
cd /opt/picochess
sudo python3 ./build/books.py
You can then edit this file manually if you like to tidy the names up to fit your size of clock display properly.

Mine are shown in the attachment below.

The reason we don’t include extra books in the Picochess GitHub site is that some are very large, too large for GitHub upload.
These would also increase the size of any images provided, like the those from Randy.

But you can readily search and add your own as I’ve already described.

It’s the same with Syzygy Endgame tablebases, Picochess has 3&4 men tablebases as standard (4.3mb) , I have 3-4-5 (939 mb), however should you want 6 or 7 men TB’s they are 150gb & 17 terabytes accordingly.


Cheers,

Al
2E52581D-DF2A-4A73-B1E2-8F8B664906B4.jpeg

Sigifredo Franco

unread,
Mar 30, 2021, 9:34:53 PM3/30/21
to PicoChess
Al,

Thank you for the response. I have several questions. I do not have any experience with creating these files. can we take this offline? My email is s1970....@gmail.com.

Sigifredo Franco

unread,
Apr 10, 2021, 11:18:33 AM4/10/21
to PicoChess

Al,

I have a few question. I was able to successfully create and upload opening books following instructions from Benny Topschach website dated 2018 :)
My first question is can you confirm that the latest Version of Pichochess is .9L? I saw this on DGT website but there is no time stamp.
Do you know how to change the weight of the moves to zero? I have created several books in .bin format as white against  blacks most common defenses.

Scally

unread,
Apr 11, 2021, 3:44:38 AM4/11/21
to PicoChess
Hi Sigi,

I sent you an email a couple of weeks back.

I’ll try to answer your question as diplomatically as I can, hopefully it is not misunderstood as I don’t want to offend anyone:

Picochess v0.9l was released back in December 2017 and was included with the introduction of the DGT Pi. Since then, v0.9m & v0.9n were released by Jürgen on the official GitHub site: https://github.com/jromang/picochess/releases 
Jürgen went on to release v0.9p through to v0.9u privately here: https://picochess.com/
Dirk then updated to v1.0, v2.0, v2.01 and lately v3.0 “for his own use” here: https://github.com/tosca07/picochess/releases
Randy has the latest v3.0 images hosted here: https://groups.google.com/g/picochess/c/jCuWSm0EDH8/m/50v2L-xbAwAJ
There’s plenty of other interesting material in the forum of other projects that various people are doing.

As for changing the weight of the moves to zero in the .bin book files, I have no idea. I personally use a lot more book files than are available on the Picochess GitHub sites, but can’t host these because of the sheer size of some of them.

Maybe someone else here can help you with your query?

Are you able to share any of your book files?

My list is attached.


Cheers,

Al.
BD4441E8-9ED0-4BDC-BD55-911BD148D392.jpeg

Sigifredo Franco

unread,
Apr 18, 2021, 4:34:00 PM4/18/21
to pico...@googlegroups.com
Al,

Sorry for the late response.
Also I accidentally sent you two emails last week. I was having issues with my email.

i have decided not to attempt to change the weights of the moves.
I thought that this was needed but it turns out that i have many files created.
Basically, i created a file for each defense. I believe that i creaded close to 30 files.

 Which version of the pichochess would you recommend. I built the opening books so that i can practice against the engines. For example, i have all major lines that start of 1 e4 e6 2 d4 d5.
The idea is to try different lines as white ( 3Nd2, 3Nc3 , 3 e5) to see which major branch i like the most.

thanks
Sigi



--
You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/CWptD0MflZs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/66ab0788-f306-45f8-a269-5934913a47bbn%40googlegroups.com.

Scally

unread,
Apr 19, 2021, 9:41:22 AM4/19/21
to PicoChess
Hi Sigi,

That’s a no brainer, it has to be Dirk’s superb v3.0 with all the extra features.

You can download either the desktop or lite versions at the bottom of Randy’s thread here: https://groups.google.com/g/picochess/c/jCuWSm0EDH8


Cheers,

Al.

Dirk

unread,
Apr 19, 2021, 10:00:21 AM4/19/21
to PicoChess
th.jpeg
Reply all
Reply to author
Forward
0 new messages