Hello All, I am a Java-Web Programmer, I am very interesting to write a simple chess engine as my "side project". I did some research and look at some open-source, sample code, it help a lot, but I still need some advice so that I go the right direction as start point. Your advice, would be greatly appreciated.
At the beginning, I have tried to load the Winboard and send just a move (from Engine) to see if the piece in Winboard move or not, but when I start the command:
winboard -cp -fcp "java -jar SimpleEngine.jar" -scp "java -jar SimpleEngine.jar"
The Winboard is loaded, but it show error "Error writing to first chess program:The pipe is being closed".
A simple line I tried to send to Winboard is:
System.out.println("move g4"); (or move e2e4)
System.out.flush();
I did some search how to fix (like: feature sigint=0 done=1....) error but no luck....
Could some one explain to me, the first some main steps to start writing Engine?
Thank you in advantage.