Suggestion for cutechess-cli

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
michiguel
Posts: 6388
Joined: Thu Mar 09, 2006 7:30 pm
Location: Chicago, Illinois, USA
Contact:

Suggestion for cutechess-cli

Post by michiguel » Sun Aug 07, 2011 3:36 am

If an engine uses the xboard protocol, it sends "post" to it. I do not believe there is any reason for an engine to send PVs to this non-graphical interface. At least, the default should be nopost with an option to turn it on.

The fact is that it generates a lot of traffic that is not needed. It was useful to me because it exposed a bug in my engine:-) but I think a user should have the ability to turn this off.

Thanks!

Miguel

User avatar
michiguel
Posts: 6388
Joined: Thu Mar 09, 2006 7:30 pm
Location: Chicago, Illinois, USA
Contact:

Re: Suggestion for cutechess-cli

Post by michiguel » Sun Aug 07, 2011 4:14 am

michiguel wrote:If an engine uses the xboard protocol, it sends "post" to it. I do not believe there is any reason for an engine to send PVs to this non-graphical interface. At least, the default should be nopost with an option to turn it on.

The fact is that it generates a lot of traffic that is not needed. It was useful to me because it exposed a bug in my engine:-) but I think a user should have the ability to turn this off.

Thanks!

Miguel
I just realized there is no way to turn off "posting" information in UCI! Did I miss anything?
I will have to make an option "mute 1" and send it at the beginning, but I am out of luck with other engines.

Miguel

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

Re: Suggestion for cutechess-cli

Post by hgm » Sun Aug 07, 2011 6:21 am

I usually want to have score/depth in the PGN, and for that you do need thinking output.

frankp
Posts: 216
Joined: Sun Mar 12, 2006 2:11 pm

Re: Suggestion for cutechess-cli

Post by frankp » Sun Aug 07, 2011 9:32 am

hgm wrote:I usually want to have score/depth in the PGN, and for that you do need thinking output.
Is there a switch (command) to turn this off, so that the pgn just records the moves. I find the extra information distracting when reading through games.

User avatar
lucasart
Posts: 3037
Joined: Mon May 31, 2010 11:29 am
Full name: lucasart
Contact:

Re: Suggestion for cutechess-cli

Post by lucasart » Sun Aug 07, 2011 10:45 am

michiguel wrote:If an engine uses the xboard protocol, it sends "post" to it. I do not believe there is any reason for an engine to send PVs to this non-graphical interface. At least, the default should be nopost with an option to turn it on.

The fact is that it generates a lot of traffic that is not needed. It was useful to me because it exposed a bug in my engine:-) but I think a user should have the ability to turn this off.

Thanks!

Miguel
cutechess-cli could always display the PV in the comment of the output PGN (although it doesn't) That could be a reason.

User avatar
michiguel
Posts: 6388
Joined: Thu Mar 09, 2006 7:30 pm
Location: Chicago, Illinois, USA
Contact:

Re: Suggestion for cutechess-cli

Post by michiguel » Sun Aug 07, 2011 5:54 pm

hgm wrote:I usually want to have score/depth in the PGN, and for that you do need thinking output.
Yes, that makes sense. I did not think of that. Still, I think it would be a good idea to turn the feature off with a switch for people who don't use it.

Miguel

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

Re: Suggestion for cutechess-cli

Post by hgm » Sun Aug 07, 2011 6:03 pm

Indeed. In WinBoard you can select whether you want scores in the PGN, and if you don't, and also don't have the Eval Graph or Engine Output windows open, it sends a nopost. But you also cannot do score-based adjudication then.

User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 5:45 pm
Location: Finland
Contact:

Re: Suggestion for cutechess-cli

Post by ilari » Sun Aug 28, 2011 8:28 pm

I noticed this thread only now because I took some time off from computer chess. Anyway, I'm back and trying to release something this autumn, so this kind of feature could make it in.

bhlangonijr
Posts: 482
Joined: Thu Oct 16, 2008 2:23 am
Location: Milky Way
Contact:

Re: Suggestion for cutechess-cli

Post by bhlangonijr » Mon Aug 29, 2011 12:38 pm

ilari wrote:I noticed this thread only now because I took some time off from computer chess. Anyway, I'm back and trying to release something this autumn, so this kind of feature could make it in.
Hello Ilari, good to hear you are back to computer chess!

As a frequent user of cutechess I'd like to have an option in which you could enable cutechess to flush the pgn file after each move at the game.

Regards,

User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 5:45 pm
Location: Finland
Contact:

Re: Suggestion for cutechess-cli

Post by ilari » Mon Aug 29, 2011 4:16 pm

bhlangonijr wrote: Hello Ilari, good to hear you are back to computer chess!

As a frequent user of cutechess I'd like to have an option in which you could enable cutechess to flush the pgn file after each move at the game.

Regards,
Hi,
Unfortunately there are a couple of problems with that:

1. The Result and Termination tags are at the beginning of a PGN game, but their values can only be determined when the game is over
2. The -concurrency option would have to be disabled or else the resulting PGN file would be a mess. Alternatively multiple output files could be used.

I think the sensible way to do what you want would be to have a separate debug-type file where the moves would be written in real time.

Post Reply