How to implement code for a Client to invoke a command from the command line
I'm setting up a server to do testing for my chess engine. Someone else wrote the code for the server and I only need to fiddle with configs and settings. What does "Client will invoke ./engine bench from the command line" even mean? How is my engine supposed to process that?

7 Replies
I have this reference from a more experienced programmer who has made an engine

You can spawn a process from your program and intercept the output of said process.
because of my low knowledge those words mean very little to me
ooo ok i will look into that
ok what i understand is this will create a process, use the process to run some code, then yoink the output of the process for my main program?
Correct
Note that while "yonking" the output, your program will pause execution until process has exited. This is where you can use the events or stream instead.
Use StreamReader to parse the /engine bench command?