Questions about CECP post-nopost (UCI info)

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

OliverBr
Posts: 725
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Questions about CECP post-nopost (UCI info)

Post by OliverBr »

Hello together :)

A CECG chess GUI (e.g. xboard) can control the engine output with the commands "post" and "nopost".

Now I have two questions:
1) When the engine didn't receive neither "post" nor "nopost" (.e.g. from command line), what is the expected engine behaviour? Post or NoPost?

2) What is the corresponding UCI command? With "info" the information is sent to GUI, but how can one control this output (switch on/off)?

Thank you
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
Ras
Posts: 2487
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Questions about CECP post-nopost (UCI info)

Post by Ras »

OliverBr wrote: Mon Sep 28, 2020 5:46 pm 2) What is the corresponding UCI command?
There is no corresponding UCI command because it wouldn't make sense. CECP is a mixture between interactive terminal mode and engine-GUI protocol, and switching off the output is only useful for interactive terminal play.

UCI on the other hand is designed as pure GUI interface protocol and not suited for interactive terminal play. If the user doesn't want to see the engine output, it's the GUI's job not to display it. That's the correct design for a pure engine-GUI protocol because the engine should not be concerned with the presentation layer.
Rasmus Althoff
https://www.ct800.net
User avatar
xr_a_y
Posts: 1871
Joined: Sat Nov 25, 2017 2:28 pm
Location: France

Re: Questions about CECP post-nopost (UCI info)

Post by xr_a_y »

But uci could have proposed sort of verbosity level at least for debug purpose...
Ras
Posts: 2487
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Questions about CECP post-nopost (UCI info)

Post by Ras »

xr_a_y wrote: Mon Sep 28, 2020 8:29 pmBut uci could have proposed sort of verbosity level at least for debug purpose...
UCI has debug [ on | off ] specifically for that purpose. The implementation depends on the engine and what its author wants to debug.
Rasmus Althoff
https://www.ct800.net
User avatar
xr_a_y
Posts: 1871
Joined: Sat Nov 25, 2017 2:28 pm
Location: France

Re: Questions about CECP post-nopost (UCI info)

Post by xr_a_y »

Ras wrote: Mon Sep 28, 2020 8:36 pm
xr_a_y wrote: Mon Sep 28, 2020 8:29 pmBut uci could have proposed sort of verbosity level at least for debug purpose...
UCI has debug [ on | off ] specifically for that purpose. The implementation depends on the engine and what its author wants to debug.
:shock: :lol: you made my day. Never saw that.
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Questions about CECP post-nopost (UCI info)

Post by hgm »

I am not sure the protocol defines whether the engine should start in post or nopost mode.