I'm Luca and I have recently developed a chess engine in C++. I started 2 years ago, when I learned Python and found out about python-chess library. I managed to make an engine, but it was too too slow. So, I decided to start from scratch an engine in C++, which proved to be fun, and I countinued to this day. Of course, this is not my first version, but is one I'm ok with. (Other versions have major bugs...)
Thanks for pointing this out! The first one is the good source code. The second one is an older version. I think I posted the release a bit early, before cleaning up and uploading the right code
In file included from board.h:5,
from init.h:3,
from main.cpp:5:
defs.h:10:1: error: 'mt19937_64' does not name a type
10 | mt19937_64 gen(0xBEEF);
| ^~~~~~~~~~
defs.h: In function 'void init_defs()':
defs.h:256:27: error: 'gen' was not declared in this scope
256 | hashKey[j] = rng(gen);
| ^~~
defs.h:261:29: error: 'gen' was not declared in this scope
261 | castleKey[j] = rng(gen);
| ^~~
defs.h:271:23: error: 'gen' was not declared in this scope
271 | enPasKey = rng(gen);
| ^~~
e:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\cicus\AppData\Local\Temp\Clover_2.1-x64-SzG.exe.R9SQMx.ltrans0.ltrans.o:<artificial>:(.text+0xc20d): undefined reference to `tb_probe_wdl_impl'
e:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\cicus\AppData\Local\Temp\Clover_2.1-x64-SzG.exe.R9SQMx.ltrans0.ltrans.o:<artificial>:(.rdata$.refptr.TB_LARGEST[.refptr.TB_LARGEST]+0x0): undefined reference to `TB_LARGEST'
e:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\cicus\AppData\Local\Temp\Clover_2.1-x64-SzG.exe.R9SQMx.ltrans1.ltrans.o:<artificial>:(.text+0x8b6d): undefined reference to `tb_init_impl'
collect2.exe: error: ld returned 1 exit status