You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
510 B

#include<iostream>
#include "ChessGame.h"
int main()
{
Player player;
Chess chess(15,12,13,27);
AI ai;
ChessGame game(&player,&ai,&chess);
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>
initgraph(400, 400);
while (1)
{
//<2F><>ʾ<EFBFBD><CABE>ʼҳ<CABC><D2B3>
loadimage(0, "graphics/start.jpg", 400, 400, true);
while (1)
{
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ,<2C><><EFBFBD>жϵ<D0B6><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
MOUSEMSG msg = GetMouseMsg();
if (msg.uMsg == WM_LBUTTONDOWN)
break;
if (msg.uMsg == WM_RBUTTONDOWN)
exit(0);
}
game.play();
}
return 0;
}