fix: 修复 komi 数值错误的问题

main v1.3.4
NoahLan 11 months ago
parent 143ec53b66
commit fc7a527188

@ -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

Loading…
Cancel
Save