ADD file via upload

main
peauxh9ov 5 months ago
parent e446b838a2
commit fc3ab10ab2

@ -0,0 +1,29 @@
#include<iostream>
#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, "graphics/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;
}
Loading…
Cancel
Save