-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChessboard.h
29 lines (29 loc) · 1.1 KB
/
Chessboard.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
#include <vector>
#include "Piece.cpp"
#include <string>
class Chessboard {
public:
// Constructor
Chessboard(char a);
Chessboard(Chessboard& a);
~Chessboard();
// Public Functions
bool GetMove() {return whiteToMove;}
Piece* GetPiece(char file, int rank);
std::vector<std::string> CheckValidMoves(std::string lastMove);
float EvaluatePosition();
void FlipMove() {whiteToMove = !whiteToMove;}
std::vector<std::vector<Piece*>> GetBoard() {return data;}
void ProcessMove(std::string& move);
void DisplayBoard();
private:
std::vector<std::string> PawnMoves(std::string lastMove, short i, short j, char color, char type);
std::vector<std::string> RookMoves(short i, short j, char color, char type);
std::vector<std::string> BishopMoves(short i, short j, char color, char type);
std::vector<std::string> QueenMoves(short i, short j, char color, char type);
std::vector<std::string> KingMoves(short i, short j, char color, char type);
std::vector<std::string> KnightMoves(short i, short j, char color, char type);
std::vector<std::string> CastleMoves();
std::vector<std::vector<Piece*>> data;
bool whiteToMove;
};