Programming

Project Information

  • Type: C Programming Language
  • Date: From October 2022 to January 2023

Details of the Work

This is a project completed in the first year. We created 3 versions of the Battleship game, which works through data transmission between the client and server. It is important to note that we used the Linux operating system for the implementation.

Let me take the 2nd version of Battleship as an example. The client must be able to request a change in the board size.
The board will then be resized according to the client's request. After that, the client will play on the board, sending the shot coordinates to the server, which will tell them whether the shot hit a ship or not.


For the 3rd version, multiple clients need to connect to a single server, which required the use of what are called child processes.