Page 1 of 1

A very tiny and minor glitch

PostPosted: 17 Jun 2011, 01:56
by EdCollins
Before leaving for work this morning, I loaded two engines and then used MODE - MACHINE MATCH to have these two engines play a match against each other. (A moment earlier, before loading WinBoard, I changed my ini file to set the default number of match games to 24.)

When arriving home. some 9 hours later, the match was completed. A tiny Windows menu was open, indicating the final score. (8-8-8, as it turns out.) I closed the window.

A moment later, while WinBoard was still open, I just happened to notice that the score, at the very top of the WinBoard chess window, indicated the match score was only 8-7-8. I double-checked the games, that were saved to my pgn file, and yes, all 24 games were there and had been played.

This was with Winboard version 4.5.2.

Just for fun, I tested the same thing with WinBoard hgmaster 20110529. I first set the default number of match games to just 2 in the ini file, loaded WinBoard and two engines, and then executed MODE - MACHINE MATCH from the menu.

Same thing. I watched WinBoard host a two-game match between two engines. The final score was 1-1-0 as indicated by actual result and the popup window that appeared. However, even after closing this popup window, the main program window continued to display the score as 1-0-0... it didn't include the result of this last game.

Thus, it seems that when playing a match as described, this final score indicator in the main window does not get updated that one final time, once the match is fully completed. (Probably reason: I'm guessing the logic is written to update the display somewhere just before the next game is played... but once the final game is complete, there IS no next game, so the updating never gets done.)

As I said, a minor glitch.

Re: A very tiny and minor glitch

PostPosted: 17 Jun 2011, 04:41
by H.G.Muller
Indeed, you are spot on. There is a routine DisplayTwoMachinesTitle, and it is only called before the start of every game, in MatchEvent. WinBoard used to exit after a match,so it was not so obvious that this was not updated.

Now that it no longer exits, (when you started the match from the menu), this has become more obvious. I guess I should really reset the title to the neutral title when the popup is shown, as the match is now finished. I will have a look at what happens when you leave other modes, to get consistent behavior. Perhaps the title of the previous game always keeps hanging around until you do New Game.