-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwip.cpp
More file actions
45 lines (37 loc) · 785 Bytes
/
wip.cpp
File metadata and controls
45 lines (37 loc) · 785 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
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <iostream>
using namespace std;
class Player {
private:
string name;
char side;
public:
Player(string player_name, char player_side){
name = player_name;
side = player_side;
}
void move(char from_col, char to_col, int from_row, int to_row){
}
};
class Piece {
private:
string type;
char col;
int row;
char color;
public:
Piece(string t, char c, int r, char co){
type = t;
col = c;
row = r;
color = co;
}
};
int main() {
cout << "Hello, let's play some Chess!" << endl;
Player player1("Bob", 'W');
Player player2("Simantha", 'B');
Piece Whiteknight1("Knight",'B', 1, 'W');
Piece Whiteknight2("Knight",'G', 1, 'W');
// player1.move();
return 0;
}