Struct shakmaty_syzygy::Tablebases [] [src]

pub struct Tablebases<S: Position + Clone + Syzygy> { /* fields omitted */ }

A collection of tables.

Methods

impl<S: Position + Clone + Syzygy> Tablebases<S>
[src]

[src]

Create an empty collection of tables.

[src]

Scan a directory for relevant tables.

Tables are selected by filename, e.g. KQvKP.rtbz. The files are not actually opened. This happens lazily when probing.

Errors

Returns an error result when:

  • The path does not exist.
  • path is not a directory.
  • The process lacks permissions to list the directory.

[src]

Probe tables for the Wdl value of a position.

Errors

See SyzygyError for possible error conditions.

Panics

Corrupted tables may or may not cause panics, especially due to integer overflow in debug mode. Ideally a future version will not panic in such cases.

[src]

Probe tables for the Dtz value of a position.

Errors

See SyzygyError for possible error conditions.

Panics

Corrupted tables may or may not cause panics, especially due to integer overflow in debug mode. Ideally a future version will not panic in such cases.

Trait Implementations

impl<S: Debug + Position + Clone + Syzygy> Debug for Tablebases<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: Position + Clone + Syzygy> Default for Tablebases<S>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<S> Send for Tablebases<S> where
    S: Send

impl<S> Sync for Tablebases<S> where
    S: Sync