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