-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
30 lines (27 loc) · 845 Bytes
/
Player.h
File metadata and controls
30 lines (27 loc) · 845 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
#pragma once
#include<iostream>
#include<string>
#include<cassert>
#include <stdlib.h>
#include"Board.h"
using namespace std;
class Player {
private:
string character;
int i, j;
public:
Player(); //Default Constructor
Player(const Player &aux); //Copy Constructor
virtual ~Player(); //Virtual Destructor
Player& operator = (const Player& aux); //Assigment operator
Player(string aux); //Parameterized constructor to store value to enter the board
bool detSymbol(string aux); //True if value is valid. False if not.Determine symbol
bool detRowColumn(int i, int j);
virtual void nextMove(Board &aux); // //Determine next move for player. Must be virtual fuction
string getCharacter();
void setCharacter(string aux);
int getRow();
void setRow(int aux);
int getColumn();
void setColumn(int aux);
};