Добавил:
Andrew1992
Факультет ИКСС, группа ИКВТ-61
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
#ifndef CHESSBOARD_H
#define CHESSBOARD_H
#include <iostream>
#include <iomanip>
#include <stdlib.h>
#include <conio.h>
#include <ctime>
using namespace std;
class ChessBoard
{
public:
explicit ChessBoard ()
{
for ( short i = 0; i < 8; i++ )
for ( short j = 0; j < 8; j++)
board[i][j] = 0;
currentRow = 9;
currentColumn = 9;
finalRow = 9;
finalColumn = 9;
}
void setCurrentRow ( unsigned );
void setCurrentColumn ( unsigned );
unsigned getCurrentRow ();
unsigned getCurrentColumn ();
void setBoard ( int );
void setAccessibility ( int [][8], int, int );
int makePossibleMove ( int, int, int );
void setPosition ( int [][8], int );
void printBoard ();
int prediction ( int [][8], int, int, int, int, int );
void initializeBoard();
void interact(int, char**);
private:
short board[8][8];
short vertical[64] = {};
short horizontal[64] = {};
unsigned currentRow;
unsigned currentColumn;
public:
short finalRow;
short finalColumn;
};
#endif // CHESSBOARD_H