51 lines
849 B
C++
51 lines
849 B
C++
<<<<<<< HEAD
|
|
#pragma once
|
|
|
|
using namespace std;
|
|
|
|
class Piece {
|
|
int x;
|
|
int y;
|
|
char type;
|
|
|
|
public:
|
|
Piece();
|
|
Piece(int r, int c);
|
|
Piece(int r, int c, char t);
|
|
void moveFwd();
|
|
void moveLeft();
|
|
void moveRight();
|
|
int getX(){ return x; }
|
|
void setX(int r){ x = r; }
|
|
int getY(){ return y; }
|
|
void setY(int c){ y = c; }
|
|
char getType(){ return type; }
|
|
void makeEmpty(){ type = '_'; }
|
|
void isTaken();
|
|
};
|
|
=======
|
|
#pragma once
|
|
|
|
using namespace std;
|
|
|
|
class Piece {
|
|
int x;
|
|
int y;
|
|
char type;
|
|
|
|
public:
|
|
Piece();
|
|
Piece(int r, int c);
|
|
Piece(int r, int c, char t);
|
|
void moveFwd();
|
|
void moveLeft();
|
|
void moveRight();
|
|
int getX(){ return x; }
|
|
void setX(int r){ x = r; }
|
|
int getY(){ return y; }
|
|
void setY(int c){ y = c; }
|
|
char getType(){ return type; }
|
|
void makeEmpty(){ type = '_'; }
|
|
void isTaken();
|
|
};
|
|
>>>>>>> master
|