diff --git a/dependency/py/nowHash.py b/dependency/py/nowHash.py deleted file mode 100644 index 3214fe1..0000000 --- a/dependency/py/nowHash.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding=utf-8 -import sys -import os -import argparse -import getopt -import hashlib -import json -import mimetypes - - -with open('..\..\.git\FETCH_HEAD', 'r') as f: - data = f.read() -with open('..\..\hash.txt', 'w') as fw: - fw.write(data[:data.find(' ')]) diff --git a/docs/QandA.md b/docs/QandA.md index 5884c8d..fb5cd20 100644 --- a/docs/QandA.md +++ b/docs/QandA.md @@ -9,7 +9,7 @@ A: 应该是还没有编译,打开CAPI\cpp目录,在里面打开CAPI.sln,然后点击生成,对代码进行编译 Q:为什么CAPI.sln打开后会找不到项目 -![zip](../resource/zip.png) +![zip](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/zip.png) A:要先解压 @@ -29,31 +29,31 @@ Q: Mac怎么用? A: 安装Windows虚拟机 - +try ## C++ Q:显示API项目已卸载 -![Nocplus](../resource/Nocplus.png) +![Nocplus](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/Nocplus.png) A:可能是没有安装C++ Q:CAPI.sln编译不通过 情况1: -![std_find_trivial](../resource/std_find_trivial.jpg) +![std_find_trivial](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/std_find_trivial.jpg) 情况2: -![LNK1000](../resource/LNK1000.png) +![LNK1000](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/LNK1000.png) A: 1. 应该是没使用VS2022 2. 对于VS2022依旧报错,先考虑是否版本过旧(应当在 17.5.x 版本) 用Visual Studio Installer(在开始菜单搜索)更新 - ![VsUpdate](../resource/VsUpdate.png) + ![VsUpdate](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/VsUpdate.png) 3. - ![项目属性](../resource/项目属性.png) + ![项目属性](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/项目属性.png) 确保上图项目属性中平台工具集在 v143,C++17 标准 Q:CAPI编译不通过 -![lib](../resource/lib.png) +![lib](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/lib.png) A:查看`.\win\CAPI\cpp\`文件夹下是否有`lib`文件夹,没有则https://cloud.tsinghua.edu.cn/d/6972138f641d4e81a446/ 下载并复制粘贴 @@ -62,7 +62,7 @@ A:查看`.\win\CAPI\cpp\`文件夹下是否有`lib`文件夹,没有则https:// ### grpc版本更新失败 Q:运行GeneratePythonProto.cmd报错 -![grpcUpdate](../resource/Q&A_grpc.png) +![grpcUpdate](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/Q&A_grpc.png) A: - 可能措施1. diff --git a/docs/Tool_tutorial.md b/docs/Tool_tutorial.md index 33b059e..6fd5585 100644 --- a/docs/Tool_tutorial.md +++ b/docs/Tool_tutorial.md @@ -10,7 +10,7 @@ 菜单栏下方一行 -![image-20230416010705076](../resource/image-20230416010705076.png) +![image-20230416010705076](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/image-20230416010705076.png) 可以更改生成模式为`Debug`或`Release` @@ -18,7 +18,7 @@ 左上方菜单栏 `调试->调试属性` -![image-20230416010816392](../resource/image-20230416010816392.png) +![image-20230416010816392](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/image-20230416010816392.png) 在命令参数一栏中加入命令行参数进行调试 diff --git a/docs/使用文档.md b/docs/使用文档.md index c2c4b11..8a6990d 100644 --- a/docs/使用文档.md +++ b/docs/使用文档.md @@ -77,8 +77,8 @@ start python .\CAPI\python\PyAPI\main.py -I 127.0.0.1 -P 8888 -p 0 -d -o -w `start .\CAPI\cpp\x64\Debug\API.exe`或者`start python .\CAPI\python\PyAPI\main.py`为运行该目录下的程序(C++)/代码(python) - 可以用不同的代码编译不同的exe(**也可以不**),需要自己更改以上路径,对于Python,需要copy整个PyAPI,具体如下图 - ![RunCppCmd](../resource/RunCppCmd.png) - ![RunPython](../resource/RunPython.png) + ![RunCppCmd](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/RunCppCmd.png) + ![RunPython](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/RunPython.png) - 比赛最终要提交5份代码(可以5份一样的,现在的AI.cpp/AI.py支持一份代码对不同的PlayerID执行不同操作) `-I`为服务器IP,一般本地为`127.0.0.1`,联机的话是服务器的IP @@ -156,7 +156,7 @@ start cmd /k win64\Client.exe --cl --playbackFile .\video.thuaipb --playbackSpee ## WPF简易调试界面 -![client](../resource/clientsmaller.png) +![client](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/clientsmaller.png) ### 界面介绍