pub struct AtaxxTileHeuristic {
pub tile_factor: i32,
pub surface_factor: i32,
}Fields§
§tile_factor: i32§surface_factor: i32Implementations§
Trait Implementations§
Source§impl Debug for AtaxxTileHeuristic
impl Debug for AtaxxTileHeuristic
Source§impl Default for AtaxxTileHeuristic
impl Default for AtaxxTileHeuristic
Source§impl Heuristic<AtaxxBoard> for AtaxxTileHeuristic
impl Heuristic<AtaxxBoard> for AtaxxTileHeuristic
Source§fn value(&self, board: &AtaxxBoard, length: u32) -> Self::V
fn value(&self, board: &AtaxxBoard, length: u32) -> Self::V
Return the heuristic value for the given board from the the next player POV.
depth is the current depth, the number of moves played since the board the search was started on.
Can be used to prefer faster wins or slower losses.Auto Trait Implementations§
impl Freeze for AtaxxTileHeuristic
impl RefUnwindSafe for AtaxxTileHeuristic
impl Send for AtaxxTileHeuristic
impl Sync for AtaxxTileHeuristic
impl Unpin for AtaxxTileHeuristic
impl UnwindSafe for AtaxxTileHeuristic
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more