https://github.com/imrun10/battleshipgame
A battleship game implemented with C++.
https://github.com/imrun10/battleshipgame
battleship-game cpp
Last synced: about 1 year ago
JSON representation
A battleship game implemented with C++.
- Host: GitHub
- URL: https://github.com/imrun10/battleshipgame
- Owner: imrun10
- Created: 2024-01-01T14:31:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T21:24:47.000Z (over 1 year ago)
- Last Synced: 2025-06-17T00:06:18.386Z (about 1 year ago)
- Topics: battleship-game, cpp
- Language: C++
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Battleship Game
## HOW TO PLAY:
------------------------
In BATTLESHIP, your goal is to attack and sink the opponent's ships.
The enemy ships are hidden. There are 5 different ship types:
| SYMBOLS | SHIP TYPE | SIZE |
|-----------|-------------|------|
| A A | Patrol ship | 2 |
| B B B | Cruiser | 3 |
| C C C | Submarine | 3 |
| D D D D | Battleship | 4 |
| E E E E E | Carrier | 5 |
You attack your opponent by choosing a row(y) and column(x). The grid will
keep track of your shots. After every guess, it will be marked as a miss (/)
or a hit (X). If every part of a ship is hit, the ship is sunk. Ships that you
sink are shown under the board. If you sink all of the enemy ships, you win!
Sink the ships in as few turns as possible to get a high score!