Do not apply timeout when playing local match
This commit is contained in:
parent
c6c7c8fc77
commit
ac7ec51d80
3 changed files with 6 additions and 5 deletions
|
@ -61,7 +61,9 @@ func NewClient(address string, username string, password string, points int, var
|
|||
thinkTime: thinkTime,
|
||||
analysis: make([]*tabula.Analysis, 0, tabula.AnalysisBufferSize),
|
||||
}
|
||||
go c.handleTimeout()
|
||||
if address != "" {
|
||||
go c.handleTimeout()
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
|
@ -575,7 +577,6 @@ func TabulaBoard(b []int8) tabula.Board {
|
|||
func printMoves(moves [4][2]int8) []byte {
|
||||
var b []byte
|
||||
for i := 0; i < 4; i++ {
|
||||
log.Println(i)
|
||||
if moves[i][0] == 0 && moves[i][1] == 0 {
|
||||
break
|
||||
} else if i != 0 {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -3,7 +3,7 @@ module code.rocket9labs.com/tslocum/bgammon-tabula-bot
|
|||
go 1.17
|
||||
|
||||
require (
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20240207200050-19450582e8da
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20240220213331-09878764aaa3
|
||||
code.rocket9labs.com/tslocum/tabula v0.0.0-20240207195947-691c7a5d5265
|
||||
nhooyr.io/websocket v1.8.10
|
||||
)
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1,7 +1,7 @@
|
|||
code.rocket9labs.com/tslocum/bei v0.0.0-20240108012722-6db380cc190b h1:Y0a14Kf/hSYepSmp4ZfDeE4CZZGBGBS97CNjCbKJm0c=
|
||||
code.rocket9labs.com/tslocum/bei v0.0.0-20240108012722-6db380cc190b/go.mod h1:tS60/VNAJphKvDBkSLQhKALa15msIAuWWfEKNc4oFZc=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20240207200050-19450582e8da h1:2ErM7ZobHAgvk32AqUz/6cxiNf9raHSg1fGQSoVGHG0=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20240207200050-19450582e8da/go.mod h1:Ilb6S0QWLRDqT6q8J2UA4vp1+NQdBZZQvbIrCjXsQ90=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20240220213331-09878764aaa3 h1:vFF5e61UnjJ0jqdeAh9iOduEQNxya1JG4PBnkLlxatc=
|
||||
code.rocket9labs.com/tslocum/bgammon v0.0.0-20240220213331-09878764aaa3/go.mod h1:cmhRMMrLrsMlG3rhcGbfsPdk0VKSEZMfkFtpRMxm/h8=
|
||||
code.rocket9labs.com/tslocum/tabula v0.0.0-20240207195947-691c7a5d5265 h1:B9R/SFVUAOut2o8rD7bc1fsa92eQdDKzxBFj7oxhDEc=
|
||||
code.rocket9labs.com/tslocum/tabula v0.0.0-20240207195947-691c7a5d5265/go.mod h1:WEJXESKXqrMFLAArikQ79lpRibNeeE1C0VruxXYMF5M=
|
||||
nhooyr.io/websocket v1.8.10 h1:mv4p+MnGrLDcPlBoWsvPP7XCzTYMXP9F9eIGoKbgx7Q=
|
||||
|
|
Loading…
Reference in a new issue