#[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. "play Q♠" or
"pass Q♠ A♥ K♥".
equity: f64Mean equity in [0, 1] — the quantity the bot maximizes, so
candidates rank by it. A rollout that ends the game pays its
normalized 3-2-1-0 matchpoints (a sole win 1, a sole last 0,
ties averaged); one that does not pays the mid-game margin band.
For a player-facing figure, 4 − 3·equity is the expected
finishing place. A candidate the bot eliminated early averages
over the worlds it saw before elimination rather than the full
sample count.
ev: f64Mean round points this action costs the deciding seat — lower is
better, unlike the gin engine’s signed gain. 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
Auto 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