Struct backgammon_simd::game::Game
source · pub struct Game {
pub board: Board,
pub state: GameState,
}Fields§
§board: Board§state: GameStateImplementations§
source§impl Game
impl Game
pub fn new(rng: &mut impl Rng) -> Self
pub fn next_moves<Generator: MoveGen>(&self) -> Vec<Board>
pub fn make_move_unchecked(&mut self, rng: &mut impl Rng, new_board: Board)
pub fn skip_move_by_necessity(&mut self, rng: &mut impl Rng)
pub fn play<'a, R: Rng, White: MoveDecision, Black: MoveDecision>( &'a mut self, rng: R, white: &'a mut White, black: &'a mut Black ) -> GamePlay<'a, R, White, Black> ⓘ
pub fn play_self<'a, R: Rng, White: MoveDecision>( &'a mut self, rng: R, white: &'a mut White ) -> GamePlay<'a, R, White> ⓘ
pub fn is_finished(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnwindSafe for Game
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more