The double dummy library is available in two formats.
. The file “Library.bin” is a binary file.
Each hand in the library is stored using 26 bytes of information.
These 26 bytes comprise Four 32-bit integers, followed by Five 16-bit
The 32-bit integers refer to the four suits, with bits 0-1
indicating who holds the ace (I take West to be 0, North to be 1, and
it doesn't matter as long as it's clockwise), bits 2-3 giving
the holder of the king, and so on. I take
to be suit 0, but
that doesn't matter at all.
The Five 16-bit integers indicate how many tricks can be taken by each
player and in each denomination.
The first integer refers to NT, and
the subsequent ones to the suits.
Bits 0-3 give the number of tricks
that can be taken by NS with player 0 (West) on lead; bits 4-7 the
number that can be taken by NS with player 1 on lead, and so on.
. The file “Library.asc” is an ascii file.
In this file, each line refers to a deal. Here is a typical one (the first, in fact):
There are 88 characters per line. The first 16 give West's hand, with
suits separated by periods. Then there is a space. The next 16
characters give North's hand, then East's, and then South's. Then
there is a colon, followed by 20 results (in hexadecimal). The first
four refer to NT:
the number of tricks that can be taken by N/S with S
leading, then E, then N, then W. The next four refer to
trumps, and finally
which has now expired.