[][src]Trait play_2048::evaluators::BoardEvaluator

pub trait BoardEvaluator {
    fn evaluate(&self, board: Board) -> f32;
fn gameover_penalty(&self) -> f32; }

Evaluate a Board by mapping it to a number. The higher the number, the better the board state.

Required methods

fn evaluate(&self, board: Board) -> f32

fn gameover_penalty(&self) -> f32

Loading content...

Implementors

impl BoardEvaluator for PrecomputedBoardEvaluator[src]

impl<T> BoardEvaluator for T where
    T: RowColumnEvaluator
[src]

Loading content...