Battleship is a guessing game for two players. It is played on ruled grids on which each player’s fleet of ships are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the objective of the game is to destroy the opposing player's fleet. This is a modern version of Battleship developed using C++ programming language
It displays the synopsis of the game Battleship. On pressing ‘a’ key, the user gets to visit the administrator options. Administrator Page: In this page the admin can login with the correct credentials. Once the administrator is logged in, the grid size and the number of ships can be modified. Minimum number of ships is 5 and maximum is 8. Minimum grid size is 5X5 and maximum is 9X9.
Structures
Binary File Operations: Adding Records, Updating Records and Deleting Records
Functions(implements Modularity)
Function Overloading(Polymorphism)
Graphics
Pointers & Dynamic memory allocation
1PLYR.DAT- Stores the Single Player Mode saved games
2PLYR.DAT- Stores the Two Player Mode saved games
SCORES.DAT- Stores the high scores of both game modes
Loading Screen | Main Menu |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |