Authors: Adam Majerík, Tomáš Karnet
This is an implementation of the game BattleShip for the class Princípy Operačných Systémov, for FRI UNIZA, year 2024/2025.
The game board is displayed in the following way for each player:
A B C D E F G H I J
0 o o o o o o o o o o
1 X o o o o o o o o o
2 # . . . . . . . . .
3 o o o o o o o o o o
4 o o . . . . . . o o
5 . . . X X X X o o o
6 X . o . o . o o o .
7 X . o . o . o # # #
8 # . . . . . . . . .
9 . . . . . # # # # #
# - Players ship tile
o - Hit water
X - Hit BattleShip
. - Not yet hit
mkdir build
cd build
cmake ..
cmake --build .
- clean bin folder
cmake --build . --target clean
- build all (both server and client)
cmake --build . --target all
- build server
cmake --build . --target server
- build client
cmake --build . --target client
- client:
./bin/client
- server:
./bin/server