Skip to content

OjeshManandhar/Battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Battleships

A Battleship game, your goal is to destroy all of the enemy ships.

You lose when all of your ships are destroyed.

Backstory

Mini project developed for the "OOP through C++" course during the 3rd semester, 2074 BS(2017-2018 AD).

Development

I used Code::Blocks 17.12 as IDE and compiler on Windows 10.

Tested on Windows 7 but I needed to change the console size as the console is bigger in Win10.

I don't know if it works on Linux distros.....chances are it might not compile at all.

Feature

You can easily change the height and width of the field.

Just change FIELD_LENGTH and FIELD_BREADTH in

#define FIELD_LENGTH 10
#define FIELD_BREADTH 10

Installing

To clone it on your local machine,

  • Clone this repository to your local machine.
git clone https://github.com/OjeshManandhar/Battleship
  • Go inside the directory where you placed the cloned repo
  • Compile "main.cpp"

Further Improvements

If you're interested, feel free to fork and submit PR.

  • Display Timer
  • Use Interactive Graphics
  • Calculate score and save high scores
  • Use difficulty levels

License

This project is licensed under the MIT License - see the LICENSE file for details.

PS

I am still new to git and github so my commit messages might not be that good (or detailed):worried:....but enjoy the game:smile::+1: