Duck Chess

Discussion of chess software programming and technical issues.

Moderator: Ras

rgrosz789
Posts: 121
Joined: Sat Dec 03, 2022 9:28 pm
Full name: Rick Groszkiewicz

Re: Duck Chess

Post by rgrosz789 »

MTaktikos wrote: Sat Feb 11, 2023 8:10 pm And last not least, the issue may be related to the CPU architecture of the Linux machine's processor. If the Linux machine's CPU architecture is different from the Windows PC's CPU architecture, the engine may not be able to run on the Linux VM. Then perhaps a bmi2 compile, a modern (popcnt) compile or an old simple x64 compile will work
Thank you for your guidance. I do need to change the compiler options for FSFDuck. I tested this idea using several Linux versions of TJchessDuck. The x64 compile runs without error, but the avx2 version fails with "Illegal instruction (core dumped)".

The problem is that my old desktop PC was purchased about 11 years ago. I set this up as my Linux host to run the Windows-based virtual machines.
Retired actuary and software developer. I love chess, coffee, wine and food
rgrosz789
Posts: 121
Joined: Sat Dec 03, 2022 9:28 pm
Full name: Rick Groszkiewicz

Re: Duck Chess

Post by rgrosz789 »

JohnWoe wrote: Mon Dec 12, 2022 10:59 pm MayhemDuck 1.8 is the first version that works flawlessly under Winboard.
I finally got MayhemDuck working with Winboard on my PC. My error was that somehow I had "lost" the file UCI2WB.exe

I still can not figure out how to get MayhemDuck working with Xboard under Linux.
Retired actuary and software developer. I love chess, coffee, wine and food
User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Duck Chess

Post by hgm »

Also use uci2wb?
rgrosz789
Posts: 121
Joined: Sat Dec 03, 2022 9:28 pm
Full name: Rick Groszkiewicz

Re: Duck Chess

Post by rgrosz789 »

hgm wrote: Fri Feb 17, 2023 7:09 pmAlso use uci2wb?
Yes, I tried using uci2wb. I set up xboard on my Linux Mint system. I eventually found the files in /usr/games.

Then I compiled both Fairy Stockfish and Mayhem using ARCH=x86-64, and moved the executables to the /usr/games folder.

I tried getting a linux version of uci2wb from your site (http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=uci2wb.git), but was unsuccessful. I used the 2019 version from this site (https://github.com/ianfab/uci2wb/releases) instead. I moved that executable to the /usr/games folder.

After I load xboard, I choose the mayhem engine. But it can't be loaded, and I get a very long error dialog. I have no idea what most of the error message means.

See two images on my web site http://www.softwarepolish.com/images/xb ... e-list.png and http://www.softwarepolish.com/images/li ... uci2wb.png. Any chance I will be allowed to post images directly to this forum??
Retired actuary and software developer. I love chess, coffee, wine and food
User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Duck Chess

Post by hgm »

Well the error dialog says it could not start Polyglot. So obviously your XBoard is configured to use Polyglot rather than UCI2WB as UCI adapter. (And it is not present on your computer; that is what "no such file or directory" means.) Try to run XBoard once with the option

-adapterCommand {uci2wb "%fcp" "%fd"}

This should configure XBoard for using uci2wb. (You might have to escape the quotes if you run this from the command line, to prevent the shell interprets, and effectively removes those.)

I don't know Mint; on Ubuntu / Debian "apt-get install uci2wb" should work. You can also download the source from my on-line repository ( http://hgm.nubati.net/cgi-bin/gitweb.cgi ), and run 'sudo make install'.

You can show images here by putting the URL in img BBcodes (or using the button above the edit window to add these). You would still have to upload it somewhere, though.
rgrosz789
Posts: 121
Joined: Sat Dec 03, 2022 9:28 pm
Full name: Rick Groszkiewicz

Re: Duck Chess

Post by rgrosz789 »

hgm wrote: Sat Feb 18, 2023 9:29 pm Well the error dialog says it could not start Polyglot. So obviously your XBoard is configured to use Polyglot rather than UCI2WB as UCI adapter. (And it is not present on your computer; that is what "no such file or directory" means.) Try to run XBoard once with the option

-adapterCommand {uci2wb "%fcp" "%fd"}

This should configure XBoard for using uci2wb. (You might have to escape the quotes if you run this from the command line, to prevent the shell interprets, and effectively removes those.)

I don't know Mint; on Ubuntu / Debian "apt-get install uci2wb" should work.
I previously downloaded source and compiled it myself. Today I installed uci2wb as suggested.

When I tried running xboard with the adaptercommand, I got an error. I did check to make sure that I escaped the quotes properly.
I also tried running mayhem afterwards, but I still get errors.

Image
http://www.softwarepolish.com/images/xb ... -error.png
Image
http://www.softwarepolish.com/images/li ... i2wb-2.png
I still can not insert the images directly.
Retired actuary and software developer. I love chess, coffee, wine and food
User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Duck Chess

Post by hgm »

Well, you must have the uci2wb binary in a directory that is not in your search path. Normally it would install into /usr/games (or /usr/local/bin when you install from source). Does it work when you type "uci2wb mayhem8 ." from the command line?
rgrosz789
Posts: 121
Joined: Sat Dec 03, 2022 9:28 pm
Full name: Rick Groszkiewicz

Re: Duck Chess

Post by rgrosz789 »

I uninstalled uci2wb, then re-installed it using "apt-get install uci2wb". Now I see the executable in /usr/games and it seems that mayhem is finally loading without errors.

My next problem is getting the variants to work. I get the message "variant duck not supported by mayhem 8.0". When I try using the FSFDuck that I compiled, I get "Engine did not send setup for non-standard variant"
Retired actuary and software developer. I love chess, coffee, wine and food
User avatar
hgm
Posts: 28353
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Duck Chess

Post by hgm »

Are you sure that you are using an XBoard version that does support Duck Chess? That it complains that Duck Chess is a non-standard variant suggests it doesn't.

To say anything sensible I would need to see the log file. Run XBoard with extra option -debug, and post the xboard.debug file that it produces when you try to run Mayhem here. To get even more information you can also let uci2wb write in the log; it would have to be installed with the aid of the xboard option

-adapterCommand {uci2wb debug "%fcp" "%fd"}

in that case. (You could edit this directly in the .xboardrc file , which stores the presistent settings.)
rgrosz789
Posts: 121
Joined: Sat Dec 03, 2022 9:28 pm
Full name: Rick Groszkiewicz

Re: Duck Chess

Post by rgrosz789 »

hgm wrote: Sat Feb 18, 2023 9:29 pm You can show images here by putting the URL in img BBcodes (or using the button above the edit window to add these). You would still have to upload it somewhere, though.
Thank you - I just noticed that the images display correctly in Firefox, but not in Chrome (my default browser).
Retired actuary and software developer. I love chess, coffee, wine and food