Williamguttn / Sloth

UCI chess engine
GNU General Public License v3.0
0 stars 1 forks source link

Compilation on Linux failed, but solved #1

Open tissatussa opened 2 months ago

tissatussa commented 2 months ago

I tried to compile your newest v2.0 source on Linux but at first i didn't succeed. I had to change several parts of the code to make it work, but now the engine runs fine in CuteChess. I supply my corrected package here : Sloth-v2.0-fixed-code-with-own-meson-build.zip It can be used on Linux systems but not on Windows out-of-the-box, it's for you to study my (general) changes and adjust your code accordingly for Windows.

The ZIP includes my own implementation of the Meson Build system, which i studied a bit (its documentation is not very clear) and it gives a good result. Meson is certainly worth studying, i like it. It has a simple and clear syntax and compiles fast. Also see my INSTALL.txt

Btw. after letting it play several 5m+3s games against other engines, i estimate Sloth v2.0 having rating about 2100 !

Williamguttn commented 2 months ago

I tried to compile your newest v2.0 source on Linux but at first i didn't succeed. I had to change several parts of the code to make it work, but now the engine runs fine in CuteChess. I supply my corrected package here : Sloth-v2.0-fixed-code-with-own-meson-build.zip It can be used on Linux systems but not on Windows out-of-the-box, it's for you to study my (general) changes and adjust your code accordingly for Windows.

The ZIP includes my own implementation of the Meson Build system, which i studied a bit (its documentation is not very clear) and it gives a good result. Meson is certainly worth studying, i like it. It has a simple and clear syntax and compiles fast. Also see my INSTALL.txt

Btw. after letting it play several 5m+3s games against other engines, i estimate Sloth v2.0 having rating about 2100 !

Hi there. Thank you for posting your own implementation! I didn't initially intend on making the engine Linux compatible, but you are making me reconsider that thought. I will take a look at your changes and then hopefully get back to you.

And thank you for your ELO estimation!

tissatussa commented 2 months ago

@Williamguttn it's my pleasure ! Btw. i posted a ZIP here because i'm not into GitHub stuff like push / commit / PR etc. ..

i think it's a challenge to create code and Makefiles (or Mason etc.) which compiles on all OS - but i'm only familiar with Windows and Linux (most), not with Android and Mac.

i often want to make Windows code work on my Linux, and i learned a lot : many code incompatibilities between them can be solved by using commands and constructs which work on both - despite the #ifdef / #else / #endif constructs which can always offer a solution .. but Windows users often aren't familiar with those alternative codes, and they don't need them - as long as it's for Windows ..

if you want me to test on Linux (i use Xubuntu 22.04) i'm happy to.