Browse Source

docs: 📝 edit 使用文档

tags/0.1.0
shangfengh 2 years ago
parent
commit
0f1a2fb73a
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      CAPI/cpp/API/src/AI.cpp
  2. +3
    -0
      docs/使用文档.md

+ 1
- 0
CAPI/cpp/API/src/AI.cpp View File

@@ -3,6 +3,7 @@
#include <array>
#include "AI.h"
#include "constants.h"
//注意不要使用conio.h,Windows.h等非标准库

// 为假则play()期间确保游戏状态不更新,为真则只保证游戏状态在调用相关方法时不更新
extern const bool asynchronous = false;


+ 3
- 0
docs/使用文档.md View File

@@ -3,6 +3,9 @@
本文档仅供Windows选手参考,Linux,macOS选手仿照本文档即可。
[TOC]

## 不应当使用Windows特性的库,不建议使用.h结尾的库,建议使用标准库
- 不要使用conio.h,Windows.h

## C++接口使用说明

- Windows:先查看`.\win\CAPI\cpp\`文件夹下是否有`lib`文件夹,没有则https://cloud.tsinghua.edu.cn/d/6972138f641d4e81a446/ 下载并复制粘贴


Loading…
Cancel
Save