- 2-player strategy turn type game based on guessing opponent ships' positions.
- There are 2 boards with
size = 10x10
: one with player's ships and other with player's guessed positions. - Players guess the
coordinates
of opponent's ships. - Player who manages to destroy all opponent's ships wins.
Each board is 2D and has letters A-J
on the X-axis and numbers 1-10
on Y-axis:
First one displays player's ships and seamine
and the other guessed coordinates.
There are 4 types of battleships:
Destroyer
--> size=1, amount=4Cruiser
--> size=2, amount=3Battleship
--> size=3, amount=2Carrier
--> size=4, amount=1
- ✔️
C6
- ✔️
g3
- ❌
K15
Every player has a seamine
. It's an object that generates only in the specified area:
If the current player shoots at the enemy's seamine coordinates it explodes, destroying everything in it's explosion radius that is 3x3
.
If the seamine is really close to a ship and the ship gets destroyed, it also triggers the explosion of this seamine.
The game ends if one of the players manages to destroy all of the enemy's ships.
To run the game, write in console:
make
make game
You can clean up some files by typing make clean