Struct retroboard::RetroBoard [−][src]
pub struct RetroBoard { /* fields omitted */ }Expand description
A shakmaty::Board where Unmove are played and all legal Unmove can be generated.
At every time the position must be legal. This does include unreachable positions, like this position.
Implementations
Returns a new RetroBoard with empty RetroPocket for both colors.
Returns a new RetroBoard with defined RetroPocket, see RetroPocket::from_str documentation
to see which string format is expected.
Examples
use retroboard::RetroBoard;
let r = RetroBoard::new("3k4/8/8/8/8/8/8/2RKR3 w - - 0 1", "PNQ1", "7BBBB").unwrap();Generate legal unmoves, which are all the pseudo legal unmoves which do not put the opponent’s king in check. If the opponent’s king is in check at the beginning of our turn, the only legal unmoves are those which stop it from being in check.
Trait Implementations
Consider valid positions with too many/impossible checkers (unreachable positions)
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RetroBoard
impl Send for RetroBoard
impl Sync for RetroBoard
impl Unpin for RetroBoard
impl UnwindSafe for RetroBoard
Blanket Implementations
Mutably borrows from an owned value. Read more