Send a pause command

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Send a pause command

Postby salim » 02 Nov 2016, 08:06

Hi, I'm trying to interface Matlab with Winboard 4.8.0 and so far its going good (Im using buddhichal in order to interface). What I need to know its that if there is a way to send a pause command to winboard so that winboard will pause the game. When i say command i mean not clicking pause button on winboard interface but sending a command in the same way like usermove e2e5. Is this possible?
salim
 
Posts: 3
Joined: 01 Nov 2016, 17:23

Re: Send a pause command

Postby H.G.Muller » 03 Nov 2016, 20:27

There is no way for engines to pause the game. But pausing the game is essentially just stopping the clock. There is a way for pseudo-engines (i.e. engines installed with the -first/secondPseudo option) to adjust WinBoard's clock: they just can send it 'time' and 'otim' commands similar to those WinBoard sends to normal engines. By sending those periodically you could prevent the clock from advancing.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Send a pause command

Postby salim » 04 Nov 2016, 13:17

What about using StopClocks() and StartClocks() methods? They seem to work for me but how do those methods behave?
salim
 
Posts: 3
Joined: 01 Nov 2016, 17:23

Re: Send a pause command

Postby H.G.Muller » 05 Nov 2016, 11:46

Well, these start and stop the clocks, and are probably invoked when you press the 'P' button. There is currently no way for the engine to invoke them, however.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 20 guests