Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

makebearoff(6) [debian man page]

MAKEBEAROFF(6)							   Games Manual 						    MAKEBEAROFF(6)

NAME
makebearoff - generate a GNU Backgammon bearoff database SYNOPSIS
makebearoff [-HCcgnvh] -f filename [-t PxC] [-o P] [-s cache-size] [-O filename] DESCRIPTION
makebearoff generates GNU Backgammon bearoff databases, which are used to improve play in the endgame. It can generate either two-sided (exact) databases that tell precisely the chance of winning or one-sided (approximate) databases that provide a variety of probabilities looking at each side independently. Bearoff databases can get quite large and can take a significant amount of time to generate for large numbers of chequers and/or points. OPTIONS
-f filename, --outfile filename Write the bearoff database to filename. This option must be given. -t PxC, --two-sided PxC Generate a two-sided bearoff database for P points and C chequers for each player. Be warned that the size of the database grows rapidly with larger numbers of points and chequers. -o P, --one-sided P Generate a one-sided bearoff database for P points. One-sided bearoff databases are always generated for up to fifteen chequers. -s N, --xhash-size N Use a memory cache of size N while building the database. If the cache is smaller than the database size, database generation will be slower due to disk writes. -O filename, --old-bearoff filename Reuse an already generated bearoff database. Any needed data already in this database will just be copied without regenerating it. -H, --no-header Do not write the normal bearoff database header. -C, --no-cubeful Do not calculate cubeful equities for two-sided databases. -c, --no-compress Do not compress one-sided databases. -g, --no-gammons Do not include gammon distributions in one-sided databases. -n, --normal-dist Rather than storing exact probabilities, approximate probabilities in a one-sided database with a normal distribution. -v, --version Show version information and exit. -h, --help Display usage and exit. EXAMPLES
To generate a two-sided database for up to eight chequers on six points: makebearoff -t 6x8 -f gnubg_ts.bd Note that this database is 72MB in size. To generate a one-sided database for up to fifteen chequers on ten points: makebearoff -o 10 -f gnubg_os.bd Note that this database is 118MB in size. SEE ALSO
gnubg(6), bearoffdump(6) AUTHORS
Joseph Heled, Oystein Johansen, Jorn Thyssen, and Gary Wong, with the assistance of many others <bug-gnubg@gnu.org>. 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). 2006-01-15 MAKEBEAROFF(6)

Check Out this Related Man Page

XrmMergeDatabases(3X11) 					     MIT X11R4						   XrmMergeDatabases(3X11)

Name
       XrmMergeDatabases, XrmGetFileDatabase, XrmPutFileDatabase, XrmGetStringDatabase, XrmDestroyDatabase - manipulate resource databases

Syntax
       void XrmMergeDatabases(source_db, target_db)
	  XrmDatabase source_db, *target_db;

       XrmDatabase XrmGetFileDatabase(filename)
	  char *filename;

       void XrmPutFileDatabase(database, stored_db)
	  XrmDatabase database;
	  char *stored_db;

       XrmDatabase XrmGetStringDatabase(data)
	  char *data;

       void XrmDestroyDatabase(database)
	  XrmDatabase database;

Arguments
       data	 Specifies the database contents using a string.

       database  Specifies the database that is to be used.

       filename  Specifies the resource database file name.

       source_db Specifies the resource database that is to be merged into the target database.

       stored_db Specifies the file name for the stored database.

       target_db Specifies a pointer to the resource database into which the source database is to be merged.

Description
       The function merges the contents of one database into another.  It may overwrite entries in the destination database.  This function is
       used to combine databases (for example, an application specific database of defaults and a database of user preferences).  The merge is
       destructive; that is, the source database is destroyed.

       The function opens the specified file, creates a new resource database, and loads it with the specifications read in from the specified
       file.  The specified file must contain lines in the format accepted by If it cannot open the specified file, returns NULL.

       The function stores a copy of the specified database in the specified file.  The file is an ASCII text file that contains lines in the for-
       mat that is accepted by

       The function creates a new database and stores the resources specified in the specified null-terminated string.	is similar to except that
       it reads the information out of a string instead of out of a file.  Each line is separated by a new-line character in the format accepted
       by

       If database is NULL, returns immediately.

See Also
       XrmGetResource(3X11), XrmInitialize(3X11), XrmPutResource(3X11), XrmUniqueQuark(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

															   XrmMergeDatabases(3X11)
Man Page