H.G.Muller wrote:To see what WinBoard sends you can start it with the 'Additional option' -debug, and look in the winboard.debug file it creates.
Aah, that's great, I've missed such a feature in WinBoard since a long time!
Well, your new version is indeed working quite well, I'm only still trying to find the best behaviour of my adapter when the user activates 'Edit mode.
Currently it simply ignores the 'force' command, and only after the user has made his first move in 'Edit' mode, it displays an error message
"ERROR: 'Edit' mode is not supported by this engine! Take back the move(s) and deactivate 'Edit' mode again!".
Better would be to display this message already directly after receiving the 'force' command, but such a 'force' is also sent in other situations (e.g. when starting a new game), so the message would pop up also in situations where it won't be sensible.
The best way would of course be, if the user couldn't even activate the 'Edit' mode at all for some engines, but this would require such an additional option "feature edit=0" - that's why I've suggested this idea.
And there's still an other problem that I have to solve, but this has nothing to do with WinBoard:
For my emulator the user can choose between WinBoard and Arena as GUI for MessChess, and unfortunately Arena handles this 'Edit' mode in a completely different way. If I switch on 'Edit' mode, Arena doesn't send anything to the engine, it even doesn't send any of the following user moves to the engine, until the user exits 'Edit' mode again and makes his first 'normal' move (or tells the engine to move) - only then Arena sends the 'force' and then all user moves at once.
That's in fact a very annoying behaviour, because so the user maybe enters many moves, and gets informed only at the end that the engine doesn't support this mode!
This is one of the reasons why I prefer WinBoard as GUI for my emulation program.