by H.G.Muller » 17 Apr 2011, 10:07
Indeed, there is only a single case where WinBoard exits automatically (apart from fatal errors such as crashing engines), which is after a completion of a match, started with the -mm or -mg option on the command line.
A match can run autmatically through all positions in a position file, though. WinBoard now has an option -savePositionFile (which I never used, so I hope I am right about this...), to save the final position of each game (as FEN) on a file. This might get close to what you want, except that it should save as diagram, and that the game should end immediately with the read FEN. The latter could be achieved by supplying a dummy "engine", which would be ust a program that replies "resign" to any "go" command, to immediately terminate the "game" with the stup position still on the board.
But there still would be the problem that you would not want all bitmaps to be written to the same file, which for the FENs is no problem. So any -saveDiagramFile option could not specify the exact file name, like -savePositionFile can. This could be solved by allowing some "meta-characters" in the filename. E.g. a "%d" as part of a filename could be taken to mean WinBoard should substitute the game number there before using it, so that a user could specify "-saveDiagramFile diagram%d.bmp". This might even be a generally useful feature, which could be applied also to other save-file names.
Still, it would require a lot of changes. I will keep it in mind, though. At some point I want to enhance match mode anyway, for doing other things than playing complete games, such as running test suites from EPD files (where the "game" should be terminated after a single move), and terminating immediately kind of naturally fits in there too.