-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoard.hpp
38 lines (34 loc) · 857 Bytes
/
Board.hpp
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
/****************************************************************
** Program name: Final Project
** Author: Milad Mikeal
** Date: 11/23/18
** Description: Board class header file.
****************************************************************/
#ifndef FINALPROJECT_BOARD_HPP
#define FINALPROJECT_BOARD_HPP
#include <string>
#include "Space.hpp"
#include "Soldier.hpp"
class Board {
private:
Space ** board;
int rows, cols, length;
int soldierLoc;
int coms;
void populateBoard(int, int);
void setBeginLoc();
void setPointers();
bool onLeft();
bool onRight();
bool onBottom();
bool onTop();
public:
void setValues(int, int, int, int);
int moveSoldier(char);
void printBoard();
bool checkWinner();
int getScore();
bool stepsRemaining();
~Board();
};
#endif //FINALPROJECT_BOARD_HPP