修复 main.cpp

This commit is contained in:
happysnaker 2021-12-28 12:36:52 +08:00
parent 7d4ea3ed21
commit 25bd50eea4
20 changed files with 24 additions and 7 deletions

Binary file not shown.

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ProjectOutputs>
<ProjectOutput>
<FullPath>E:\GithubRepositories\Gobang\AL五子棋\x64\Debug\AI五子棋.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,2 @@
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30037:VCServicingVersionATL=14.29.30038:VCServicingVersionCrtHeaders=14.29.30038:VCServicingVersionCompilers=14.29.30038:TargetPlatformVersion=10.0.18362.0:
Debug|x64|E:\GithubRepositories\Gobang\AL五子棋\|

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
 源.cpp
E:\GithubRepositories\Gobang\AL五子棋\源.cpp(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
AL五子棋.vcxproj -> E:\GithubRepositories\Gobang\AL五子棋\x64\Debug\AI五子棋.exe

View File

@ -0,0 +1 @@
E:\GithubRepositories\Gobang\AL五子棋\x64\Debug\AI五子棋.exe

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,10 +10,10 @@
using namespace std;
constexpr int Width = 800;
constexpr int High = 640;
vector<vector<int>> map(18, vector<int>(18, -1)), cop(map); /*map是棋盘-1空0电脑1友方*/
stack<pair<int, int>> stk; /*用以控制悔棋*/
double myPos = 0, aiPos = 0; /*我方和电脑棋局得分*/
int aiset; /*记录电脑上一步下的位置*/
vector<vector<int>> map(18, vector<int>(18, -1)), cop(map); //map是棋盘-1空0电脑1友方
stack<pair<int, int>> stk; //用以控制悔棋
double myPos = 0, aiPos = 0; //我方和电脑棋局得分
int aiset; //记录电脑上一步下的位置
int main() {
MyChess mychs;
@ -25,8 +25,8 @@ int main() {
Start:
map = cop;
mychs.steps = 0;
initgraph(Width,High);
while (1) {
initgraph(Width, High);
while (1) {
ai.Get_key_Setchess(mychs); //Al first set chess
s.show(mychs, user); //show the map
if (ai.gameOver(s, user)) goto Start;
@ -35,4 +35,4 @@ Start:
s.show(mychs, user);
if (mychs.gameOver(s, user)) goto Start;
}
}
}