RustySantorini / santorini-engines

1 stars 0 forks source link

Create a special type to represent evaluation #35

Open PaMeirelles opened 9 months ago

PaMeirelles commented 9 months ago

It should be an enum with a "real_evaluation" case, and a "mate in x" case, both storing isizes, once it is implemented, we can substitute the old one on the SearchResult:

pub struct SearchResult{
    pub mv: Move,
    pub eval: Option<isize>,
    pub pv: Option<Vec<Move>>,
}

And also substitute the terrible constant in Flop's search:

const BIG_ENOUGH_VALUE:isize = 10000;

When the latter is accomplished, together with the changes to get_best_move made in #34 should be enough to close #25