From fc7a5271887d28fd72e2c2caf3b827e879c40a9f Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Mon, 18 Dec 2023 16:26:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20komi=20=E6=95=B0?= =?UTF-8?q?=E5=80=BC=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ngochess/gtp/gtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngochess/gtp/gtp.go b/ngochess/gtp/gtp.go index 4e9591a..e29bc32 100644 --- a/ngochess/gtp/gtp.go +++ b/ngochess/gtp/gtp.go @@ -263,7 +263,7 @@ func (e *GtpEngine) KnowCommand(cmd string) bool { // Komi 设置贴目 func (e *GtpEngine) Komi(komi float64) bool { - cmd := fmt.Sprintf("komi %.1f", komi) + cmd := fmt.Sprintf("komi %.2f", komi) resp, err := e.Send(e.nextId(), cmd) if !e.Check(resp, err, cmd) { return false