Discussion of chess software programming and technical issues.
Moderators: hgm, Dann Corbit, Harvey Williamson
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
-
OliverBr
- Posts: 668
- Joined: Tue Dec 18, 2007 8:38 pm
- Location: Munich, Germany
- Full name: Dr. Oliver Brausch
-
Contact:
Post
by OliverBr » Mon Sep 28, 2020 3:46 pm
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
-
Ras
- Posts: 1687
- Joined: Tue Aug 30, 2016 6:19 pm
- Full name: Rasmus Althoff
-
Contact:
Post
by Ras » Mon Sep 28, 2020 5:38 pm
OliverBr wrote: ↑Mon Sep 28, 2020 3: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.
-
xr_a_y
- Posts: 1383
- Joined: Sat Nov 25, 2017 1:28 pm
- Location: France
Post
by xr_a_y » Mon Sep 28, 2020 6:29 pm
But uci could have proposed sort of verbosity level at least for debug purpose...
-
Ras
- Posts: 1687
- Joined: Tue Aug 30, 2016 6:19 pm
- Full name: Rasmus Althoff
-
Contact:
Post
by Ras » Mon Sep 28, 2020 6:36 pm
xr_a_y wrote: ↑Mon Sep 28, 2020 6:29 pm
But 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.
-
xr_a_y
- Posts: 1383
- Joined: Sat Nov 25, 2017 1:28 pm
- Location: France
Post
by xr_a_y » Mon Sep 28, 2020 6:38 pm
Ras wrote: ↑Mon Sep 28, 2020 6:36 pm
xr_a_y wrote: ↑Mon Sep 28, 2020 6:29 pm
But 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.

you made my day. Never saw that.
-
hgm
- Posts: 25530
- Joined: Fri Mar 10, 2006 9:06 am
- Location: Amsterdam
- Full name: H G Muller
-
Contact:
Post
by hgm » Mon Sep 28, 2020 9:48 pm
I am not sure the protocol defines whether the engine should start in post or nopost mode.