mirror of
https://github.com/happysnaker/Gobang.git
synced 2024-11-25 16:36:10 +08:00
修复 main.cpp
This commit is contained in:
parent
7d4ea3ed21
commit
25bd50eea4
BIN
AL五子棋/x64/Debug/AI五子棋.exe
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.exe
Normal file
Binary file not shown.
11
AL五子棋/x64/Debug/AI五子棋.exe.recipe
Normal file
11
AL五子棋/x64/Debug/AI五子棋.exe.recipe
Normal 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>
|
BIN
AL五子棋/x64/Debug/AI五子棋.ilk
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.ilk
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/AI五子棋.pdb
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.pdb
Normal file
Binary file not shown.
2
AL五子棋/x64/Debug/AI五子棋.tlog/AI五子棋.lastbuildstate
Normal file
2
AL五子棋/x64/Debug/AI五子棋.tlog/AI五子棋.lastbuildstate
Normal 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五子棋\|
|
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/CL.command.1.tlog
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/CL.command.1.tlog
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/CL.read.1.tlog
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/CL.write.1.tlog
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/CL.write.1.tlog
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/link.command.1.tlog
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/link.command.1.tlog
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/link.read.1.tlog
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/link.read.1.tlog
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/link.write.1.tlog
Normal file
BIN
AL五子棋/x64/Debug/AI五子棋.tlog/link.write.1.tlog
Normal file
Binary file not shown.
3
AL五子棋/x64/Debug/AL五子棋.log
Normal file
3
AL五子棋/x64/Debug/AL五子棋.log
Normal 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
|
1
AL五子棋/x64/Debug/AL五子棋.vcxproj.FileListAbsolute.txt
Normal file
1
AL五子棋/x64/Debug/AL五子棋.vcxproj.FileListAbsolute.txt
Normal file
@ -0,0 +1 @@
|
||||
E:\GithubRepositories\Gobang\AL五子棋\x64\Debug\AI五子棋.exe
|
BIN
AL五子棋/x64/Debug/Chess.obj
Normal file
BIN
AL五子棋/x64/Debug/Chess.obj
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/Show.obj
Normal file
BIN
AL五子棋/x64/Debug/Show.obj
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/Users.obj
Normal file
BIN
AL五子棋/x64/Debug/Users.obj
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/vc142.idb
Normal file
BIN
AL五子棋/x64/Debug/vc142.idb
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/vc142.pdb
Normal file
BIN
AL五子棋/x64/Debug/vc142.pdb
Normal file
Binary file not shown.
BIN
AL五子棋/x64/Debug/源.obj
Normal file
BIN
AL五子棋/x64/Debug/源.obj
Normal file
Binary file not shown.
14
AL五子棋/源.cpp
14
AL五子棋/源.cpp
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user