I've been working on a winboard-protocol engine, Quadrox, and it works pretty well, but there are some issues with the most basic communication (low-level stdin stuff.)
It works perfectly when being run by a GUI (Winboard, Arena, etc.) but when I try to enter commands manually into the command prompt window for debugging purposes, as soon as the engine has performed any thinking the console window will never respond to input again.
I'm in a pure Windows environment and the relevant code for communication comes straight out of the CPW engine. It seemed reasonable to model it on that but now I wonder - not because I think the code is bad (it's working 99% now) but because it doesn't seem to be complete or directly usable. Please tell me I'm missing something... The chessprogramming wiki does not appear to contain the code in any downloadable archive (nor anywhere else I found.) So, I spend a significant amount of time saving out every file one-by-one with copy and paste, but couldn't get that to build either. The code seems to be incomplete. For example, the main() function calls a function root(). There's a file "root" (marked obsolete) but it doesn't appear to contain a function called root. If I could build this program and debug it that would be a huge help.
Failing that, the general problem seems to be that in the input() function, the condition:
Code: Select all
if( stdin->_cnt > 0 )
return 1;
Any insight would be greatly appreciated!

