bearoffdump — dump a position from the GNU Backgammon bearoff database
Synopsisbearoffdump file id
Descriptionbearoffdump takes the path to a GNU Backgammon bearoff database and a position number and dumps the bearoff information for that position. It can be called on either the one-sided bearoff database, normally /usr/share/gnubg/gnubg_os0.bd; or the two-sided bearoff database, normally /usr/share/gnubg/gnubg_ts0.bd. The output from the former includes the probabilities of bearing off all checkers in varying numbers of moves. The latter only gives the probability of winning and doubling cube equity.
The id is difficult to derive if you don't know GNU Backgammon internals. Each possible combinatorial position of checkers and points is assigned a position number, id divided by that number is the player position, and id modulo that number is the opponent position. The number of points and checkers is set when building the bearoff database and are shown by bearoffdump when run with any id.