Skip to content

Project implementing the popular Grid Game BATTLESHIP in CPP with graphics.h

Notifications You must be signed in to change notification settings

VaderBV/battleshipcpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

battleshipcpp

Introduction:

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

About Page:

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.

Concepts used in the project:

Structures
Binary File Operations: Adding Records, Updating Records and Deleting Records
Functions(implements Modularity)
Function Overloading(Polymorphism)
Graphics
Pointers & Dynamic memory allocation

Binary Files

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

Screenshots:

Loading Screen Main Menu
Picture1 Picture2
Picture3 Picture4
Picture5 Picture6
Picture7 Picture8
Picture9 Picture10

About

Project implementing the popular Grid Game BATTLESHIP in CPP with graphics.h

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages