Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile on Linux after small changes #23

Open
tissatussa opened this issue Oct 2, 2024 · 9 comments
Open

compile on Linux after small changes #23

tissatussa opened this issue Oct 2, 2024 · 9 comments
Assignees

Comments

@tissatussa
Copy link

on Linux i managed to compile the newest source ("net8.0" from 3 weeks ago) with this command :

dotnet publish ./Woodpusher/Woodpusher.csproj -c Release -r linux-x64 --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./Woodpusher-compiled-single-binary

i get a single binary file of around 20 Mb, which runs fine in CuteChess GUI, but for that i had to change two things : the folder name 'Woodpusher' with a capital 'W', and in that folder also the file name 'Woodpusher.csproj' with a capital 'W', while Linux is case-sensitive.

after the 'uci' command i see no version number, is it still v0.9.5 ?

when playing in CuteChess (GUI), it always (!) loses on time, because it takes 30 seconds EACH move .. did you know that ? can it be solved ?

[ i'm on Xubuntu 22.04 ]

@sictransit
Copy link
Owner

Thank you for your interest and comments. I've merged quite a lot of changes today, but still haven't tried to run it on Linux. I'll do that and get back to you.

@sictransit sictransit self-assigned this Nov 3, 2024
@tissatussa
Copy link
Author

Compilation of the newest source went well, i used the same dotnet command as i showed in the previous comment. I get a valid binary of 19.3 Mb

Running this engine version in CuteChess GUI gives no errors, but the engine still loses on time ..

Btw. again i had to rename the 2 'w' into capital letters, needed for Linux.
For Linux i also had to change "Resources\openings.json" into "Resources/openings.json" in the files '/Common/Common.csproj' and '/Common/Lookup/OpeningBook.cs', because the log shows it can't find that .json file - now it can.

Playing a game, it seems indeed Woodpusher uses that opening book, while the first few moves it plays instantly. Normally i let engines play without book - you should create an UCI option to dis/en-able it.

What about the version number ? You could put that into the first info line, e.g. "id name Woodpusher v0.9.6", which is common practice.

@sictransit
Copy link
Owner

when playing in CuteChess (GUI), it always (!) loses on time, because it takes 30 seconds EACH move .. did you know that ? can it be solved ?

How is that game setup? I have not implemented a lot of options, e.g. fixed time per move. Submit the UCI talk and I'll debug it.

@sictransit
Copy link
Owner

What about the version number ? You could put that into the first info line, e.g. "id name Woodpusher v0.9.6", which is common practice.

I know! This is a hobby project of mine, so it hasn't been that important. I've just spent the time I have available on making it play better. Maybe I should look into the versioning bit. Thank's for the suggestion.

@sictransit
Copy link
Owner

Also, feel free to submit a PR.

@sictransit
Copy link
Owner

I've pushed some changes to main, but still have some work to do.

@tissatussa
Copy link
Author

How is that game setup? I have not implemented a lot of options, e.g. fixed time per move. Submit the UCI talk and I'll debug it.

it's a 5m+3s game. Woodpusher shows it may need around 300 (!) seconds for a move, so i set 25 minutes for its games .. you should think about some time management, this also influences the overall strength : determining some max time for the move, probably depending on the amount of pieces on the board and the complexity of the position. But i see it reaches only about depth 6 - also this is a bottleneck, depth 10 in middle game play is kind of minimum to play a decent game, i think.

@tissatussa
Copy link
Author

Also, feel free to submit a PR

thanks, but i'm not into that.

@tissatussa
Copy link
Author

I've pushed some changes to main, but still have some work to do

i keep following your improvements and test the versions !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants