-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGame.h
More file actions
32 lines (29 loc) · 668 Bytes
/
Game.h
File metadata and controls
32 lines (29 loc) · 668 Bytes
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
#ifndef GAME_H
#define GAME_H
#include "Player.h"
#include "ChessBoard.h"
#include "Observer.h"
class Game {
private:
Player * players[2];
Player * helpers[2];
float pwScore;
float pbScore;
bool turn;
ChessBoard *board;
Observer *textView;
Observer *graphicsView;
bool isRunning;
bool isSetup;
void printScoreBoard();
void printWinner(bool colour);
void printDraw();
void reset();
void addPiece(char piece, pair<int,int> sqr);
bool existsTwoKings();
public:
Game();
~Game();
void startGame();
};
#endif