Merge fn-begruendung (Solver-Begruendung ohne Heuristik-Vermerke)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+12
-12
@@ -106,7 +106,7 @@ fn postflop(spot: &Spot, thresholds: &Thresholds, raw: &Spot, premium: f64, lage
|
||||
// Arm (off by default, RIVER_DBR): the data-biased robust counter-strategy plays the
|
||||
// heads-up river whenever the read is strong enough (`river_subgame::dbr_decision`).
|
||||
if let Some(d) = super::river_subgame::dbr_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Solver-Kern Stufe 1 (off by default, SOLVER_KERN=river): every heads-up cash river from a
|
||||
// solve against the MEASURED NL2 opponent (BETTOR + pool fold curve node-locked, mixed with
|
||||
@@ -114,26 +114,26 @@ fn postflop(spot: &Spot, thresholds: &Thresholds, raw: &Spot, premium: f64, lage
|
||||
// Solver-Kern gegen All-in (off by default, SOLVER_KERN=…+allin=equity): turn or river facing an all-in
|
||||
// that closes the betting: call iff the equity against the range reaches break-even after rake.
|
||||
if let Some(d) = super::solver_kern::allin_decision(raw, equity.share) {
|
||||
return d;
|
||||
return super::vermerk::entschieden(d);
|
||||
}
|
||||
if let Some(d) = super::solver_kern::river_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Solver-Kern Stufe 2/3 (off by default, SOLVER_KERN=turn / flop): the heads-up cash turn from a
|
||||
// turn+river solve, the flop from a flop+turn solve; the villain's first-street nodes locked to
|
||||
// BETTOR and the pool fold curve of that street.
|
||||
if let Some(d) = super::solver_kern::turn_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Stage A, solver everywhere (off by default, SOLVER_RIVER): the heads-up river decided
|
||||
// by an equilibrium solve over real combos, ranges from the line (`engine::river_spieler`).
|
||||
if let Some(d) = super::river_spieler::river_spieler_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Multiway river (off by default, SOLVER_RIVER3): 3- and 4-handed rivers decided by
|
||||
// Monte-Carlo CFR over real combos (`engine::river3_spieler`).
|
||||
if let Some(d) = super::river3_spieler::river3_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Arm (off by default, TURN_SPIEL=grund): the turn+river game with ranges from the
|
||||
// blueprint (`engine::turn_game`); `None` while the switch is off. Stage B supersedes it
|
||||
@@ -147,30 +147,30 @@ fn postflop(spot: &Spot, thresholds: &Thresholds, raw: &Spot, premium: f64, lage
|
||||
super::vermerk::notiere(format!("TURN_SPIEL_FOLD: Turnspiel wollte folden ({}) -> Heuristik bleibt", d.reason));
|
||||
return floored;
|
||||
}
|
||||
return super::vermerk::ersetzt(&floored, d.with_equity(equity.share));
|
||||
return super::vermerk::ersetzt(&floored, super::vermerk::entschieden(d).with_equity(equity.share));
|
||||
}
|
||||
// Stage B, solver everywhere (off by default, SOLVER_TURN): every heads-up turn.
|
||||
if let Some(d) = super::turn_game::turn_solver_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Multiway turn and flop (off by default, SOLVER_TURN3 / SOLVER_FLOP3): 3- and 4-handed
|
||||
// spots decided by Monte-Carlo CFR over the remaining streets (`engine::multi3_spieler`).
|
||||
if let Some(d) = super::multi3_spieler::multi3_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Stage C, solver everywhere (off by default, SOLVER_FLOP): every heads-up flop.
|
||||
if let Some(d) = super::flop_spieler::flop_spieler_decision(raw) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// Rückfall (off by default, KERN_RUECKFALL=baum): no solver path answered (time, emergency brake, minimum
|
||||
// iterations, spot outside the slice): a tiny single-street solve answers instead of the rule of thumb.
|
||||
if let Some(d) = super::rueckfall::entscheide(spot, &lists, lage) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
// FAUSTREGEL=aus (off by default): the rule of thumb is unreachable postflop; the fallback answers always.
|
||||
if super::rueckfall::ohne_faustregel() {
|
||||
if let Some(d) = super::rueckfall::entscheide_immer(spot, &lists, lage) {
|
||||
return d.with_equity(equity.share);
|
||||
return super::vermerk::entschieden(d).with_equity(equity.share);
|
||||
}
|
||||
}
|
||||
// Bounded exploitation of the non-station reads (`read_exploit`, switch GEGNER_BREIT, off).
|
||||
|
||||
@@ -32,6 +32,18 @@ pub fn notiere(text: impl Into<String>) {
|
||||
});
|
||||
}
|
||||
|
||||
/// A solver / fallback answered: the heuristic option notes collected so far did not decide and would
|
||||
/// contradict the shown action (`| Call-Schwelle ... -> fold` under a solver CALL), so the frame is
|
||||
/// emptied. Returns `d` for chaining; notes noted afterwards (vetoes, reads) stay.
|
||||
pub fn entschieden(d: Decision) -> Decision {
|
||||
RAHMEN.with(|r| {
|
||||
if let Some(top) = r.borrow_mut().last_mut() {
|
||||
top.clear();
|
||||
}
|
||||
});
|
||||
d
|
||||
}
|
||||
|
||||
/// Closes the innermost frame and appends its notes to `decision.reason`.
|
||||
pub fn abschliessen(decision: Decision) -> Decision {
|
||||
let notes = RAHMEN.with(|r| r.borrow_mut().pop()).unwrap_or_default();
|
||||
|
||||
Reference in New Issue
Block a user