I have
Code: Select all
-date 1415337213
-installEngine {"Peer2Peer" -fcp "./p2p" -fd "~~/../../bin/p2p"}Code: Select all
-saveDate 1415337000
Also -addMasterConfig puts the new lines after -saveSettingsFile. Isn't that an issue?
Moderator: Ras
Code: Select all
-date 1415337213
-installEngine {"Peer2Peer" -fcp "./p2p" -fd "~~/../../bin/p2p"}Code: Select all
-saveDate 1415337000
Code: Select all
-addMasterOption {-installEngine '"Peer-to-Peer" -fcp "p2p" -fd "~~/../../bin/p2p"'}Code: Select all
-date 1415366993
-installEngine '"Peer-to-Peer" -fcp "p2p" -fd "~~/../../bin/p2p"'
Indeed, this is a new feature in XBoard 4.8. But I thought I did not advertize that yet; it is not in the protocol specs on GNU Savannah. It was indeed intended for exactly this type of application, and XBoard should only accept it from engines that were installed by the user with the option -firstPseudo or -secondPseudo. These options would grant the engine extra powers to mess with GUI settings, with the aid of commands that would otherwise be ignored. The 81Dojo adapter (which was ultimately derived from p2p) that I use to let HaChu play Chu Shogi on 81Dojo.com uses this feature to keep XBoard's engine clock in sync with the server clock.JoshPettus wrote:I was looking at the xboard protocol and saw that engines could send a time command to the GUI. Can we use that to sync the clocks the moment white moves on the second computer? And maintain some sort of sync afterward?
Well, disagreement on the initial position would be pretty rare to begin with. Originally p2p was designed to play standard variants, and sommunicating the setboard commands they might receive was only added later. The position is not the only thing the two sides could differ on. E.g. the TC could also be different, and just exchanging the time on the clock doesn't tell you if that is for one move, for the entire game or for some number of moves. Plus that the user not initiating the game would still have to set its GUI to play the requested side, by clicking MachineWhite or Black. So starting could never be fully automatic.What about the other option so rather then tell the second user to configure upon receiving a proposal, clicking "ok" would let the engine set up the receiving xboard with the proposed game settings for the second user and "no" would let the second user do a counter proposal?
Code: Select all
time (boolean, default 1, recommended 1)
If time=1, xboard will send the "time" and "otim" commands to update the engine's clocks; if time=0, it will not. This makes sense. I think that is a good goal.hgm wrote: The original design goal of p2p was that it would not just be able to work with XBoard, but with any GUI that supports XBoard engines. So I wanted to limit the dependence on non-standard commands.
Code: Select all
unsigned int saveDate;
unsigned int dateStamp;