Hello everyone,

Some time ago I announced CBG, an Android port of GNU Backgammon, on
this list. The project has since had a major update, and I would like
to describe what the current release (1.0.1) adds. As before, this is a
port and not a reimplementation: the GNU Backgammon engine (1.08.003,
with the upstream neural-net weights byte-identical) runs locally and
remains the sole authority for legal moves, match rules, cube
decisions, playing strength and analysis. The interface renders the
engine's results and derives none of its own.

New since the first announcement:

* On-device rollouts — 1296-trial, cubeful, variance-reduced,
  quasi-random and seed-reproducible, with per-game logging in GNUbg's
  own format. A comparison harness that checks the rollout core against
  desktop GNU Backgammon, trial by trial and roll by roll, is included
  in the source tree (tools/rollout_harness/). Scrutiny of it would be
  very welcome.

* Position set-up and fuller analysis — besides GNU Position IDs, Match
  IDs and XGIDs, positions can now be built by hand on an editor board;
  with dice the engine ranks the plays, without dice it gives the cube
  decision and the equities behind it, and any position can be rolled
  out on the device.

* An expanded Coach — each move receives one of three verdicts (best;
  not best, with what beat it; or flagged, with GNUbg's severity and the
  equity it cost), and a before/after explorer steps through the played
  move and the engine's preferred lines on the board. Cube actions are
  judged in matches longer than one point.

* Personal statistics — match statistics computed by GNUbg's own
  analysis (error rates, luck, cube handling), each figure labelled by
  what it is.

* A tournament match clock, implemented as a self-contained C module
  written to GNUbg's conventions (a delay clock to tournament
  regulation). I would be glad to offer this upstream if there is
  interest; the design notes are in the tree (docs/upstream/).

* A signed match record — finished matches are written to a
  tamper-evident, cryptographically chained file the player owns, with
  the verification code included in the repository.

* Reproducible builds — two builds of a release commit produce
  byte-identical APKs, checkable with tools/verify_reproducible.sh.

As before, the application is entirely offline (it does not request the
network permission at all), contains no advertising, analytics or
accounts, and is licensed GPL-3.0-or-later. It requires Android 12 or
newer on a 64-bit ARM device. Saved matches remain standard .sgf and
open unchanged in desktop GNU Backgammon.

F-Droid:
https://f-droid.org/packages/com.clavierhaus.gnubg/

Complete corresponding source, build instructions and history:
https://github.com/clavierhaus/gnubg-android

Issue tracker:
https://github.com/clavierhaus/gnubg-android/issues

My thanks again to the GNU Backgammon developers and contributors,
whose work this port depends on entirely. Technical feedback from
people familiar with GNUbg would be particularly welcome — especially
on the rollout verification and the match-clock module.

Best regards,

Peter

clavierhaus.at

Reply via email to