On-line engine blitz tourney July

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line engine blitz tourney July

Post by hgm »

Ah, I see. Your engine command is:

C:\Program Files\nodejs\node.exe D:\SAKK\tomitankChess\js\tomitankChess.js

Notice the space between 'Program' and 'Files'. So Polyglot tries to run

C:\Program

with as arguments 'Files\nodejs\node.exe' and 'D:\SAKK\tomitankChess\js\tomitankChess.js'

And of course this fails, as there is no C:\Program.exe. That this command might work in the Windows command prompt is a special property of the command interpreter there, which makes several tries, taking subsequently more spaces as part of the exe name. The Windows API command CreateProcess used by Polyglot does not automatically do that, though.

You will have to group the words in the command more clearly by quoting. Like

-fcp '"C:\Program Files\nodejs\node.exe" D:\SAKK\tomitankChess\js\tomitankChess.js'

The outer single quotes are then 'used up' by WinBoard, to make it understand the whole thing is the engine command. And the double quotes then delimit the executable, despite it consisting of multiple words.
tomitank
Posts: 276
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

Re: On-line engine blitz tourney July

Post by tomitank »

Ok, i tried many version:

Code: Select all

"C:\Program Files\nodejs\node.exe" "D:\SAKK\tomitankChess\js\tomitankChess.js"
Error: Game not found in file
It is ok?

Code: Select all

'"C:\Program Files\nodejs\node.exe" D:\SAKK\tomitankChess\js\tomitankChess.js'
Error: C:\Program file not found.

Code: Select all

'"C:\Program Files\nodejs\node.exe D:\SAKK\tomitankChess\js\tomitankChess.js"'
Error: C:\Program file not found.
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: On-line engine blitz tourney July

Post by AlvaroBegue »

I will be traveling at the time of the tournament, but I will leave RuyDos connected before I leave. Could you please add it? Thanks!
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line engine blitz tourney July

Post by hgm »

tomitank wrote:Ok, i tried many version:

Code: Select all

"C:\Program Files\nodejs\node.exe" "D:\SAKK\tomitankChess\js\tomitankChess.js"
Error: Game not found in file
It is ok?

Code: Select all

'"C:\Program Files\nodejs\node.exe" D:\SAKK\tomitankChess\js\tomitankChess.js'
Error: C:\Program file not found.

Code: Select all

'"C:\Program Files\nodejs\node.exe D:\SAKK\tomitankChess\js\tomitankChess.js"'
Error: C:\Program file not found.
The first is certainly wrong, because it makes the node.exe and tomitankChess.js different arguments to WinBoard, only the first associated with the -fcp option, and the second not being preceded by any option name. Such arguments are considered by WinBoard to be game files, which explains the error message.

In the last one the single and double quotes should do exactly the same thing. Which makes it surprising you get a different error than with just the double quotes. Apparently single quotes outside double quotes are not understood.

Try this:

Code: Select all

""C:/Program Files/nodejs/node.exe" D:/SAKK/tomitankChess/js/tomitankChess.js"
where I only use double quotes, but escaped the inner quotes with backslash, so they won't be considered as closing the initial quote.
tomitank
Posts: 276
Joined: Sat Mar 04, 2017 12:24 pm
Location: Hungary

Re: On-line engine blitz tourney July

Post by tomitank »

I have found a bug!

Thanks for your help!
Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Re: On-line engine blitz tourney July

Post by Henk »

Maybe also you should not allow to let engines play that were not updated in last few months.

Otherwise there is nothing special about this tournament for one could download forty engines and run a tournament on their own computer.

If we want more spectators than we should broadcast the games live on chess.com or something similar.

Problem is that most engines play too good. So only grandmasters can understand their moves.
Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Re: On-line engine blitz tourney July

Post by Henk »

Other idea is to give engines with high ratings far and far less time to make them play much worse but broadcast their move with a delay of say five seconds so you won't notice.
flok

Re: On-line engine blitz tourney July

Post by flok »

My biggest issue with making changes to icsdrone(ng) is, is that they're not merged by upstream.
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line engine blitz tourney July

Post by hgm »

'Upstream' is Michel van den Bergh?
flok

Re: On-line engine blitz tourney July

Post by flok »

All of them.
I cc'd you in in the patch of 16/12/16.