35 lines
634 B
C++
35 lines
634 B
C++
#ifndef CHESS_H
|
|
#define CHESS_H
|
|
|
|
#include <string>
|
|
|
|
#include "piece.h"
|
|
|
|
class chess {
|
|
private:
|
|
std::string nickname[2];
|
|
std::string last_move, removed[2];
|
|
int turn;
|
|
int status;
|
|
piece *spot[8][8];
|
|
piece *King[2];
|
|
|
|
const char* symbol(int, int, bool);
|
|
bool input_is_correct(int, int, int, int);
|
|
bool king_is_safe(int, int);
|
|
int path_status(int, int, int, int);
|
|
void draw_chess_board();
|
|
void menu();
|
|
void move(int, int, int, int);
|
|
int castling(int);
|
|
void check_for_checkmate();
|
|
|
|
public:
|
|
chess(const char*, const char*);
|
|
~chess();
|
|
|
|
void play();
|
|
};
|
|
|
|
#endif // CHESS_H
|