[][src]Struct play_2048::solver::SolverBuilder

pub struct SolverBuilder { /* fields omitted */ }

Methods

impl SolverBuilder[src]

pub fn board_evaluator<T>(self, evaluator: T) -> Self where
    T: BoardEvaluator + 'static, 
[src]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,