Andscacs - New version 0.921 with source

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

Moderators: hgm, Rebel, chrisw

User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Andscacs - New version 0.921 with source

Post by cdani »

Damir wrote:I was thinking of parameters like these:

Here is the picture how Texel parameters look like:

http://www.solidfiles.com/v/gRMpNrp8ypeGv
Yes, if you follow the procedure I descrived you will have them.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Andscacs - New version 0.921 with source

Post by cdani »

MikeB wrote: also the makefile downloaded was missing magics.o on the OBJS listing, but that was pretty easy to identify...
Oops! Changed in the zip file of the source. Thanks!
Volker Pittlik
Posts: 619
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: Andscacs - New version 0.921 with source

Post by Volker Pittlik »

cdani wrote:...
Is like you have not defined the #LINUX
#define LINUX
I hope is this. The problem with linux is that I don't have any practice. I work mostly only with Windows.
If it does not work, can you post here the modified debug.h file if you want?
Sorry my stupidity. It goes forward but there are new errors. The modified debug.h.

Code: Select all

#ifndef INCLOS_DEBUG_H
#define INCLOS_DEBUG_H

#define POPCOUNT
#define ES32BITSn

#define GENERARDMP
#define TBn
#define TB2n
//#define WINDOWS
#define LINUX
#define RANDOMn

#include "analisis.h"
#include "definicions.h"

extern long long numjugadesperft;

#endif
And the new error messages:

Code: Select all

moviments.cpp:1522:21: Anmerkung: "actual" wurde hier deklariert
  MovList * RESTRICT actual;
                     ^
/tmp/cceDhH4e.ltrans1.ltrans.o: In function `eval_KRKP(tss*, InfoEval*, int, bool*)':
<artificial>&#58;(.text+0x250&#41;&#58; undefined reference to `MagicTMask'
...&#40;several 100 similar messages...)

Volker

P.S. Posting error messages is a real pain here. If the forum softzware dislikes one certain character the complete message is invisible.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Andscacs - New version 0.921 with source

Post by cdani »

Volker Pittlik wrote:

Code: Select all

moviments.cpp&#58;1522&#58;21&#58; Anmerkung&#58; "actual" wurde hier deklariert
  MovList * RESTRICT actual;
                     ^
/tmp/cceDhH4e.ltrans1.ltrans.o&#58; In function `eval_KRKP&#40;tss*, InfoEval*, int, bool*)'&#58;
<artificial>&#58;(.text+0x250&#41;&#58; undefined reference to `MagicTMask'
...&#40;several 100 similar messages...)
Maybe you have not seen the post of Michael saying that I had forgotten to add magics.o in the makefile. Just download again the source and replace the makefile.
Damir
Posts: 2801
Joined: Mon Feb 11, 2008 3:53 pm
Location: Denmark
Full name: Damir Desevac

Re: Andscacs - New version 0.921 with source

Post by Damir »

Where do I have to change the things you just mentioned, so I could get Andscacs parameters ? :)
Volker Pittlik
Posts: 619
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: Andscacs - New version 0.921 with source

Post by Volker Pittlik »

cdani wrote:...
Maybe you have not seen the post of Michael saying that I had forgotten to add magics.o in the makefile. Just download again the source and replace the makefile.
Indeed I missed that. Now it compiles error free and runs fine so far.

thx

vp
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Andscacs - New version 0.921 with source

Post by cdani »

tttony wrote:Cool!

The source has no license so I guess it's under public domain?
About the license, Elcabesa just told me that the WinGroupAffinity part of the code taken from Stockfish is incompatible with public domain license. Maybe the best is to remove it from Andscacs. In fact nobody is using it that I know. What do you think about? Thanks.
I just added it if I remember well when Ipmanchess asked to test Andscacs with more than 64 cores, I think.
Last edited by cdani on Sat Nov 04, 2017 9:58 pm, edited 1 time in total.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Andscacs - New version 0.921 with source

Post by cdani »

Damir wrote:Where do I have to change the things you just mentioned, so I could get Andscacs parameters ? :)
In the es.cpp file.
The problem is that if I add a few parameters it will not make much sense. And adding a lot of them is just a lot of work :-) I'm sorry.
elcabesa
Posts: 855
Joined: Sun May 23, 2010 1:32 pm

Re: Andscacs - New version 0.921 with source

Post by elcabesa »

