LizGoban 开源项目教程

LizGoban 开源项目教程

lizgobanLeela Zero & KataGo visualizer项目地址:https://gitcode.com/gh_mirrors/li/lizgoban

1. 项目的目录结构及介绍

LizGoban 是一个用于围棋分析的工具,结合了 Leela Zero 和 KataGo。以下是项目的目录结构及其介绍:

lizgoban/
├── github/workflows/
│   ├── build_with_external.yml
│   └── ...
├── src/
│   ├── main.js
│   └── ...
├── .gitignore
├── LICENSE.txt
├── Makefile
├── NOTE.txt
├── OBSOLETE.md
├── README.md
├── faces.png
├── lizgoban_windows.ps1
├── lizgoban_windows.vbs
├── match.png
├── package.json
├── screen.gif
└── ...
  • github/workflows/: 包含 GitHub Actions 的工作流配置文件。
  • src/: 项目的源代码目录,包含主要的 JavaScript 文件。
  • .gitignore: Git 忽略文件配置。
  • LICENSE.txt: 项目的许可证文件。
  • Makefile: 用于构建项目的 Makefile。
  • NOTE.txt: 项目的一些注释或说明。
  • OBSOLETE.md: 过时的文档或说明。
  • README.md: 项目的说明文档。
  • faces.png: 围棋棋子的图像文件。
  • lizgoban_windows.ps1: Windows 平台的启动脚本。
  • lizgoban_windows.vbs: Windows 平台的启动脚本。
  • match.png: 匹配相关的图像文件。
  • package.json: Node.js 项目的配置文件。
  • screen.gif: 项目的屏幕截图。

2. 项目的启动文件介绍

LizGoban 的启动文件主要包括以下几个:

  • lizgoban_windows.ps1: Windows 平台的 PowerShell 启动脚本。
  • lizgoban_windows.vbs: Windows 平台的 VBScript 启动脚本。
  • src/main.js: 项目的入口 JavaScript 文件。

在 Windows 平台上,可以通过双击 lizgoban_windows.vbs 文件来启动 LizGoban。在其他平台上,可以通过运行 npm start 命令来启动项目。

3. 项目的配置文件介绍

LizGoban 的配置文件主要包括 package.jsonconfig.json

  • package.json: 这是 Node.js 项目的标准配置文件,包含了项目的依赖、脚本命令等信息。
{
  "name": "lizgoban",
  "version": "0.8.0-pre6",
  "description": "Leela Zero & KataGo visualizer",
  "main": "src/main.js",
  "scripts": {
    "start": "electron ."
  },
  "dependencies": {
    "electron": "^12.0.0"
  }
}
  • config.json: 这是 LizGoban 的自定义配置文件,用于配置 KataGo 和其他引擎的参数。
{
  "preset": [
    {
      "label": "KataGo",
      "engine": [
        "/FOO/BAR/katago",
        "gtp",
        "-override-config",
        "analysisPVLen=50 defaultBoardSize=19",
        "-model",
        "/FOO/BAR/model.bin.gz",
        "-config",
        "/FOO/BAR/gtp.cfg"
      ]
    }
  ]
}

在 Windows 平台上,可以将 config.json 文件放置在与 lizgoban_windows.vbs 相同的目录中,并通过双击 lizgoban_windows.vbs 来启动项目。在其他平台上,可以通过运行 npm start -- -c config.json 来启动项目。

lizgobanLeela Zero & KataGo visualizer项目地址:https://gitcode.com/gh_mirrors/li/lizgoban

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

尚舰舸Elsie

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值