BETTOR_TOPF, WETTKURVE_TOPF: Tabellen je Topftyp (SRP / 3B+) mit n-Rueckfall auf den Pool; dreibet_band-Test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,7 +105,7 @@ pub(crate) fn linie_sperren(pfad: &[(usize, usize)], me: usize, spieler: &dyn Fn
|
||||
fn pool_zeile(spot: &Spot, who: &Villain, acts: &[Act], q: &[f64], ratio: f64, allin_ab: f64, strasse: Street, linie: Option<usize>) -> Option<Vec<f64>> {
|
||||
let f = match linie {
|
||||
None => crate::exploit::wett_kurve::pool_fold(spot, strasse, ratio, allin_ab, who.profile.as_ref())?,
|
||||
Some(l) => crate::exploit::wett_kurve::pool_fold_linie(strasse, l, ratio, allin_ab, who.profile.as_ref())?,
|
||||
Some(l) => crate::exploit::wett_kurve::pool_fold_linie_t(crate::exploit::wett_kurve::topf(spot), strasse, l, ratio, allin_ab, who.profile.as_ref())?,
|
||||
};
|
||||
let allin = ratio >= allin_ab - 1e-9;
|
||||
let r = if allin { 0.0 } else { crate::engine::solver_kern::raise_pool(ratio) };
|
||||
@@ -265,7 +265,7 @@ pub(crate) fn pool_sperren<'a>(
|
||||
if stuetz {
|
||||
let n = match linie {
|
||||
None => crate::exploit::wett_kurve::pool_fold_n(spot, strasse, ratio, allin_ab),
|
||||
Some(l) => crate::exploit::wett_kurve::pool_fold_linie_n(strasse, l, ratio, allin_ab),
|
||||
Some(l) => crate::exploit::wett_kurve::pool_fold_linie_n_t(crate::exploit::wett_kurve::topf(spot), strasse, l, ratio, allin_ab),
|
||||
};
|
||||
ns.extend(n.map(|n| (g.at, n)));
|
||||
}
|
||||
@@ -292,7 +292,7 @@ pub(crate) fn pool_sperren<'a>(
|
||||
let schl = (1u8, player, g.slot + g.st * 64, hash(&schl));
|
||||
let rows = match gecacht.get(&schl) {
|
||||
Some(x) => Some(x.clone()),
|
||||
None => crate::engine::solver_kern::offen_zeile(strasse, pfa, before, pct, acts, pot_now, cap_str).map(|v| {
|
||||
None => crate::engine::solver_kern::offen_zeile(crate::exploit::bettor::topf(spot), strasse, pfa, before, pct, acts, pot_now, cap_str).map(|v| {
|
||||
let a = Arc::new(v);
|
||||
gecacht.insert(schl, a.clone());
|
||||
a
|
||||
@@ -300,7 +300,7 @@ pub(crate) fn pool_sperren<'a>(
|
||||
};
|
||||
if let Some(rows) = rows {
|
||||
if stuetz {
|
||||
ns.extend(crate::engine::solver_kern::offen_n(strasse, pfa, before, pct).map(|n| (g.at, n)));
|
||||
ns.extend(crate::engine::solver_kern::offen_n(crate::exploit::bettor::topf(spot), strasse, pfa, before, pct).map(|n| (g.at, n)));
|
||||
}
|
||||
frei.push((g.at, rows));
|
||||
}
|
||||
|
||||
@@ -449,11 +449,11 @@ fn stuetz_vermerk(l: &Locks) -> String {
|
||||
|
||||
/// Beobachtungen hinter den BETTOR-Zeilen eines offenen Knotens: Mittel der Klassen `x k m g u`, gewichtet mit ihrer Masse
|
||||
/// im Brett-Perzentil der Gegnerkombos. `None`: kein Beiblatt `<BETTOR>.n`.
|
||||
pub(crate) fn offen_n(strasse: Street, pfa: bool, before: bool, pct: &[f64]) -> Option<f64> {
|
||||
pub(crate) fn offen_n(topf: crate::exploit::bettor::Topf, strasse: Street, pfa: bool, before: bool, pct: &[f64]) -> Option<f64> {
|
||||
let (mut sum, mut mass) = (0.0, 0.0);
|
||||
for a in ['x', 'k', 'm', 'g', 'u'] {
|
||||
let Some(lk) = crate::exploit::bettor::raw_likelihood(strasse, pfa, before, a) else { continue };
|
||||
let n = crate::exploit::bettor::raw_n(strasse, pfa, before, a)?;
|
||||
let Some(lk) = crate::exploit::bettor::raw_likelihood_t(topf, strasse, pfa, before, a) else { continue };
|
||||
let n = crate::exploit::bettor::raw_n_t(topf, strasse, pfa, before, a)?;
|
||||
let m: f64 = pct.iter().map(|p| crate::exploit::bettor::accept(&lk, *p)).sum();
|
||||
sum += n * m;
|
||||
mass += m;
|
||||
@@ -467,14 +467,14 @@ const FOLD_GG_RAISE_N: f64 = 158_039.0 / 5.0;
|
||||
|
||||
/// Die BETTOR-Zeile des Gegners an einem offenen Knoten (Check + Einsätze), je Kombo eine Zeile über `acts`.
|
||||
fn bettor_rows(m: &Modell, acts: &[Act], pot_now: f64, cap: f64) -> Option<Vec<f64>> {
|
||||
offen_zeile(m.strasse, m.pfa, m.before, &m.pct, acts, pot_now, cap)
|
||||
offen_zeile(crate::exploit::bettor::topf(m.spot), m.strasse, m.pfa, m.before, &m.pct, acts, pot_now, cap)
|
||||
}
|
||||
|
||||
/// `bettor_rows` ohne den Heads-up-`Modell`: auch die Mehrweg-Solver legen ihre Gegner an offenen Knoten so fest
|
||||
/// (`SOLVER3_OFFEN`). `pct` = Brett-Perzentil je Kombo (`brett_perzentil`), `cap` = Obergrenze der Straße.
|
||||
pub(crate) fn offen_zeile(strasse: Street, pfa: bool, before: bool, pct: &[f64], acts: &[Act], pot_now: f64, cap: f64) -> Option<Vec<f64>> {
|
||||
pub(crate) fn offen_zeile(topf: crate::exploit::bettor::Topf, strasse: Street, pfa: bool, before: bool, pct: &[f64], acts: &[Act], pot_now: f64, cap: f64) -> Option<Vec<f64>> {
|
||||
const KL: [char; 5] = ['x', 'k', 'm', 'g', 'u'];
|
||||
let raw: Vec<Option<crate::exploit::bettor::Likelihood>> = KL.iter().map(|a| crate::exploit::bettor::raw_likelihood(strasse, pfa, before, *a)).collect();
|
||||
let raw: Vec<Option<crate::exploit::bettor::Likelihood>> = KL.iter().map(|a| crate::exploit::bettor::raw_likelihood_t(topf, strasse, pfa, before, *a)).collect();
|
||||
raw[0]?;
|
||||
// Klasse je Aktion (0 = Check, 1..4 = k..u). Ein All-in liest sich eine Klasse stärker als seine Größe: gecallte
|
||||
// NL2-River-All-ins zeigen unter 1,2 Pot so oft eine Hand ab Perzentil 0,9 wie normale Einsätze von 0,8–1,2 Pot
|
||||
@@ -925,7 +925,7 @@ fn lege_fest(solver: &mut TrSolver, m: &Modell, node: usize, c: [f64; 2], incomi
|
||||
Some(rows)
|
||||
} else if !facing {
|
||||
if stuetzung().is_some() {
|
||||
n_stuetz = offen_n(m.strasse, m.pfa, m.before, &m.pct);
|
||||
n_stuetz = offen_n(crate::exploit::bettor::topf(m.spot), m.strasse, m.pfa, m.before, &m.pct);
|
||||
}
|
||||
bettor_rows(m, acts, pot_now, m.stack - c[1])
|
||||
} else if matches!(incoming, Some(Act::Bet(_))) {
|
||||
|
||||
Reference in New Issue
Block a user