> Is there any simple way to make gogui and debug prints go well > together? I'd like to start using gogui more when debugging Pachi, but > I'm not sure how to display Pachi's debugging prints within gogui. It > even (inexplicably) silences Pachi's stderr so I cannot watch them in > gogui's terminal...
Windows or linux? At least on Linux, just write to stderr should work. (I think stderr is unbuffered by default, and I don't have any explicit flush calls in my code; I do make sure of the "\n" at the end of each line though.) (Actually I do flush stderr and stdout at the end of the main loop, after processing each command; but I don't think I need to.) As for using gogui analyze tools, that depends on what you are after. This style (written to stderr, while genmove is thinking) works well for me to show a prime variation: gogui-gfx: TEXT something to write in the status bar VAR W A8 B D7 W D6 B H1 W G1 You need to add "gogui-analyze_commands" to your list_commands output (I think), but if only using gogui-gfx then it can just return "=\n\n" Darren P.S. The only annoying thing about gogui-gfx is it vanishes when genmove eventually returns! As I'm running it in the background, usually, I often see a move has been chosen and have to scroll through the debug comments to discover just what the final P.V. was. -- Darren Cook, Software Researcher/Developer http://dcook.org/gobet/ (Shodan Go Bet - who will win?) http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles) _______________________________________________ Computer-go mailing list [email protected] http://dvandva.org/cgi-bin/mailman/listinfo/computer-go
