Skip to content

Encorpluptit/PSU_navy_2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSU_navy_2018

You sunk my battleship ! (End: 04/08/19)

Experience in C : 5 months.

The project

Project subject.

You all know the very famous Battleship game.

Well, I hope so. You must code a terminal version of this game.

The two players are ONLY allowed to comunicate using the signals SIGUSER1 and SIGUSER2.

The map size is 8x8. On each turn, you must display yourpositions, and then your enemy’s positions.

At the end of the game (when all the ships of a player have been hit), you must display whether “I won” (and return 0) or “Enemy won” (and return 1).

Example

Game Example

Game Example

Results:

100.00% functional :

Nao Marvin Results

100.00% 01 - Basic signal (2 tests)

100.00% 02 - Game (8 tests)

100.00% 03 - Protocol (4 tests)

100.00% 04 - Rigor (8 tests)

About

You sunk my battleship ! (End: 04/08/19)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published