A battleship game that uses signals to communicate
This project is an introduction to signals in C, where we have to use them to communicate the player's actions.
First compile with the Makefile
make
Then launch the program by typing
./navy pos1
To connect the second player, launch the program in another terminal and input the first player's PID before the map
./navy <pid> pos2
To exit the program, finish the game or Ctrl+C
- Checks the PID before connecting
- Doesn't accept bad positions
- Returns the game status when the program ends