LaTeX Backgammon
21 views
August 6, 2026
Right after finishing my LaTeX Shogi project , I got an itch for doing something analogous but to another game, one that I believe is only second to Go in terms of strategy and beauty. The resulting code is here: @psygo/latex_backgammon.
A vector diagram for the game of backgammon.
This time though, I did 99% of the project with AI, more especifically, Claude AI. The only thing I didn't create with AI was the scaffolding with TikZ and its \pic API, in an attempt to have the code more organized and readable.
Curiously, backgammon is also the only board game, out of the ones still played, which could compete with Go when it comes to age. Its predecessor was known as The Royal Game of Ur, and was played as far back as ancient Babylon, around 4,000 years ago!
If you're interested in the project, I suggest you check out LaTeX Shogi on Github (@psygo/latex_shogi) and its companion article too, but the backgammon_export.tex file provides a pretty nice example of how to use the package.

The project on Github.
After generating the PDF, you could also generate an SVG through either opening up a graphical editor, such as Inkscape, or by using this on the command line:
pdftocairo -svg filename.pdf filename.svgComments
You need to sign in to comment.
No comments yet.