Andscacs - New version 0.921 with source

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

Moderators: hgm, Rebel, chrisw

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

Code: Select all

gdb ./andscacs                                                      :(
GNU gdb (GDB) 8.0.1
Copyright (C) 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.
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 »

elcabesa wrote:
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.
Sorry yes, I mean you suggested it :-)
tttony
Posts: 268
Joined: Sun Apr 24, 2011 12:33 am

Re: Andscacs - New version 0.921 with source

Post by tttony »

cdani wrote:
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.
Since is a strong program I think you should choose a license: https://choosealicense.com/

Anyway a code without license has copyright https://blog.codinghorror.com/pick-a-li ... y-license/
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 »

pferd wrote: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
...
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.
I used gcc also to compile it for linux.
I will clean those warnings, thanks.
About the error at finals.cpp, at first sight I don't see what can cause the error, specially taking into account that works well with other compiles. I will think about it. Thanks.
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: Andscacs - New version 0.921 with source

Post by carldaman »

Thanks a lot, Daniel. Good luck the rest of the way. :D

CL
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

MacOS exe

Post by MikeB »

cdani wrote:Hello. So here it is the version for the second stage of TCEC. Is really a minor version, with luck +5 elo.

Changes:
* Improved various pawn structure evaluation parameters.
* Move search improvements.
* Improvement of various imbalances.
* Improvements in some endgames.

http://www.andscacs.com/downloads/andscacs0921.zip

As promised the source code:
www.andscacs.com/downloads/andscacs921src.zip

Is a Visual Studio 2013 solution. Also it contains a makefile for Linux.
Michael will try to make a Mac version, thanks to him!
Daniel ,

What a great treat you gave to the CC community today. I love your engine a very unique style and very strong.

This run was just for fun and it was very quick tc (24 sec base)
K11.2.2 has really picked up its game with these micro time controls but I believe this may be a slightly lucky run. I checked the pgn and there was no losses on time by engine. Almost 500s point higher than Fruit 2.2.1 in this run.

Code: Select all

300 of 756 games completed...
time control&#58; 24+.40 seconds
Date&#58; 11/04/17 &#58; 19&#58;51&#58;38
300 game&#40;s&#41; loaded

Rank Name                  Rating   &#916;     +    -     #     &#931;    &#931;%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Komodo 11.2.2 64-bit   3496   0.0   72   72   151  143.0  94.7  136    1   14  90.1   9.3  2968 
   2 Andscacs 0.921         3226 270.1   54   54   149   98.0  65.8   85   38   26  57.0  17.4  3059 
   3 Crafty-25.2            2941 285.7   53   53   150   46.5  31.0   36   93   21  24.0  14.0  3155 
   4 Fruit 2.2.1            2737 204.2   65   65   150   12.5   8.3    4  129   17   2.7  11.3  3221 
---------------------------------------------------------------------------------------------------------
  &#931; = total score, 1 point for win, 1/2 point for draw
300 game&#40;s&#41; loaded
[pgn][Event "Computer chess game"]
[Site "Mac-Pro"]
[Date "Sat Nov 4 19:35:37 2017"]
[Round "7"]
[White "Komodo 11.2.2 64-bit"]
[Black "Andscacs 0.921"]
[Result "0-1"]
[TimeControl "2400+40"]
[FEN "r1bqkb1r/pp1ppppp/2n2n2/2p5/5P2/5NP1/PPPPP2P/RNBQKB1R w KQkq - 0 1"]
[SetUp "1"]

1. c4 g6 2. Nc3 Bg7 3. e4 d6 4. d3 Bg4 5. Bg2 O-O 6. Be3 Nd4 7. O-O a6 8.
Bxd4 cxd4 9. Ne2 Nd7 10. Qd2 e5 11. h3 Bxf3 12. Rxf3 b5 13. Rc1 Qb6 14.
Rff1 Rfc8 15. cxb5 Rxc1 16. Rxc1 axb5 17. b4 Bh6 18. Rc2 Qa7 19. Nc1 Nf8
20. Bf3 exf4 21. Ne2 Nd7 22. Kg2 Ne5 23. gxf4 d5 24. Rc5 Nxf3 25. Kxf3
dxe4+ 26. dxe4 Bf8 27. Rd5 Qa3+ 28. Kg2 Bxb4 29. Qxd4 Qxa2 30. Qd1 Be7 31.
Qd2 b4 32. Qxa2 Rxa2 33. Kf2 Bh4+ 34. Ke3 Ra3+ 35. Kd2 Rxh3 36. Rb5 Rh1 37.
Ke3 Rb1 38. Nd4 Be7 39. f5 Rc1 40. e5 Bc5 41. f6 h5 42. Kd2 Rc3 43. Rb8+
Kh7 44. e6 Bxd4 45. e7 Re3 46. Rxb4 Bxf6 47. Kxe3 Bxe7 48. Rb7 Bc5+ 49. Kf4
Kg7 50. Kg5 Be3+ 51. Kh4 Kf6 52. Rb3 Bf2+ 53. Kh3 Kg7 54. Kg2 Bh4 55. Kf3
g5 56. Rb8 Kg6 57. Rg8+ Kf5 58. Rh8 g4+ 59. Kg2 Kg6 60. Rg8+ Kh7 61. Rb8
Kg7 62. Rb5 Kg6 63. Rb8 Bf6 64. Kg3 Bg7 65. Re8 Kg5 66. Kf2 h4 67. Rg8 Kg6
68. Ke3 h3 69. Rd8 h2 70. Rd1 Bd4+ 71. Ke2 Bg1 72. Rd6+ Kg5 73. Rd5+ f5 74.
Rd8 h1=Q 75. Rg8+ Kf4 76. Rc8 Bc5 77. Rd8 Qf3+ 78. Ke1 Bb4+ 79. Rd2 Qg2 80.
Kd1 Qxd2#
{White Checkmated} 0-1[/pgn]

nice solid game...

https://www.dropbox.com/s/wbxwoa3g3idnl ... S.zip?dl=1