Delimiter development diary

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
maksimKorzh
Posts: 692
Joined: Sat Sep 08, 2018 3:37 pm
Location: Ukraine
Full name: Maksim Korzh
Contact:

Re: Delimiter development diary

Post by maksimKorzh » Sun Feb 07, 2021 7:12 pm

Cool that you didn't give up!
Bare minimum chess variants in vanilla JavaScript
https://maksimkorzh.github.io/bmcp-variants/

Chess programming YouTube channel:
https://www.youtube.com/channel/UCB9-pr ... KKqDgXhsMQ

shinkarom
Posts: 84
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko
Contact:

Re: Delimiter development diary

Post by shinkarom » Mon Feb 08, 2021 8:25 am

Don't be fooled, the project is still pointless.

shinkarom
Posts: 84
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko
Contact:

Re: Delimiter development diary

Post by shinkarom » Wed Feb 17, 2021 2:02 pm


shinkarom
Posts: 84
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko
Contact:

Re: Delimiter development diary

Post by shinkarom » Wed Feb 24, 2021 9:24 am

With the files converted, now it's time to make it work. The engine now can think to depth 1 from the start position without erros. (Depths 2 and 3 are still glitchy).
There were many mistypings in the code. I presume even more will be found before Delimiter is Arena-worthy.
In other news: I created my own debugit module. For now it only prints the board pieces, but of course the need for debugging will only increase.
If you haven't nocited, Delimiter is now a derivative of Lime rather than a port.

unserializable
Posts: 63
Joined: Sat Oct 24, 2020 4:39 pm
Full name: Taimo Peelo

Re: Delimiter development diary

Post by unserializable » Wed Feb 24, 2021 8:31 pm

Hey Roman, if you get around to adding some compilation instructions, or better yet, Makefile that makes use of D compiler that is available from Debian / Ubuntu repositories, I might fire Delimiter up some time.
Monchester 1.0, chess engine playing at scholastic level: https://github.com/unserializable/monchester ("Daddy, it is gonna take your horsie!")
Tickle Monchester at: https://lichess.org/@/monchester

shinkarom
Posts: 84
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko
Contact:

Re: Delimiter development diary

Post by shinkarom » Fri Feb 26, 2021 8:33 am

There's not much to do. Just install dmd(the D compiler). Then in the root folder of the repo type dub build. It's supposed to build the executable into the bin subfolder.

abulmo2
Posts: 338
Joined: Fri Dec 16, 2016 10:04 am
Contact:

Re: Delimiter development diary

Post by abulmo2 » Sat Feb 27, 2021 3:29 pm

shinkarom wrote:
Fri Feb 26, 2021 8:33 am
There's not much to do. Just install dmd(the D compiler). Then in the root folder of the repo type dub build. It's supposed to build the executable into the bin subfolder.
If you want some acceptable performances it is better to compile it with ldc2 or gdc (dub build --compiler ldc2 --release) than with dmd. However dmd is a good compiler at the early stages of development, as it compiles amazingly fast.
Unfortunately, the compilation failed on my computer. I submitted two PR to correct the erroneous lines. Once compiled, it looks like the program is still in debugging stages (it proposes b2c3 as first move from the starting position), so I didn't look it further.
Good luck to make it progress and reach a playable level.
Richard Delorme

shinkarom
Posts: 84
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko
Contact:

Re: Delimiter development diary

Post by shinkarom » Sat Feb 27, 2021 4:02 pm

I've merged one pull request, the one about interrupt.d. The one about srand was not needed since I changed book.d to use std.random.
Check out the engine now, it should be more reasonable on depths 1 and 2. Depth 3 still makes it crash.
Thank you for your attention. You don't know how much this means to me. An actual confirmation that someone is using my project, with specific details and not merely generic phrases (which might be simple politeness).

unserializable
Posts: 63
Joined: Sat Oct 24, 2020 4:39 pm
Full name: Taimo Peelo

Re: Delimiter development diary

Post by unserializable » Sun Feb 28, 2021 2:09 pm

shinkarom wrote:
Fri Feb 26, 2021 8:33 am
There's not much to do. Just install dmd(the D compiler). Then in the root folder of the repo type dub build. It's supposed to build the executable into the bin subfolder.
Hey, without implicit awareness of D ecosystem (as most do not), this might not be so straightforward. I myself have actually heard of dmd, but never of dub though I have wide (though at times superficial) knowledge of software development world. Also dmd itself actually is not available from Ubuntu 20.04.2 default repositories, though there is DMD-like wrapper for GDC (... and apparently, dmd might be possible to be installed as snap with sudo snap install dmd, but I avoid snap usage).

Code: Select all

$ apt-cache search dmd | grep -i dmd
gdmd - DMD-like wrapper for GDC
libcrypt-passwdmd5-perl - interoperable MD5-based crypt() for Perl
Some further grepping revealed metapackage 'default-d-compiler - Default D compiler (metapackage)' which installs no actual compiler at all. So with Richard hints above, I tried out gdc and dub installation:

Code: Select all

$ sudo apt install gdc dub
Which installed "gdc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0" and "dub 1.19.0-1build2" packages. However, the dub does not work at all:

Code: Select all

$ dub build
dub: symbol lookup error: dub: undefined symbol: _D3std3net4curl4HTTP9__mixin376onSendMFNdDFAvZmZv
The gdc compiler itself seems to function fine, at least "Hello world" I tried out compiled and ran successfully, so some simple Makefile could be of help for tryouts. Searching for the dub error indicates that its packages in neither Debian or Ubuntu are well maintained (see https://forum.dlang.org/post/lvtnjxlyvh ... .dlang.org)
Monchester 1.0, chess engine playing at scholastic level: https://github.com/unserializable/monchester ("Daddy, it is gonna take your horsie!")
Tickle Monchester at: https://lichess.org/@/monchester

shinkarom
Posts: 84
Joined: Tue Nov 19, 2019 12:26 pm
Full name: Roman Shynkarenko
Contact:

Re: Delimiter development diary

Post by shinkarom » Sun Feb 28, 2021 3:39 pm

Maybe try installing dub from original repository https://github.com/dlang/dub/releases.

Post Reply