Page 1 of 1

Questions about CECP post-nopost (UCI info)

Posted: Mon Sep 28, 2020 5:46 pm
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

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

Posted: Mon Sep 28, 2020 7:38 pm
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.

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

Posted: Mon Sep 28, 2020 8:29 pm
by xr_a_y
But uci could have proposed sort of verbosity level at least for debug purpose...

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

Posted: Mon Sep 28, 2020 8:36 pm
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.

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

Posted: Mon Sep 28, 2020 8:38 pm
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.

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

Posted: Mon Sep 28, 2020 11:48 pm
by hgm
I am not sure the protocol defines whether the engine should start in post or nopost mode.