#include #include "ChessGame.h" int main() { Player player; Chess chess(15,12,13,27); AI ai; ChessGame game(&player,&ai,&chess); //������Ϸ���� initgraph(400, 400); while (1) { //��ʾ��ʼҳ�� loadimage(0, "start.jpg", 400, 400, true);//更改路径 while (1) { //��ȡ�������Ϣ,���жϵ����� MOUSEMSG msg = GetMouseMsg(); if (msg.uMsg == WM_LBUTTONDOWN) break; if (msg.uMsg == WM_RBUTTONDOWN) exit(0); } game.play(); } return 0; }