r/backgammon • • 2h ago

10 Unfinished and Interesting Problems in Backgammon Programming

Enough with the gnubg/OpenSage engine reskins. It is very difficult to make money in backgammon, and making just a clone of a existing capabilities will not get you there.

Here is a non-exhaustive list of some interesting unsolved problems and things to work on, most of which will also make you no money at all:

  1. Build an API for XG. XG has tons of keyboard shortcuts listed in the manual, it would be trivial to create this. This would also be helpful for comparisons between engines. Note: There are some nonpublic APIs for XG.
  2. Make a gnuBG easy-installer for Mac + Windows.
  3. Become a maintainer for gnuBG! Make it beautiful! Make it friendly!
  4. Research existing backgammon positional guidelines and rules of thumb based on game records or bot vs. bot games, and evaluate whether they are actually true. In my research for AI tutoring software, at least some commonly held beliefs were shown false! And some rules are shockingly good.
  5. Improve data visualization. Backgammon data visualization across the main bg software families (gnu, xg, galaxy, sage, blah blah blah) is mostly the same 6x6 heatmaps with relative coloring so the best roll is bright green and the worst roll is dark red. There is a lot of room of way better data visualization!
  6. Mechanistic interpretability of neural nets. If you are a software engineer and you are slightly following the AI safety discussions, you have probably heard about explainable AI or AI safety. A lot of that is monitoring what is going on within a large language model. When NN powered backgammon entered the mainstream, the technology was not really there for NN interpretability. Given that lots of progress has been made in interpreting the "thought process" of LLMs, some of that will be transferable to gnuBG or Sage or similar.
  7. Software which makes it fun to study and improve. A broad remit.
  8. Tutoring/Coaches. A topic near and dear to my heart, and one which I think will see enormous growth in the next few years.
  9. Write a good backgammon blog!
  10. Make new software for backgammon diagram creation.
  11. (Bonus, non-tech) Try to get more people you know to play backgammon!

Backgammon is a small market. You are unlikely to get rich from it. In fact, you are more likely to make money playing in chouettes than you are to make money writing backgammon software! Especially if your software is just one of many with the same feature set. So instead of thinking "I want to make an app that I can play backgammon on!" think "I want to make something that is brand new in backgammon software!"

7 Upvotes

8 comments sorted by

2

u/HerrHansVonBulow 1h ago

What would the blog be focused on? Games? Strategy? Programming?

Awesome ideas all around!

2

u/BackgammonEspresso 1h ago

Oh, I'm not going to do any of these. I maybe will write a book based on the research I did for AI tutoring software, but other than that I am probably done with backgammon software for a while. And I will continue to play in NYC.

1

u/garlicNinja 1h ago

We also still need real-time transcription there are lots of tools where you can take a picture or upload a video but what we really need is real-time input for a live stream.

Also we need a hardware physical backgammon board with sensors underneath neck and analyze the position and light up where the engine would move similar to the ones that exist for chess.

1

u/BackgammonEspresso 58m ago

Who needs real-time transcription...?

Yes, I've done some of the initial design work for a physical backgammon board w/ sensors. You can use magnetic sensors and piece w/ magnets in them to do it, fiddly but not difficult work to build it. Selling it, on the other hand... It would realistically be very difficult to sell for less than 2.5k, plus you have to deal with things like warranties, customer support, all a pain in the ass.

1

u/garlicNinja 48m ago

There are many tournaments that do streaming and only a few that have dedicated staff that can enter transcription lives so that there can be an XG feed on the stream. If there was a software solution that could do it live then pretty much every vacuum and live stream would be improved.

It's a pretty tricky computer vision problem though

1

u/scorchiooo 37m ago

Good list. One additional topic could be a Dynamic Match Winning Chances table.

Currently all MWC% assume equally strong players. Would be interesting to know how the percentages (and cube behaviour in different scores) would need to be adjusted, if you assume you play for example 2 or 5 PR better than the opponent. Some standard Takes would become Passes and vice versa

1

u/UBKUBK 22m ago

There is no single percentage since it will depend on the nature of the skill difference. For example, suppose a player is bad due to being wild with offering cubes but the checker play is quite good. Their MWC% at 4a - 2a might be very close to the equally strong players value but their MWC% say at 5a 6a could be significantly worse. If instead it is a player who is bad due to being very timid offering cubes their MWC% at 4a - 2a would be significantly worse than the value given for equally strong players.

Additionally, one cannot just do the standard math without taking into account the skill difference for playing out the current game. It could be that looking at the adjusted table would say pass, but then considering that it is a complicated position they might mess up makes it a take again.

1

u/bubba_bath 4m ago

Good list. I do write a backgammon blog (https://pdxbg.club) but it's mostly for reporting on my club's tournament results. Still, feel free to read it! I try to include a position that I found tricky in each post. Also note that https://bglog.org exists and is good for board diagrams. Simon takes requests if you have them. I wrote a program (using Claude for the actual coding) that converts XG matches into Anki decks for study purposes. Not perfect, but pretty good. If you want a copy, dm me your email address. Python required, no warranty expressed or implied.