-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.h
41 lines (32 loc) · 824 Bytes
/
ui.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
#pragma once
#include "Graph.h"
#include "Nodes.h"
//#include "Traversals.h"
#include <iostream>
//#pragma once
using namespace std;
class game {
public:
game();
game(int code, int player, int curr);
game(State * start);
~game();
void cpuMove();
void playerMove();
void echoEndGame();
void echoPlayerMove();
void echoCPUMove();
void update();
void displayBoard();
void process();
bool endGame();
private:
int _player; //color of human player
int _cpu;
int _curr; //color of current move
stateSpace *_graph;
State * _now;
//int _code;
bool _endGame; // if the game ends
int _winner; //1-X(movevs first) 2-O(moves second) 0-no winner
};