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.
|
|
|
|
#include<iostream>
|
|
|
|
|
#include "ChessGame.h"
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
Player player;
|
|
|
|
|
Chess chess(15,12,13,27);
|
|
|
|
|
AI ai;
|
|
|
|
|
ChessGame game(&player,&ai,&chess);
|
|
|
|
|
//<2F>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>0<EFBFBD>5<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7
|
|
|
|
|
initgraph(400, 400);
|
|
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
//<2F>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>0<EFBFBD>5<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>0<EFBFBD>3<EFBFBD>0<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7
|
|
|
|
|
loadimage(0, "start.jpg", 400, 400, true);//<2F><><EFBFBD><EFBFBD>·<EFBFBD><C2B7>
|
|
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
//<2F>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>0<EFBFBD>0<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>0<EFBFBD>4,<2C>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBFBD>0<D881>3<EFBFBD>1<EFBFBD>7<EFBFBD>1<EFBFBD>7<EFBF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