ShashChess and Brainlearn

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: ShashChess and Brainlearn

Post by Eduard »

Hello Andrea, I can't understand why the live book is so important to you, but you have removed Slow Mover from Brainlearn. Khalid Omar did not remove the slow mover from Eman. He plays a lot on Lichess now, like me. We know that the slow mover is important for playing on servers. You don't have to believe everything the SF developers want to tell us. :!:
Archimedes
Posts: 168
Joined: Tue Mar 05, 2019 3:43 pm
Full name: Archimedes

Re: ShashChess and Brainlearn

Post by Archimedes »

It would be good if you could also define the learning file in the UCI options, i.e. name and directory. On Android, the current directory is always a problem. Up to now, I have always created the learning file in the /storage/emulated/0/ directory. It is always associated with changes and with every new version you have to check whether something has changed (even if I do this with a script on Termux).
chessica
Posts: 962
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: ShashChess and Brainlearn

Post by chessica »

amchess wrote: Sun Feb 11, 2024 11:22 pm Follow the .doc file in shashchess to install latest msys2 and mingw: you'll have no problems at all.
The following is the test result of the new R-learning:
https://github.com/amchess/BrainLearn/wiki/Tests
Here is more information from the console:

Pruning file 'nnuesearch.cpp:54:14:/ nue_architecture.h'.
Pruning file 'nnue/features/half_ka_v2_hm.h'.
fatal error: Pruning file 'nnue/features/../../misc.h'.
curl/curl.h: No such file or directory
54 | #include Pruning file 'nnue/features/../../types.h'.
<curl/curl.h> Pruning file 'nnue/features/../../tune.h'.

| Pruning file 'nnue/features/../../types.h'.
^~~~~~~~~~~~~ Pruning file 'nnue/features/../nnue_common.h'.

Pruning file 'nnue/features/../../misc.h'.

Are there any other ideas?
Archimedes
Posts: 168
Joined: Tue Mar 05, 2019 3:43 pm
Full name: Archimedes

Re: ShashChess and Brainlearn

Post by Archimedes »

chessica wrote: Wed Feb 14, 2024 12:42 pm
amchess wrote: Sun Feb 11, 2024 11:22 pm Follow the .doc file in shashchess to install latest msys2 and mingw: you'll have no problems at all.
The following is the test result of the new R-learning:
https://github.com/amchess/BrainLearn/wiki/Tests
Here is more information from the console:

Pruning file 'nnuesearch.cpp:54:14:/ nue_architecture.h'.
Pruning file 'nnue/features/half_ka_v2_hm.h'.
fatal error: Pruning file 'nnue/features/../../misc.h'.
curl/curl.h: No such file or directory
54 | #include Pruning file 'nnue/features/../../types.h'.
<curl/curl.h> Pruning file 'nnue/features/../../tune.h'.

| Pruning file 'nnue/features/../../types.h'.
^~~~~~~~~~~~~ Pruning file 'nnue/features/../nnue_common.h'.

Pruning file 'nnue/features/../../misc.h'.

Are there any other ideas?
Remove -DUSE_LIVEBOOK from the makefile, if you don't need the live book feature.
chessica
Posts: 962
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: ShashChess and Brainlearn

Post by chessica »

Archimedes wrote: Wed Feb 14, 2024 12:50 pm
chessica wrote: Wed Feb 14, 2024 12:42 pm
amchess wrote: Sun Feb 11, 2024 11:22 pm Follow the .doc file in shashchess to install latest msys2 and mingw: you'll have no problems at all.
The following is the test result of the new R-learning:
https://github.com/amchess/BrainLearn/wiki/Tests
Here is more information from the console:

Pruning file 'nnuesearch.cpp:54:14:/ nue_architecture.h'.
Pruning file 'nnue/features/half_ka_v2_hm.h'.
fatal error: Pruning file 'nnue/features/../../misc.h'.
curl/curl.h: No such file or directory
54 | #include Pruning file 'nnue/features/../../types.h'.
<curl/curl.h> Pruning file 'nnue/features/../../tune.h'.

