it is a simple implementation of battle ships game with some extra features which run in the terminal and does not have a GUI.
-
MODES
✔️ single player
✔️ multi player
-
MAP
✔️ turn map
✔️ resault map
-
GAME PROCESS
✔️ ship placement
✔️ turn mange system and shot connection gift
✔️ turn system in multiplayer mode
✔️ bot attacks in singleplayer
✔️ game finish and score counting
-
SHIPS
✔️ using linked list for implementation
-
save data
✔️ save game and load game and load last game
✔️ save users and score board
-
CODE QUALITY
✔️ clean code & DRY
✔️ small functions
A linked list is a dynamic data structure, which means that the size of the list can change at run time. You can imagine a linked list as a chain where each link is connected to the next one to form a sequence with a start and an end.
Each element in a linked list is called a node. Each node stores:
1- The data relating to the element
2- A pointer to the next node
There is also a separate pointer that indicates the first element in the list (the head of the list). This has a null value when the list is empty. The next node pointer of the last element in the list always points to a null value to mark the end of the list.