-
Notifications
You must be signed in to change notification settings - Fork 0
/
board.h
41 lines (36 loc) · 844 Bytes
/
board.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Emma Vuksich
// CSIS 297
// 18 October 2023
// Battleship Simulator
#ifndef BOARD
#define BOARD
#include <iostream>
#include <string>
using namespace std;
const int ROWS = 10;
const int COLS = 10;
struct SinkingShips
{
int frigateShip, subShip, destroyerShip, battleshipShip, aircraftCarrierShip;
};
class Board
{
public:
string board[ROWS][COLS];
string gameboard[ROWS][COLS];
void initializeBoard();
void outputBoard(SinkingShips);
void setBoard(int r, int c, string newSpot);
void setGameBoard(int r, int c, string secretSpot);
void aesthetic();
void aestheticMiss();
void aestheticHit();
void aestheticSink();
void aestheticFail();
void aestheticIntro(char commander);
void gameLost();
void gameWon();
void aestheticGameOver();
char aestheticCharacterChoice();
};
#endif