[−][src]Struct play_2048::solver::SolverBuilder
Methods
impl SolverBuilder
[src]
pub fn board_evaluator<T>(self, evaluator: T) -> Self where
T: BoardEvaluator + 'static,
[src]
T: BoardEvaluator + 'static,
Sets the BoardEvaluator
implementation to use in the solver
pub fn proba_4(self, proba_4: f32) -> Self
[src]
Sets the probability weight associated to the draw of a 4 tile
pub fn base_max_search_depth(self, max_search_depth: usize) -> Self
[src]
Sets the max search depth which will be used in the expectiminimax algorithm This value is adjusted at each move to take into account the difficulty of the board. It is thus the max depth which will be used in easy configurations. The effective max depth will be higher for more difficult ones.
pub fn min_branch_proba(self, proba: f32) -> Self
[src]
Sets the minimum probability for a branch to be explored
pub fn build(self) -> Solver
[src]
Trait Implementations
impl Default for SolverBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SolverBuilder
impl !Send for SolverBuilder
impl !Sync for SolverBuilder
impl Unpin for SolverBuilder
impl !UnwindSafe for SolverBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,