From 316653fa666ca966a80268ba0955b557a10af8f3 Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Tue, 19 Dec 2023 15:48:14 +0800 Subject: [PATCH] feat: katago komi omitempty --- ngochess/katago/req.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngochess/katago/req.go b/ngochess/katago/req.go index 42c58a0..3e5f826 100644 --- a/ngochess/katago/req.go +++ b/ngochess/katago/req.go @@ -22,7 +22,7 @@ type QueryReq struct { Moves []Stone `json:"moves"` // moves InitialStones []Stone `json:"initialStones,omitempty,optional"` // 初始化棋子(让子棋,棋谱等等) Rules string `json:"rules"` // 规则, chinese / japanese / tromp-taylor .etc... - Komi float32 `json:"komi"` // 贴目,中国规则一般7.5目 + Komi float32 `json:"komi,omitempty,optional"` // 贴目,中国规则一般7.5目 BoardXSize int64 `json:"boardXSize"` // 棋盘X大小 BoardYSize int64 `json:"boardYSize"` // 棋盘Y大小 AnalyzeTurns []int32 `json:"analyzeTurns,omitempty,optional"` // 需要分析的回合数,与moves对应,若不指定,则分析最后一回合