-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoard.h
38 lines (34 loc) · 807 Bytes
/
Board.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
30
31
32
33
34
35
36
37
38
#ifndef BOARD_H
#define BOARD_H
#include <QWidget>
#include "Stone.h"
#include "Define.h"
#include "Searchengine.h"
#include "Generator.h"
#include <QPushButton>
class Board : public QWidget
{
Q_OBJECT
public:
explicit Board(QWidget *parent = 0);
~Board();
int _r,_d,set_x,set_y;
QPoint _select;
BYTE position[6][6];
BYTE _Side;
bool AI_first;
QPushButton *button;
CHESSMOVE move1,move2;
void darwStone(QPainter& painter);
QPoint center(int row,int col);
QPoint getRowCol(QPoint pt);
void paintEvent(QPaintEvent*);
void mouseReleaseEvent(QMouseEvent *);
void AI_Play();
void moveStone(CHESSMOVE move);
bool canMove(int From_row, int From_col, int To_row, int To_col);
void cancel();
signals:
public slots:
};
#endif // BOARD_H