Initial commit

This commit is contained in:
2014-09-30 17:09:22 +03:00
commit 1d8061ef10
18 changed files with 1345 additions and 0 deletions

34
chess.h Normal file
View File

@@ -0,0 +1,34 @@
#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