Design of the tabula backgammon engine

https://code.rocket9labs.com/tslocum/tabula/src/branch/main/DESIGN.md

tabula is a backgammon engine I recently created.

The engine builds on principles described by the author of the Motif engine here: https://bkgm.com/motif/engine.html

You can play against the engine right now at https://bgammon.org

4 points · 2 comments · view on lemmy.world

2 Comments

rutrum@lm.paradisus.day · 1 pts · 2y (1 reply)

How exactly do you simulate die rolls? Do you actually use a random number a bunch of times and average? Because its 2d6, it has a known distribution. You could iterate over all combinations and use the probably distribution to weight each result. How did you accomplish this?

wahming@monyet.cc · 1 pts · 2y

Is there a reason standard pseudorandom wouldn't work?