A Battleship game, your goal is to destroy all of the enemy ships.
You lose when all of your ships are destroyed.
Mini project developed for the "OOP through C++" course during the 3rd semester, 2074 BS(2017-2018 AD).
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.
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
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"
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
This project is licensed under the MIT License - see the LICENSE file for details.
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: