Enum shakmaty_syzygy::Wdl [−][src]
#[repr(i8)]
pub enum Wdl {
Loss,
BlessedLoss,
Draw,
CursedWin,
Win,
}
Expand description
WDL50. 5-valued evaluation of a position in the context of the 50-move drawing rule.
Variants
Unconditional loss for the side to move.
Loss that can be saved by the 50-move rule.
Unconditional draw.
Win that can be frustrated by the 50-move rule.
Unconditional win.
Implementations
Converts outcome
to a Wdl
from the given point of view.
Converts dtz
to a Wdl
.
Typically the result would be ambiguous for absolute DTZ values 100. This conversion assumes that such values were given immediately after a capture or pawn move, in which case the outcome is an unconditional win or loss.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Wdl
impl UnwindSafe for Wdl
Blanket Implementations
Mutably borrows from an owned value. Read more