Skip to content

A battleship game that uses signals to communicate

Notifications You must be signed in to change notification settings

ripel2/PSU_navy_2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Navy

A battleship game that uses signals to communicate

About this project

This project is an introduction to signals in C, where we have to use them to communicate the player's actions.

How to use

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

Features

  • Checks the PID before connecting
  • Doesn't accept bad positions
  • Returns the game status when the program ends

About

A battleship game that uses signals to communicate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published