I'm currently making a chess web-based app. Now that I want to add in the stockfish chess engine which I will have to interact with in the command line. I've searched the internet and there's the child_process exe related to Node.js. I know how to use it, but only when it is compiled with Node (for example "node file.js" in the command line) but then i don't know how to call that from my main javascript file which contains the chessboard and stuff. Is there a way to do it (if that's even possible) or you may suggest me another way to do it please :D ?
execand read std-out. In perfect condition, you can access the child process using IPC. But it's hard to tell exactly w/o knowing what engine you use. Digg in : nodejs.org/api/…{whatever} npm. Good luck with chess :)