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
591 B

#include<iostream>
#include "ChessGame.h"
int main()
{
Player player;
Chess chess(15,12,13,27);
AI ai;
ChessGame game(&player,&ai,&chess);
//„1¤7„1¤7„1¤7„1¤7„1¤7„1¤7<C2A4>0Ð5„1¤7„1¤7„1¤7„1¤7
initgraph(400, 400);
while (1)
{
//„1¤7„1¤7<C2A4>0¶5„1¤7„1¤7<C2A4>0¶3<C2B6>0Ü7„1¤7„1¤7
loadimage(0, "start.jpg", 400, 400, true);//¸ü¸Ä·¾¶
while (1)
{
//„1¤7„1¤7<C2A4>0§0„1¤7„1¤7„1¤7„1¤7„1¤7„1¤7„1¤7<C2A4>0Î4,„1¤7„1¤7„1¤7§Ø<C2A7>0Ð3„1¤7„1¤7„1¤7„1¤7„1¤7
MOUSEMSG msg = GetMouseMsg();
if (msg.uMsg == WM_LBUTTONDOWN)
break;
if (msg.uMsg == WM_RBUTTONDOWN)
exit(0);
}
game.play();
}
return 0;
}