Trait shakmaty_syzygy::Syzygy
[−]
[src]
pub trait Syzygy { const TBW_EXTENSION: &'static str; const TBZ_EXTENSION: &'static str; const PAWNLESS_TBW_EXTENSION: &'static str; const PAWNLESS_TBZ_EXTENSION: &'static str; const WDL_MAGIC: [u8; 4]; const DTZ_MAGIC: [u8; 4]; const PAWNLESS_WDL_MAGIC: [u8; 4]; const PAWNLESS_DTZ_MAGIC: [u8; 4]; const ONE_KING: bool; const CONNECTED_KINGS: bool; const CAPTURES_COMPULSORY: bool; }
A chess variant with Syzygy support.
Associated Constants
const TBW_EXTENSION: &'static str
Extension of WDL table files, e.g. rtbw
.
const TBZ_EXTENSION: &'static str
Extension of DTZ table files, e.g. rtbz
.
const PAWNLESS_TBW_EXTENSION: &'static str
Alternative extension of WDL table files.
const PAWNLESS_TBZ_EXTENSION: &'static str
Alternative extension of DTZ table files.
const WDL_MAGIC: [u8; 4]
Magic initial bytes of a WDL table.
const DTZ_MAGIC: [u8; 4]
Magic initial bytes of a DTZ table.
const PAWNLESS_WDL_MAGIC: [u8; 4]
Alternative WDL magic.
const PAWNLESS_DTZ_MAGIC: [u8; 4]
Alternative DTZ magic.
const ONE_KING: bool
Whether both players will have exactly one king unless the game is over.
const CONNECTED_KINGS: bool
Wether kings are allowed to be on adjacent squares.
const CAPTURES_COMPULSORY: bool
Whether captures are compulsory.