Announcing the tabula backgammon engine

107 views
Skip to first unread message

Trevor Slocum

unread,
Dec 6, 2023, 9:48:10 PM12/6/23
to golang-nuts
tabula is a relatively simple backgammon engine, created to allow playing offline in the client for https://bgammon.org

The engine currently performs a weighted 1-ply analysis. Read about how the engine works in the design document at https://code.rocket9labs.com/tslocum/tabula/src/branch/main/DESIGN.md

You can play against tabula in your browser right now at https://bgammon.org

Martin Schnabel

unread,
Dec 7, 2023, 5:04:07 AM12/7/23
to golan...@googlegroups.com
Hi Trevor,

I played two games against the bot and it was fun! Thank you!

However, there is a bug in the end game, when collecting pieces, and a
go stack trace in the console:

panic: no dice roll to use for 7/0
[…]
code.rocket9labs.com/tslocum/bgammon.(*Game).LegalMoves.func3(0x7, 0x0)
/home/trevor/go/pkg/mod/code.rocket9labs.com/tslocum/bga...@v0.0.0-20231203064241-5abce61fabb1/game.go:402
+0x2b

Have fun!
> --
> You received this message because you are subscribed to the Google
> Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to golang-nuts...@googlegroups.com
> <mailto:golang-nuts...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/d2fa3992-ce29-48db-a6be-aa51b2e0a490n%40googlegroups.com <https://groups.google.com/d/msgid/golang-nuts/d2fa3992-ce29-48db-a6be-aa51b2e0a490n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages