Changes

Jump to: navigation, search

Endgame Tablebases

57 bytes added, 00:14, 18 February 2021
Data
=Data=
An EGTB is a set of endgames. Each endgame is a set of records about positions’ information record. All involving positions in an endgame must have the same material. Each position record associates with an integer number which informs how far that position is from mating/being mated or converting (depends on the type of its metrics).
Based on values those integer numbers can answer directly two purposes questions of the EGTB: for a given position it is a draw or a win/loss position and how far it is from mating/being mated or converting. From those numbers, the best move of a position can be indirectly calculated as below part mentions.
Theoretically, we can add more information to each position’s record. However, due to large numbers of involving positions, any additional information may make the whole EGTB becomes significantly larger. None Thus so far none of the popular EGTBs store any extra information for each item thus and each record actually contains that integer only.
All records of an endgame are simply organized as two arrays (one array for one side/color). In other words, each item in those arrays is an integer and its index on an array is mapped to a unique position. For a given chess position, we will calculate its index then access its data record/integer via that index without searching.
==EGTB Endgame files== Those arrays of an endgame can be stored in files. Typically each array is stored in one file. However, sometimes they can be combined into one larger file or device splitted into more files to be easy to easier copy or manage. Those files may be in the form of none or compressed. If they are compressed, they are typically divided and compressed by small blocks thus they don't need to load and decompress all data to extract data of just a few positionsposition.
==In memory==

Navigation menu