#[non_exhaustive]pub struct Assessment {
pub action: String,
pub equity: f64,
pub ev: f64,
pub recommended: bool,
}Expand description
One candidate action’s Monte Carlo assessment, for a solver or hint view
Produced by MonteCarloBot::assess: the same rollouts the bot chooses
with, surfaced per candidate instead of collapsed to the single action a
Strategy method returns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.action: StringA rendered label for the action, e.g. "discard 4♠", "knock",
"take 4♠", "pass", "draw stock", "big gin".
equity: f64Mean game-winning equity in [0, 1] — the quantity the bot
maximizes, so candidates rank by it. A candidate the bot eliminated
early averages over the worlds it saw before elimination rather than
the full sample count.
ev: f64Mean signed round points the action wins the deciding seat: positive
for a net gain, negative for a net loss. Averaged over the same
worlds as equity.
recommended: boolWhether this is the bot’s own pick — the move a Strategy method
would return on this view. Because the bot deviates from the greedy
baseline only on a statistically clear gain, this need not be the
highest-equity candidate.
Trait Implementations§
Source§impl Clone for Assessment
impl Clone for Assessment
Source§fn clone(&self) -> Assessment
fn clone(&self) -> Assessment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for Assessment
impl RefUnwindSafe for Assessment
impl Send for Assessment
impl Sync for Assessment
impl Unpin for Assessment
impl UnsafeUnpin for Assessment
impl UnwindSafe for Assessment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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