Changes

Jump to: navigation, search

ABK

7,571 bytes added, 17:58, 28 February 2019
Created page with "'''Home * Knowledge * Opening Book * ABK''' '''ABK''', (Arena's book format)<br/> the opening book format of Arena. It persists a book tree as Arr..."
'''[[Main Page|Home]] * [[Knowledge]] * [[Opening Book]] * ABK'''

'''ABK''', (Arena's book format)<br/>
the opening book format of [[Arena]]. It persists a book tree as [[Array|array]] of entries, each entry referring one book move with priority and statistics, an entry index of the next move inside a book line (> 0 if any), and an entry index of a possible sibling move (>= 0 if any). The sizeof of an entry is 28, the [[Initial Position|initial position]] indexed by 900 <ref>[http://www.talkchess.com/forum/viewtopic.php?t=20661&start=5 Re: Opening books format] by [[Jury Osipov]], [[CCC]], April 15, 2008</ref>.

=Entry Structure=
The array of entries/structures is written to / read from a [https://en.wikipedia.org/wiki/Binary_file binary file] under [[Windows]] ([[x86]]), struct and integers implicitely stored [[Little-endian|little-endian]] wise:
<pre>
struct SBookMoveEntry {
char from; /* a1 0, b1 1, ..., h1 7, ... h8 63 */
char to; /* a1 0, b1 1, ..., h1 7, ... h8 63 */
char promotion; /* 0 none, +-1 rook, +-2 knight, +-3 bishop, +-4 queen */
char priority;
int ngames;
int nwon;
int nlost;
int plycount;
int nextMove;
int nextSibling;
} * pOpeningBook;
</pre>
=Sample Tree=
<pre>
root index

┌───────────┐ ┌───────────┐
│nextSibling│ ─────────────── ► ────────────── │nextSibling│ ─────────────── ► ...
├───────────┤ ├───────────┤
│ e2-e4 │ │ d2-d4 │
├───────────┤ ├───────────┤
│ nextMove │ │ nextMove │
└───────────┘ └───────────┘
▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐
│nextSibling│►│nextSibling│►│nextSibling│►... │nextSibling│►│nextSibling│►│nextSibling│►│nextSibling│►...►│nextSibling│
├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤
│ e7-e5 │ │ c7-c5 │ │ e6-e6 │ │ d7-d5 │ │ g8-f6 │ │ c7-c6 │ │ e7-e6 │ │ f7-f5 │
├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤
│ nextMove │ │ nextMove │ │ nextMove │ │ nextMove │ │ nextMove │ │ nextMove │ │ nextMove │ │ nextMove │
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
┌───────────┐ ... ┌───────────┐ ┌───────────┐ ... ... ┌───────────┐ ...
│nextSibling│►... │nextSibling│►... │nextSibling│►... │nextSibling│►...
├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤
│ g1-f3 │ │ d2-d4 │ │ c2-c4 │ │ e2-e4 │
├───────────┤ ├───────────┤ ├───────────┤ ├───────────┤
│ nextMove │ │ nextMove │ │ nextMove │ │ nextMove │
└───────────┘ └───────────┘ └───────────┘ └───────────┘
▼ ▼ ▼ ▼
... ... ... ...
</pre>
=See also=
* [[CTG]] - [[ChessBase]] book format
* [[Polyglot|BIN]] - [[Polyglot]] book format

=Forum Posts=
==2007 ...==
* [http://www.talkchess.com/forum/viewtopic.php?t=14254 Which is the best general purpose Arena (abk format) Book] by [[Christopher Conkie]], [[CCC]], June 04, 2007
* [http://www.talkchess.com/forum/viewtopic.php?t=20661 Opening books format] by James Constance, [[CCC]], April 14, 2008
: [http://www.talkchess.com/forum/viewtopic.php?t=20661&start=5 Re: Opening books format] by [[Jury Osipov]], [[CCC]], April 15, 2008
: [http://www.talkchess.com/forum/viewtopic.php?t=20661&start=6 Re: Opening books format] by [[Richard Pijl]], [[CCC]], April 15, 2008
: [http://www.talkchess.com/forum/viewtopic.php?t=20661&start=9 Re: Opening books format] by [[Dann Corbit]], [[CCC]], April 15, 2008
: [http://www.talkchess.com/forum/viewtopic.php?t=20661&start=13 Re: Opening books format] by [[Lance Perkins]], [[CCC]], April 17, 2008
==2010 ...==
* [http://www.talkchess.com/forum/viewtopic.php?t=40406 Convert .obk books to .abk books?] by [[David Dahlem]], [[CCC]], September 15, 2011
* [http://www.talkchess.com/forum/viewtopic.php?t=61165 Scid / Scid vs. PC - ChessBase (.ctg) and Arena (.abk)] by [[Norbert Raimund Leisner]], [[CCC]], August 19, 2016 » [[CTG]], [[Scid]]
* [http://www.talkchess.com/forum/viewtopic.php?t=63007 How to use Arena book?] by P. Kumar, [[CCC]], February 01, 2017

=External Links=
* [http://www.playwitharena.com/?User_Files%2C_Engines:Opening_Books_%2821%29%26nbsp%3B Arena Chess GUI - Opening Books]
* [https://gumroad.com/l/UAgr Commercial Opening Book Fauzi 4.5.abk] by [[Fauzi Akram Dabat]]
* [http://www.hiarcs.com/chess-opening-book-free.htm Free Opening Book Downloads] from [[HIARCS|HIARCS Chess Software]]
* [https://sites.google.com/site/numptychess/arena-opening-books Arena opening books] from [[Numpty chess]] <ref>[http://www.talkchess.com/forum/viewtopic.php?t=61165 Scid / Scid vs. PC - ChessBase (.ctg) and Arena (.abk)] by [[Norbert Raimund Leisner]], [[CCC]], August 19, 2016</ref>

=References=
<references />
'''[[Opening Book|Up one Level]]'''

Navigation menu