cdani wrote: About the license, Elcabesa just told me that the WinGroupAffinity part of the code taken from Stockfish is incompatible with public domain license.
I'm not a GPL expert, so I really don't know all the implication of licenses of pieces of code that we can find in internet.
pferd
Posts: 134
Joined: Thu Jul 24, 2014 2:49 pm

Re: Andscacs - New version 0.921 with source

Post by pferd »

Thanks for this nice gift. :D

I tried to make it compile under clang under Linux and ran into a couple of these errors:

Code: Select all

analisis.cpp&#58;491&#58;3&#58; error&#58; cannot jump from this goto statement to its label
                goto fianalisi;
                ^
analisis.cpp&#58;505&#58;6&#58; note&#58; jump bypasses variable initialization
        int mirarfinsprofunditat = MaxProfunditat;
            ^
analisis.cpp&#58;811&#58;7&#58; warning&#58; unused variable 'alphaori' &#91;-Wunused-variable&#93;
                int alphaori = alpha;
                    ^
analisis.cpp&#58;1505&#58;5&#58; warning&#58; unused label 'jugadapotserdolenta' &#91;-Wunused-label&#93;
                                jugadapotserdolenta&#58;
After some quick fixing it compiled but hit this error. (https://stackoverflow.com/a/32351440/6763189)

Code: Select all

gdb ./andscacs                                                      &#58;(
GNU gdb &#40;GDB&#41; 8.0.1
Copyright &#40;C&#41; 2017 Free Software Foundation, Inc.
License GPLv3+&#58; GNU GPL version 3 or later <http&#58;//gnu.org/licenses/gpl.html>
This is free software&#58; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see&#58;
<http&#58;//www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at&#58;
<http&#58;//www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./andscacs...done.
&#40;gdb&#41; r test
Starting program&#58; /home/tobias/Downloads/andscacs0921src/andscacs test
&#91;Thread debugging using libthread_db enabled&#93;
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Andscacs 0.921 by Daniel Jose
info depth 11 seldepth 19 score cp 23 nodes 34156 nps 1313692 tbhits 0 time 26 pv b1c3 e7e6 e2e4 d7d5 e4d5 e6d5 d2d4 g8f6 g1f3 f6e4 c1f4 b8c6 f1d3 
info depth 11 seldepth 18 score cp 35 nodes 42942 nps 1341937 tbhits 0 time 32 pv c2c4 c7c6 d2d4 d7d5 c4d5 c6d5 b1c3 g8f6 c1f4 b8c6 e2e3 c8g4 
info depth 12 seldepth 22 score cp 34 nodes 76112 nps 1335298 tbhits 0 time 57 pv c2c4 c7c5 b1c3 b8c6 e2e4 e7e6 d2d3 b7b6 g1f3 d7d6 g2g3 d8f6 
info depth 13 seldepth 27 score cp 22 nodes 135688 nps 1330274 tbhits 0 time 102 pv b1c3 d7d5 d2d4 e7e6 e2e3 c7c5 d4c5 d8a5 h2h3 a5c5 g1f3 g8f6 a2a3 f6e4 
info depth 13 seldepth 21 score cp 39 nodes 177612 nps 1296437 tbhits 0 time 137 pv e2e4 d7d5 e4d5 g8f6 d2d4 d8d5 b1c3 d5d6 c1e3 c7c6 g1f3 f6g4 f1c4 g4e3 f2e3 
info depth 14 seldepth 25 score cp 24 nodes 303717 nps 1286936 tbhits 0 time 236 pv d2d4 e7e6 b1c3 d7d5 e2e3 g8f6 g1f3 f8b4 f1d3 b8c6 f3e5 e8g8 e1g1 
info depth 15 seldepth 26 score cp 35 nodes 536422 nps 1292583 tbhits 0 time 415 pv d2d4 g8f6 g1f3 c7c6 b1c3 d7d5 e2e3 g7g6 f1d3 f8g7 e1g1 e8g8 f3e5 a7a6 b2b3 
info depth 15 seldepth 27 score cp 53 nodes 644438 nps 1288876 tbhits 0 time 500 pv e2e4 e7e6 d2d4 d7d5 b1c3 d5e4 c3e4 b8c6 g1f3 f7f5 e4c3 a7a6 c1g5 g8f6 d4d5 c6e7 f3e5 e7d5 f1e2 
info depth 16 seldepth 27 score cp 51 nodes 768650 nps 1278951 tbhits 0 time 601 pv e2e4 e7e6 d2d4 d7d5 b1c3 d5e4 c3e4 b8c6 g1f3 f7f5 e4c3 g8f6 f1c4 a7a6 e1g1 b7b5 d4d5 c6b4 c4b3 
info depth 17 seldepth 29 score cp 44 nodes 902175 nps 1288821 tbhits 0 time 700 pv e2e4 e7e6 d2d4 d7d5 b1c3 d5e4 c3e4 b8c6 g1f3 f8e7 c2c3 g8f6 e4f6 e7f6 f1d3 e8g8 e1g1 e6e5 d4e5 c6e5 f3e5 f6e5 
info depth 18 seldepth 32 score cp 48 nodes 1618178 nps 1286310 tbhits 0 time 1258 pv e2e4 c7c5 b1c3 b8c6 g1f3 g8f6 f1e2 e7e6 e1g1 f8e7 d2d4 c5d4 f3d4 e8g8 c1e3 d7d5 e4d5 f6d5 c3d5 e6d5 c2c4 d5c4 d4c6 
info nodes 1706752 nps 1287143 time 1326
bestmove e2e4 ponder c7c5
info depth 11 seldepth 16 score cp 64 nodes 50708 nps 1448800 tbhits 0 time 35 pv f8e7 f1c1 b8c7 c1c2 f6f5 e4g5 b4b3 c2e2 e8c8 e2e1 c8b8 
info depth 12 seldepth 22 score cp 39 nodes 121126 nps 1441976 tbhits 0 time 84 pv f8e7 f1e1 b8c7 h4h3 f6f5 e4d2 a8d8 f3e5 b7g2 h3g2 d7e5 e1e5 h5h4 
info depth 13 seldepth 24 score cp 34 nodes 275778 nps 1372029 tbhits 0 time 201 pv f8e7 f1e1 b7d5 f3d2 b8c7 h2h3 f6f5 e4g5 b4c3 g2d5 c3d2 d5a8 d2e1q a1e1 d7b6 a8f3 b6a4 f3h5 
info depth 14 seldepth 25 score cp 32 nodes 319712 nps 1372154 tbhits 0 time 233 pv f8e7 f1e1 b7d5 f3d2 b8c7 h2h3 f6f5 e4g5 b4c3 g2d5 c3d2 d5a8 d2e1n a1e1 d7b6 a8f3 b6a4 f3h5 e8d7 
info depth 15 seldepth 30 score cp 60 nodes 913028 nps 1332887 tbhits 0 time 685 pv f8e7 f1e1 b7d5 f3d2 b8c7 f2f4 f6f5 e4g5 d5g2 g1g2 d7b6 d2f3 c7c6 c3b4 a5b4 a4a5 b6d5 g2g1 e8c8 f3e5 
info depth 16 seldepth 27 score cp 59 nodes 964780 nps 1339972 tbhits 0 time 720 pv f8e7 f1e1 b7d5 f3d2 b8c7 f2f4 f6f5 e4g5 d5g2 g1g2 d7b6 d2f3 e8c8 c3b4 a5b4 a4a5 b6d5 a5a6 e7g5 f3g5 d8g8 
info depth 17 seldepth 32 score cp 55 nodes 1497094 nps 1327210 tbhits 0 time 1128 pv f8e7 f1e1 b8c7 h4h3 f6f5 e4d2 e8c8 f3e5 d7e5 e1e5 b7a6 g2h1 b4c3 b2c3 h5h4 h3g2 c8d7 a1e1 d8g8 g2f3 h4g3 f2g3 e7g5 
info depth 18 seldepth 30 score cp 55 nodes 1678103 nps 1333945 tbhits 0 time 1258 pv f8e7 f1e1 b8c7 h4h3 f6f5 e4d2 e8c8 f3e5 d7e5 e1e5 b7a6 g2h1 b4c3 b2c3 h5h4 h3g2 c8d7 a1e1 d8g8 g2f3 h4g3 f2g3 e7g5 
info nodes 3834399 nps 1295405 time 2960
bestmove f8e7 ponder e4d2

Program received signal SIGSEGV, Segmentation fault.
eval_KPK &#40;ss=0x705370 <ssbase>, ie=<optimized out>, color=<optimized out>) at finals.cpp&#58;485
485             if (!win&#41; &#123;
&#40;gdb&#41; 
The version compiled with gcc works without flaws.