Skip navigation

Tag Archives: COMP7306

The multi-player version of the original Naval*. We were not allowed to use multiple processes for either the client or the server so there was a lot to learn about threading. I had a lot of fun (and frustration) debugging this program. It wasn't actually as hard as it initially seemed.

*Original Naval

Suspect, as the program for this assignment was called, taught us multi-process programming and signal-handling. Its basically an interpreter for a (very) small scripting language. The first line of each scripts opens a child process and each successive line is a command which allows interaction with the child process and the file system. The most fun I had with it was when I used Suspect to open another instance of itself.

By creating a single-player implementation of the well-known game 'battle ship', we learned about writing and compiling a C program which interacted with the user and file-system.

Follow

Get every new post delivered to your Inbox.