Hello all
Reading through all these threads, I've come to the conclusion that my knowledge of chess engine coding is rather embarrassing. Nevertheless it is a great project which I am really enjoying.
I?ve started writing my engine in Java with the idea to port it to C later on. I would however like to build in Winboard support from the start. However, I am not sure how to support certain functions like "force move" and other interrupt-like commands, without taking too much processing time from the main engine.
Do I put the listening part in its own low-priority thread and the engine in a high-priority thread and merely ?kill? the engine thread when a "force move" (or similar) is received? Will graceful termination of the engine thread lead to unacceptable overhead? Any ideas would be appreciated ? thanks!