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

You are viewing a single thread.
View all comments
0 points

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?

permalink
report
reply
0 points

I use the crypto/rand package which provides cryptographically secure random numbers. I verified the distribution when implementing it in the server and it consistently meets the expected distribution.

permalink
report
parent
reply

boardgames

!boardgames@feddit.de

Create post

Everything boardgames

Please stick to English for posts and comments

Community stats

  • 1

    Monthly active users

  • 243

    Posts

  • 1.1K

    Comments