| Pruning file 'nnue/features/../../types.h'.
^~~~~~~~~~~~~ Pruning file 'nnue/features/../nnue_common.h'.

Pruning file 'nnue/features/../../misc.h'.

Are there any other ideas?
Remove -DUSE_LIVEBOOK from the makefile, if you don't need the live book feature.
Hello Archimedes, the tip was great. It works now and my compile is even a bit faster. :D :D :D
amchess
Posts: 367
Joined: Tue Dec 05, 2017 2:42 pm

Re: ShashChess and Brainlearn

Post by amchess »

No.
It's simply more effective.
Andrea
chessica
Posts: 962
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: ShashChess and Brainlearn

Post by chessica »

amchess wrote: Wed Feb 14, 2024 4:45 pm No.

Code: Select all

Now I'm asking naively, what do you mean by that? I don't understand your answer.
It's simply more effective.

Code: Select all

When is what more effective? And why?
Andrea

Code: Select all

Do you have a tip for me on how I can fix the error?
amchess
Posts: 367
Joined: Tue Dec 05, 2017 2:42 pm

Re: ShashChess and Brainlearn

Post by amchess »

I want to tell the new learning is only more effective than the previous one, but the experience files are yet valid.
To build Brainlearn and ShashChess follow the instructions in the .doc file.
amchess
Posts: 367
Joined: Tue Dec 05, 2017 2:42 pm

Re: ShashChess and Brainlearn

Post by amchess »

Archimedes wrote: Wed Feb 14, 2024 10:46 am It would be good if you could also define the learning file in the UCI options, i.e. name and directory. On Android, the current directory is always a problem. Up to now, I have always created the learning file in the /storage/emulated/0/ directory. It is always associated with changes and with every new version you have to check whether something has changed (even if I do this with a script on Termux).
I can but I wanted to simplify the experience files merging by putting them in the same current directory of the engine with the well known convention.
chessica
Posts: 962
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: ShashChess and Brainlearn

Post by chessica »

amchess wrote: Wed Feb 14, 2024 10:45 pm I want to tell the new learning is only more effective than the previous one, but the experience files are yet valid.
To build Brainlearn and ShashChess follow the instructions in the .doc file.

Mean You this what I found only in Sashchess?

Install: https://www.msys2.org/ (Change the installation directory to C:\tools\msys64)
Launch MSYS 2 64-bit (or 32-bit)
Run: pacman -Syuu --noconfirm --needed --disable-download-timeout (Keep running this command even if MSYS window closes automatically, until you see that all packages are showing the message xxx is up to date)
Run: pacman -S --noconfirm --needed --disable-download-timeout unzip make mingw-w64-x86_64-gcc mingw-w64-x86_64-toolchain mingw-w64-i686-gcc mingw-w64-i686-toolchain mingw-w64-x86_64-clang
At this point, you can compile Stockfish because it does not require CURL
Install CURL
Launch MSYS 2 64-bit (or 32-bit)
Run: pacman -S --noconfirm --needed --disable-download-timeout mingw-w64-x86_64-curl mingw-w64-i686-curl
Modify your Makefile at line 397 to become the following: LDFLAGS += -DUSE_LIVEBOOK -lcurl -lnghttp2 -lidn2 -lssh2 -lssh2 -lpsl -lbcrypt -ladvapi32 -lcrypt32 -lbcrypt -lssl -lcrypto -lssl -lcrypto -lgdi32 -lwldap32 -lzstd -lzstd -lbrotlidec -lz -lws2_32 -lidn2 -liconv -lunistring -lbrotlidec -lbrotlicommon –static
Compile 64 and 32 bit
Before you create a new release, run: pacman -Syuu --noconfirm --needed --disable-download-timeout from MSYS 2 64-bit (or 32-bit) to upgrade MSYS and all installed packages (including the compilers). Keep running this command even if the window closes on its own, until you see the message xxx is up to date for all packages