programmed by Sina Kamali for the OS Course at University of Tehran.
This project is a great example for C socket programming. by using it you can play Dots and Boxes from differant clients. All you need is a server to run the server code on. Feel free to use the code to understand C socket programming.
First, run the following to build the project:
make
Then you can run the server by using:
./server <port number>
Where <port number> should be replaced by the port you want your server to run on.
To run the client, you can use:
./client <port number> <optional: username>
Where <port number> is the same as server's port number, and <username> is an optional field for your username in game.
If you have any questions regrading the code, feel free to contact me by email.