Mainly to review cocos. The version used here is the latest 3.17. It should be noted that the incident response processing method has changed.
Function:
Implement simple AI
Test platform:
To test successfully on Mac ios windows
Test version vs2015
xcode 9 real machine iphone7p
cocos create project command:
Tag: chess
Jenzi chess game
1 #define _CRT_SECURE_NO_WARNINGS
2 #include
3 #include
4 #include
5
6 #define ROW 3
7 #define COL 3
8
9 char g_broad[ROW][COL]; 10
11 void Init(char broad [ROW][COL]) 12 { 13 for