Moderator: Andres Valverde
p = (ProcAdd) ('C', '+', 0, NULL); /* start thinking */
if(p == NULL)
{ printf("telluser Doesn't want to move\n"); continue;}
do {
Sleep(20); /* wait a bit */
p = (ProcAdd) ('C', 'B', 0, NULL); /* poll for ready */
} while(p != NULL);
p = (ProcAdd) ('C', 'I', 1, NULL); /* get PV */
if(p == NULL)
{ printf("telluser No PV\n"); continue;}
p = (ProcAdd) ('C', 'I', 2, NULL); /* get score */
if(p == NULL)
{ printf("telluser No Score\n"); continue;}
p = (ProcAdd) ('C', 'A', 0, NULL); /* get move */
if(p == NULL)
{ printf("telluser No move\n"); continue;}
Side ^= BLACK^WHITE;
printf("move %s\n", p);
p = (ProcAdd) ('E', 'M', 0, (char *) p); /* Make move */
if(p == NULL)
{ printf("telluser Refuses own move\n"); continue;}
p = (ProcAdd) ('C', 'I', 0, NULL); /* get move */
p = (ProcAdd) ('C', 'I', 1, NULL); /* get PV */
p = (ProcAdd) ('C', 'I', 2, NULL); /* get score and depth */
H.G.Muller wrote:OK, I will put in the permanent-brain feature. Can I assume that the Smirf engine remains fully responsive to other commands while it is pondering? i.e. can I feed it the black and white times before stopping the pondering with "C-", or do I have to stop it first?
H.G.Muller wrote:As to the PGN, this really is a WinBoard matter, over which the Smirfoglot adapter has no control whatsoever. That I also happen to be the WinBoard_F programmer is purely accidental, and I don't want to confuse matters by mixing those roles. The purpose of this action was to make it possible for Smirf to communicate with WB engines. Not to improve or change the communication between WinBoard and WinBoard users. People choose whatever GUI they like, based on how it displays the board and in which format it saves positions and games. If they don't like the PGN format that WinBoard produce, they can use other GUIs that do a job more tailored to their preferences. There are plenty of GUIs that support WB engines.
My attitude towards standards is a bit different from yours. If something is not standard, but it works, I just elevate it to standard. Furthermore, I consider diversity of representation a good thing. Naming the variant seems a good, compact and unambiguous way to identify the initial setup. I like that much more than having a very long FEN string, which I would have to scrutinize really carefully to figure out that it was the Gothic array. As long as WinBoard is able to read back the PGN and FEN styles that it writes, and does a reasonable job in understanding most formats used by others, I am completely satisfied. People that use GUIs that do not provide such input flexibility can always edit the FEN string into their PGN before feeding it to the GUI.
H.G.Muller wrote:Btw: after one night of play, Smirf-bonus was leading to Joker80 6.5-5.5. I'll let it run for the rest of the day.
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 11 guests