Instructions:
To run the server type
xc <program 1 name> <program 2 name>
The server requires that the Kalah agent flush the output by calling
fflush(stdout) after every write the stdout. Alternately the Kalah agent
may set stdout to be un-buffered by calling setbuf(stdout,NULL);
To run a program that requires more than 1 command i.e. Java
Make a script file with the full command
For example make a file that contains only this text
java KalahAgent
Then do a chmod on the file to make it a executable and pass that file
into the server as an argument.
For example if the file we created is called s
Then we type
Chmod +x s
To make it executable
Then type
xc s kalah