Update dependencies

This commit is contained in:
Trevor Slocum 2023-12-06 16:09:55 -08:00
parent 7484d56da1
commit 612426a93d
3 changed files with 8 additions and 7 deletions

View file

@ -420,7 +420,8 @@ func (c *Client) HandleEvents() {
t = time.Now()
}
result := boardState.Analyze(1, Game.Available)
available, _ := boardState.Available(1)
result := boardState.Analyze(available)
if len(result) == 0 {
log.Printf("Legal moves: %+v", Game.Available)
log.Fatalf("NO PLAYABLE MOVES RETURNED: %+v", result)

4
go.mod
View file

@ -3,7 +3,7 @@ module code.rocket9labs.com/tslocum/bgammon-tabula-bot
go 1.17
require (
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231203064241-5abce61fabb1
code.rocket9labs.com/tslocum/tabula v0.0.0-20231205082741-1703a504b560
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231208220405-8c4b5112ba77
code.rocket9labs.com/tslocum/tabula v0.0.0-20231209094435-959d43321c78
nhooyr.io/websocket v1.8.10
)

8
go.sum
View file

@ -1,6 +1,6 @@
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231203064241-5abce61fabb1 h1:DU4h2XiS2bz4FdaeHRfYTBNwhWuaYGmnb/NA0VgsVMc=
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231203064241-5abce61fabb1/go.mod h1:u3nbSwxWnwOXbCNPQD4s3abGTfvA4/gi9U626f7ZN9Q=
code.rocket9labs.com/tslocum/tabula v0.0.0-20231205082741-1703a504b560 h1:P8pumjibx2We8C1+6gUQQEDxMozK4RJW+IwmI+vkU0o=
code.rocket9labs.com/tslocum/tabula v0.0.0-20231205082741-1703a504b560/go.mod h1:XtS6M8qcK0fnUn4k5I7h4JcZ2sz2WEAXOcF2DLaQBME=
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231208220405-8c4b5112ba77 h1:MnAW9Icj5mDOaFnyT3BcH/xRoa0stZEJjs+hQg0lyj0=
code.rocket9labs.com/tslocum/bgammon v0.0.0-20231208220405-8c4b5112ba77/go.mod h1:u3nbSwxWnwOXbCNPQD4s3abGTfvA4/gi9U626f7ZN9Q=
code.rocket9labs.com/tslocum/tabula v0.0.0-20231209094435-959d43321c78 h1:5E+Av3zTjMndkoz9n7QSl0icA1eBjnzFXtpbVADhXy8=
code.rocket9labs.com/tslocum/tabula v0.0.0-20231209094435-959d43321c78/go.mod h1:XtS6M8qcK0fnUn4k5I7h4JcZ2sz2WEAXOcF2DLaQBME=
nhooyr.io/websocket v1.8.10 h1:mv4p+MnGrLDcPlBoWsvPP7XCzTYMXP9F9eIGoKbgx7Q=
nhooyr.io/websocket v1.8.10/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c=