BEAROFFDUMP(6)

๐Ÿ’– BEAROFFDUMP โ€” games manual, section 6, bestie edition ๐Ÿ’–

okay so this is bearoffdump, straight outta the Games Manual, section 6. she's a little command-line girly who peers into your GNU Backgammon bearoff database and spills the tea about one specific position. let's get into it ๐ŸŽ€


โœจ NAME โœจ

bearoffdump โ€” dump a position from the GNU Backgammon bearoff database ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

bearoffdump file id

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so bearoffdump takes two things: the path to a GNU Backgammon bearoff database and a position number, and then it dumps the bearoff info for that position. that's it. that's the whole job. she's focused, she's efficient, she's giving main character energy. โœจ

you can call her on either of these two girlies:

  • the one-sided bearoff database, normally /usr/share/gnubg/gnubg_os0.bd
  • the two-sided bearoff database, normally /usr/share/gnubg/gnubg_ts0.bd

and the tea she serves is different depending on which one you hand her:

  • for the one-sided one, the output includes the probabilities of bearing off all checkers in varying numbers of moves ๐Ÿ”ฅ
  • for the two-sided one, she only gives the probability of winning and the doubling cube equity ๐Ÿ’€
ngl bestie, the id is difficult to derive if you don't know GNU Backgammon internals. like, genuinely. it's not a vibe-check situation, it's an internals situation. ๐Ÿ˜ญ

here's the lore tho: every possible combinatorial position of checkers and points gets assigned a position number. and then:

  • id divided by that number = the player position
  • id modulo that number = the opponent position

math girlies stay winning fr fr ๐Ÿงฎโœจ

also, the number of points and checkers is set when the bearoff database is built, and bearoffdump will show you both of those when you run it with any id. so even if you have no idea what you're doing, you still get a lil freebie. ๐Ÿซถ


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

gnubg(6)


๐Ÿ’œ AUTHORS ๐Ÿ’œ

this icon was brought to you by Joseph Heled, ร˜ystein Johansen, Jรธrn Thyssen, and Gary Wong, with the assistance of many others <bug-gnubg@gnu.org>. absolute legends, all of them. ๐ŸŒˆ

this manual page was written by Russ Allbery <rra@debian.org>, for the Debian GNU/Linux system (but may be used by others). it may be redistributed and/or modified under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation (the same license as GNU Backgammon). periodt. ๐Ÿ’…


okay that's the whole page bestie, no cap, every last detail preserved ๐ŸŽ€ this lil beauty is dated 2006-01-14 and lives in the Games Manual, section 6 โ€” so go forth, dump some bearoff positions, and slay ๐Ÿ’–โœจ๐Ÿฆ‹