-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBoard.h
More file actions
35 lines (30 loc) · 1.03 KB
/
Copy pathBoard.h
File metadata and controls
35 lines (30 loc) · 1.03 KB
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
#pragma once
#include "DerivedChar.h"
#include "IllegalCoordinateException.h"
#include "RGB.h"
#include <fstream>
#include <string.h>
#include <chrono>
using namespace std;
using namespace chrono;
class Board{
private:
DerivedChar** board;
int _size;
public:
Board();
Board(int size);
Board(const Board& b);
int size() const;
string draw(unsigned int pixels);
void drawOriginalBoard(RGB image[], unsigned int pixels);
void drawBoard(RGB image[], unsigned int pixels);
void drawX(RGB image[], unsigned int pixels, unsigned int index_i, unsigned int index_j);
void drawO(RGB image[], unsigned int pixels, unsigned int index_i, unsigned int index_j);
Board& operator= (const char c);
Board& operator= (const Board& b);
DerivedChar& operator[] (const Coordinate& c) const;
friend ostream& operator<< (ostream& os, const Board& b);
friend istream& operator>> (istream& is, Board& b);
~Board();
};