diff --git a/docs/notizen/PLAN-weltklasse.md b/docs/notizen/PLAN-weltklasse.md index f65a17a2..6cbde0ea 100644 --- a/docs/notizen/PLAN-weltklasse.md +++ b/docs/notizen/PLAN-weltklasse.md @@ -288,6 +288,8 @@ Zeit-Tells (≈ 1 bb/100), Turnier-Extras (Bubble-Versicherung, Rebuy, K-Poker-K **Stand 16.11. abends (Posten 5):** S2 hat das volle Tor bestanden: `POSTERIOR=bluff,schutz,beleg` mit `GEGNER_LINIEN` (Bluffanteil je Linie aus PHH/HandHQ + NL2, gedaechtnis-voll). Ergebnisse: Leiter +6,00 ±1,18, pool-nl2-echt +5,32, pool-phh +4,53, pool-nl2 +7,60, Lerner +3,47, Micro +0,21, kein Verlierer, LBR blind bitgleich. Branch claude/fortsetzung; **live seit 16.11. abends** (Merge 80a7bc46, Orchestrator; Referenzlauf referenz-s2 eingereiht). S1 (fold, anteil) war neutral und ist nicht im Tor. Offen sind S3 (Typ-Mischung, KL-λ) und S4 (EV über den Posterior). +**Stand 16.11. spät (Flussleck, Posten 1):** `WERT_BRETT=river` (River-Boden der Wett-Range als Stärke auf dem Brett statt Handklasse, erster Schritt von #1) hat das volle Tor bestanden (Leiter +2,42, Micro +4,47, 6-max +1,36, kein Verlierer) und behebt den Straßen-Call auf Vierflush. Der AJ-Jam (−108 BB) bleibt Ziel: "nur Besseres callt" verliert in jeder getesteten Form gegen Stations; nötig ist ein Read, der Folder von Stations trennt (Posten 2/S3). Details in STAND. + Nach Geld sortiert. Gemessen sind nur D4 (River ~11,5, Turn ~8,5, Preflop ~1,7 bb/100 Entscheidungsverlust) und die Live-Verluste, der Rest ist geschätzt. | # | Stelle | heute | Ersatz | Session | diff --git a/docs/notizen/STAND-weltklasse.md b/docs/notizen/STAND-weltklasse.md index 3be1ff53..649ba440 100644 --- a/docs/notizen/STAND-weltklasse.md +++ b/docs/notizen/STAND-weltklasse.md @@ -362,6 +362,7 @@ Zweig `claude/gedaechtnis-pokerintel` (Worktree gedaechtnis-voll), nicht im Live | POSTERIOR S2 `schutz` (84aaff37; Orchestrator: Nemesis-Lücke schließen wie station_trust) | Probe `probe_bluffer` (Live-Draht): Aggression trennt niemanden (alle ≈ 0,35, Vertrauen 0,06); **raiseToBet** trennt: nemesis-1 0,39, nemesis-2 0,42 gg. maniac 0,23, pool-phh 0,18, reg 0,15, nit 0,14, gto 0,08 (Anker ungelesen 0,30). Maniac (River-Luft echt 0,33) über vpip 0,56. Schutz: S2 zum Ausgangswert zurück mit w = max(Rampe raiseToBet 0,30→0,38, Rampe vpip 0,45→0,55); Ungelesene behalten den Linien-Prior. Pilot (alle Straßen, gg. aus): **Mittel +3,05 ±2,48, kein Verlierer** (nemesis-1 −1,02 ±4,64, nemesis-2 −0,02, maniac −2,24 ±3,79, pool-nl2 +9,98, reg +9,82, nit +4,60, gto +6,49), pool-nl2-echt +2,44 ±4,33, **pool-phh +4,99 ±3,06 besser**. Live-Hand 178593300919: Turn 0,40 → 0,28 Fold, River 0,35 → 0,20 Fold. Volles Tor läuft (`messung/posterior/tor/`, ps-*) | – | | POSTERIOR S2 Tor 1 `bluff,schutz` (je gg. eigenes aus, `messung/posterior/tor/`) | Leiter +6,43 ±1,23 ohne Verlierer, pool-nl2 +8,06, pool-nl2-echt +5,52 ±3,04, pool-phh +4,48 ±2,04, Lerner +3,36 ±1,88, LBR blind +38,5 ±78 n.s.; **Micro nemesis-2@blind −36,04 ±10,71 Verlierer** (ohne Read greift der Schutz nicht, Ungelesene bekamen den Linien-Prior). Nachbau `beleg` (a52c943b): S2 nur so weit raiseToBet unter dem Anker liegt (0,30 → 0,25); Ungelesene behalten den Ausgangswert | – | | **POSTERIOR S2 volles Tor bestanden** `POSTERIOR=bluff,schutz,beleg` + `GEGNER_LINIEN` (Tor 2, ps2-*) | **Leiter +6,00 ±1,18, kein Verlierer** (nemesis-3 +14,59, 3bet-folder +15,74, tanker +14,95, wert-sizer +14,92, reg +8,78, gto +7,73, nit +6,33; nemesis-1/2, maniac neutral), **Micro +0,21 ±0,33** ohne Verlierer, **pool-nl2 +7,60 ±4,20, pool-nl2-echt +5,32 ±3,03, pool-phh +4,53 ±2,04** (alle besser), **Lerner +3,47 ±1,87** ohne Verlierer, **LBR blind bitgleich** (0,0; ohne Read ist S2 aus). Pflichtfall Live-Hand 178593300919: Turn 0,40 → 0,28 Fold, River 0,35 → 0,20 Fold (raiseToBet 2/10 = Beleg). BEKANNTE_SCHALTER um POSTERIOR, GEGNER_LINIEN ergänzt (GEGNER_LINIEN ohne Marke). Übergabe an den Orchestrator | – | +| **Flussleck: zwei River-Fehler aus dem Live-Lauf 16.11. abends** (Auftrag Orchestrator, Branch claude/engine-roentgen-c4dd78; Tafel `messung/flussleck/TOR.md`) | **Kandidat `WERT_BRETT=river`: volles Tor bestanden.** Ursache 178870300411 (7dJd Straße auf 9c9hTc8c2c): der River-Boden der Wett-Range ist eine Handklasse (TopPairGoodKicker), auf einem gepaarten Vierflush-Brett fast nichts. Neu: Boden als Stärke-Perzentil (Anteil der Klasse über 160 Zufallsbretter, auf dem echten Brett die gleich große Spitze, `exploit/brett_floor.rs`); Equity 0,35 → 0,16, FOLD. Gg. ps2-*-an: Leiter +2,42 ±0,72, Micro +4,47 ±0,98, pool-nl2 +1,95, pool-nl2-echt +0,77 ±0,99, pool-phh +0,30, Lerner +2,76, je kein Verlierer, LBR blind nicht schlechter, **6-max +1,36 ±0,67**. Pflichtfälle 11/16 (live 10), kein alter verloren. **178854100443 (AJ-Jam 2,4x Pot) bleibt Ziel:** Ursache ist der Call-Anteil des All-in (REST_STACK fügt ihn außerhalb `candidates` hinzu, `share_at` fällt auf die ganze Range zurück). Jede getestete Korrektur, die nur Besseres callen lässt, verliert: All-in simuliert (station@blind −6,79), stärkste 1−Fold am River (−20,06), beides nur Mehrweg (6-max −10,54). Gegen die Sim-Gegner zahlt der Value-Jam; der Fall braucht einen Gegner-Read, der Folder von Stations trennt (Sitz 2 mit foldToBet 0,93 bei 22 Händen klassiert als CallingStation) | – | ## 19. Nachtrag 16.11.: Linien-Audit pool-nl2, neue Persona pool-nl2-echt (Auftrag Orchestrator, Vorrang) | Was | Ergebnis | diff --git a/entscheiden/decide.py b/entscheiden/decide.py index a7aa9459..7c116d4a 100644 --- a/entscheiden/decide.py +++ b/entscheiden/decide.py @@ -44,6 +44,7 @@ BEKANNTE_SCHALTER = ("MDF_UNREAD", "RAISE_DRAWS", "RAISE_PRIOR", "TURN_SPIEL", " "TURN_RAISE_BLUFF", "TURN_RAISE_NUR", "STATION_POSTFLOP", "POKERINTEL", "REST_STACK", "FORTSETZUNG", "POOL_PRIOR", "POSTERIOR", "GEGNER_LINIEN", "PREFLOP_VOLL", "PREFLOP_OHNE_ANTE", "PREFLOP_MIKRO", "PREFLOP_VOLL_TEILE", + "WERT_BRETT", "TISCHWAHL", "TISCHWAHL_AB", "SITZWAHL") # Schalter des LAEUFERS (betrieb/runner.py liest sie aus seiner eigenen Umgebung, nicht der Kern): aus der # Datei auch in os.environ, sonst schaltete ein Eintrag hier nichts. Eine ausdrueckliche Umgebung geht vor. diff --git a/messung/flussleck/TOR.md b/messung/flussleck/TOR.md new file mode 100644 index 00000000..8151d475 --- /dev/null +++ b/messung/flussleck/TOR.md @@ -0,0 +1,19 @@ +# Flussleck: Tor 16.11. spät + +Auftrag Orchestrator: zwei River-Fehler aus dem Live-Lauf 16.11. abends (178854100443 AcJd-Jam, 178870300411 Straße auf Vierflush). +Basis überall: Live-Stand mit S2 (`ps2-*-an` aus `exploit-live-ec8091/messung/posterior/tor/`, bitgleich zu diesem Binary mit Schaltern aus, 4 Leiterzellen geprüft). +6-max: eigenes Paar `tor/sechs/fl2-sechs-basis` gegen Arme, 20000 Deals, micro, memory, Saat 6. + +| Arm | Ergebnis | +|---|---| +| `RUF_ALLIN=1;RUF_OBEN=river;WERT_BRETT=river` (fl-*) | **Verlierer**: Leiter station −17,88 (Frühstopp), Micro −5,75 ±1,72 (station@blind −28,73, micro-passiv@blind −10,75), Lerner −1,54 ±1,32 (3 Wechsler). Pools neutral | +| Isoliert `RUF_ALLIN=1` | station −4,56, station@blind −6,79, micro-passiv@blind −5,55: Verlierer | +| Isoliert `RUF_ALLIN=1;RUF_OBEN=river` | −20,06 ±2,73: Verlierer | +| Isoliert `WERT_BRETT=river` | micro-passiv@blind +5,44 ±3,19, sonst bitgleich: Gewinner | +| `RUF_ALLIN=mehr;RUF_OBEN=mehr;WERT_BRETT=river` (fl2-*, HU = WERT_BRETT allein, 11/11 Dateien bitgleich) | Leiter +2,42 ±0,72, Micro +4,47 ±0,98, pool-nl2 +1,95 ±0,99, pool-nl2-echt +0,77 ±0,99, pool-phh +0,30 ±0,38, Lerner +2,76 ±0,81, je kein Verlierer; LBR blind nicht schlechter (−3,19 [−25,9, +19,5], Frühstopp) | +| 6-max, alle drei | −9,17 ±2,46: Verlierer (River) | +| 6-max, `RUF_*=mehr` | −10,54 ±2,36: Verlierer | +| **6-max, `WERT_BRETT=river`** | **+1,36 ±0,67, besser** | + +**Kandidat: `WERT_BRETT=river` allein.** Volles Tor bestanden, Pflichtfälle bestanden (11/16 statt 10/16, 178870300411 behoben, kein alter verloren). +178854100443 (AJ-Jam) bleibt Ziel: jede getestete Form "nur Besseres callt" (Jam-Range simuliert, stärkste 1−Fold) verliert gegen Stations und im 6-max. RUF_ALLIN/RUF_OBEN sind wieder aus dem Code. diff --git a/messung/flussleck/pflicht.txt b/messung/flussleck/pflicht.txt new file mode 100644 index 00000000..c33e4ae9 --- /dev/null +++ b/messung/flussleck/pflicht.txt @@ -0,0 +1,20 @@ +# 16.11. spaet flussleck: Pflichtfaelle, Live-Kern /d/Projects/pokerfreak/.claude/worktrees/engine-lecks-angreifen-de7b88 (5cdfbdbf), Kandidat = dieser Zweig (nur WERT_BRETT), Schalter betrieb/kern_schalter.txt +PFLICHTFÄLLE Kandidat WERT_BRETT=river: BESTANDEN + Soll getroffen: Live 10 von 16, Kandidat 11 von 16; Ziele (live noch falsch) behoben: 1 von 6 + 178593300919 TURN Soll FOLD (tol. CALL) live FOLD -> FOLD Soll 9d9h | 4h7d8s Jc | TURN toCall 0.66 Pot 1.32 + 178593300919 RIVER Soll FOLD live FOLD -> FOLD Soll 9d9h | 4h7d8s Jc 7h | RIVER toCall 0.89 Pot 3.0 + 177599200076 RIVER Soll FOLD live FOLD -> FOLD Soll 7cTh | 4c2d7s 6h Js | RIVER toCall 0.39 Pot 1.88 + 177536500401 RIVER Soll FOLD live FOLD -> FOLD Soll 6c6d | 7dTdJc Qh 8s | RIVER toCall 0.2 Pot 0.61 + 177536500403 RIVER Soll FOLD live FOLD -> FOLD Soll 7c7d | Ts3dKc 4s 2h | RIVER toCall 0.38 Pot 1.13 + 177536500421 RIVER Soll FOLD live FOLD -> FOLD Soll 8h6c | JdKd2h 8d As | RIVER toCall 0.12 Pot 0.35 + 177613400152 RIVER Soll FOLD live FOLD -> FOLD Soll Qs4h | JdKhQc 7d Ah | RIVER toCall 0.19 Pot 0.43 + 177619300146 RIVER Soll FOLD live FOLD -> FOLD Soll Ad7s | 7dQcTs 8h Jh | RIVER toCall 1.1 Pot 2.02 + 177600300575 RIVER Soll FOLD live FOLD -> FOLD Soll Tc6c | Ts9sKs 3s 2h | RIVER toCall 0.4 Pot 0.75 + 177599200076 TURN Soll FOLD live CALL -> CALL verfehlt Soll (wie Live) 7cTh | 4c2d7s 6h | TURN toCall 0.37 Pot 1.12 + 177718400199 TURN Soll FOLD live CALL -> CALL verfehlt Soll (wie Live) TdTs | Jh5hKh 8d | TURN toCall 0.41 Pot 0.96 + 177113201687 FLOP Soll FOLD/CALL live CALL -> CALL Soll 7h8d | 8h9dJc | FLOP toCall 0.16 Pot 0.37 + 177087901694 FLOP Soll FOLD/CALL live RAISE -> RAISE verfehlt Soll (wie Live) QsAd | Qh8c9c | FLOP toCall 0.31 Pot 0.62 + 177862900036 TURN Soll FOLD/CALL live RAISE -> RAISE verfehlt Soll (wie Live) 5hAd | Qc7dAc 8s | TURN toCall 0.3 Pot 0.6 + 178854100443 RIVER Soll CHECK live RAISE -> RAISE verfehlt Soll (wie Live) JdAc | 6cAh2c Kd Js | RIVER toCall 0.0 Pot 0.79 + 178870300411 RIVER Soll FOLD live CALL -> FOLD behoben 7dJd | 9c9hTc 8c 2c | RIVER toCall 0.28 Pot 0.66 +exit 0 diff --git a/src/engine/range_filter.rs b/src/engine/range_filter.rs index cc1ecaa3..57030ecc 100644 --- a/src/engine/range_filter.rs +++ b/src/engine/range_filter.rs @@ -35,8 +35,10 @@ fn above(k: &Key, cut: &Key) -> bool { /// Does `hand` meet the floor of `c` on its part of the board (and, with a strength cut from /// `top_share`, lie at or above it)? `None` when unreadable. fn meets(rules: &Rules, c: &Continuation, hand: &[Card], board: &[Card], step: usize, cut: Option<&Key>) -> Option { - glance(rules, hand, &board[..c.board_len.min(board.len())]).ok().map(|(made, draw)| { - (made >= c.min_made || (c.draws_continue && draw >= c.min_draw)) + let seen = &board[..c.board_len.min(board.len())]; + glance(rules, hand, seen).ok().map(|(made, draw)| { + let strong = c.min_strength.is_none_or(|cut| crate::hand::showdown::judge(rules, hand, seen).is_ok_and(|s| s >= cut)); + ((made >= c.min_made && strong) || (c.draws_continue && draw >= c.min_draw)) && (cut.is_none_or(|cut| key(rules, c, hand, board, step).is_some_and(|k| above(&k, cut))) || (draws_free() && made < c.min_made && c.draws_continue && draw >= c.min_draw)) }) diff --git a/src/exploit/brett_floor.rs b/src/exploit/brett_floor.rs new file mode 100644 index 00000000..9c5a51b6 --- /dev/null +++ b/src/exploit/brett_floor.rs @@ -0,0 +1,168 @@ +//! Board-relative river floor (`WERT_BRETT=river`): a river bet claims the same RELATIVE strength on +//! every board. +//! +//! The continuation floors of `street_continuation` are absolute made classes (a river bet keeps top +//! pair good kicker or better). On a dry board that is roughly the top fifth of all holdings; on a +//! paired four-flush board every pocket pair and every hand with a board rank "is" two pair or trips, +//! and every club is a flush, so the same class admits most of the deck and a straight looks like 56 % +//! against a passive river bettor (live 16.11. hand 178870300411, J-high straight on 9c9hTc8c2c). +//! +//! The floor is translated through its REFERENCE SHARE: the average share of all two-card holdings at +//! or above that class over random river boards. On the actual board the floor rises to the weakest +//! class whose share of all holdings does not exceed the reference share. On a dry board nothing +//! moves; on a flush or paired board the floor climbs to flushes and full houses. Hold'em only. + +use crate::card::{deck, Card}; +use crate::hand::showdown::judge; +use crate::hand::strength::Strength; +use crate::read::glance::glance; +use crate::read::made::Made; +use crate::rng::Rng; +use crate::variant::rules::Rules; + +/// Every class, weakest first (`Made` is ordered). +const ALL: [Made; 16] = [ + Made::Air, + Made::BoardOnly, + Made::Underpair, + Made::BottomPair, + Made::MiddlePair, + Made::TopPairWeakKicker, + Made::TopPairGoodKicker, + Made::Overpair, + Made::TwoPair, + Made::Set, + Made::Trips, + Made::Straight, + Made::Flush, + Made::FullHouse, + Made::Quads, + Made::StraightFlush, +]; + +/// Random river boards behind the reference shares (fixed seed: deterministic per binary). +const REFERENCE_BOARDS: usize = 160; +const REFERENCE_SEED: u64 = 0xB0A2_D5EE_D001; + +/// Messschalter (einmal gelesen) `WERT_BRETT=river`: river bet/raise floors are board-relative. +pub fn enabled() -> bool { + use std::sync::OnceLock; + static ON: OnceLock = OnceLock::new(); + *ON.get_or_init(|| std::env::var("WERT_BRETT").as_deref() == Ok("river")) +} + +/// Share of all two-card holdings (outside the board) per class at or above it: `out[i]` for `ALL[i]`. +fn shares_at_least(rules: &Rules, board: &[Card]) -> Option<[f64; 16]> { + if rules.hole_cards != 2 { + return None; + } + let pool = deck::without_in(rules.deck, board); + let mut count = [0usize; 16]; + let mut total = 0usize; + for i in 0..pool.len() { + for j in i + 1..pool.len() { + let Ok((made, _)) = glance(rules, &[pool[i], pool[j]], board) else { continue }; + total += 1; + count[ALL.iter().position(|m| *m == made)?] += 1; + } + } + if total == 0 { + return None; + } + let mut out = [0.0; 16]; + let mut acc = 0usize; + for i in (0..16).rev() { + acc += count[i]; + out[i] = acc as f64 / total as f64; + } + Some(out) +} + +/// Average `shares_at_least` over random river boards (Hold'em), computed once. +fn reference(rules: &Rules) -> Option<&'static [f64; 16]> { + use std::sync::OnceLock; + static REF: OnceLock> = OnceLock::new(); + REF.get_or_init(|| { + let full = deck::without_in(rules.deck, &[]); + let mut rng = Rng::seeded(REFERENCE_SEED); + let mut sum = [0.0; 16]; + let mut n = 0usize; + for _ in 0..REFERENCE_BOARDS { + let (board, next) = deck::draw(&full, 5, rng)?; + rng = next; + if let Some(s) = shares_at_least(rules, &board) { + for (a, b) in sum.iter_mut().zip(s) { + *a += b; + } + n += 1; + } + } + (n > 0).then(|| sum.map(|a| a / n as f64)) + }) + .as_ref() +} + +/// The board-relative floor as a showdown-strength cut: the strength of the `ceil(q * n)`-th +/// strongest of all `n` holdings on this board, `q` the reference share of `floor` (its share of all +/// holdings on an average river). `None` when the class floor already admits no more than `q` here +/// (dry board: nothing changes), or without a full Hold'em river board. +pub fn strength_cut(rules: &Rules, board: &[Card], floor: Made) -> Option { + if board.len() != 5 || rules.hole_cards != 2 { + return None; + } + let reference = reference(rules)?; + let here = shares_at_least(rules, board)?; + let i = ALL.iter().position(|m| *m == floor)?; + let q = reference[i]; + if here[i] <= q + 1e-12 { + return None; + } + let pool = deck::without_in(rules.deck, board); + let mut all: Vec = Vec::new(); + for a in 0..pool.len() { + for b in a + 1..pool.len() { + if let Ok(s) = judge(rules, &[pool[a], pool[b]], board) { + all.push(s); + } + } + } + all.sort_unstable_by(|x, y| y.cmp(x)); + let k = ((q * all.len() as f64).ceil() as usize).clamp(1, all.len().max(1)); + all.get(k - 1).copied() +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::variant::kind::Variant; + use crate::variant::rules::rules; + + fn cards(s: &str) -> Vec { + Card::parse_list(s).unwrap() + } + + fn strength(hole: &str, board: &str) -> Strength { + judge(&rules(Variant::Nlhe), &cards(hole), &cards(board)).unwrap() + } + + #[test] + fn dry_board_keeps_the_class_floor() { + let r = rules(Variant::Nlhe); + assert_eq!(strength_cut(&r, &cards("Kd 7s 2c 9h 4d"), Made::TopPairGoodKicker), None); + } + + #[test] + fn paired_four_flush_board_puts_a_straight_below_the_cut() { + let r = rules(Variant::Nlhe); + let b = "9c 9h Tc 8c 2c"; + let cut = strength_cut(&r, &cards(b), Made::TopPairGoodKicker).expect("cut"); + assert!(strength("Jd 7d", b) < cut, "J-high straight must be below the board-relative floor"); + assert!(strength("Ac 3d", b) >= cut, "the nut flush stays value"); + } + + #[test] + fn no_cut_before_the_river() { + let r = rules(Variant::Nlhe); + assert_eq!(strength_cut(&r, &cards("9c 9h Tc 8c"), Made::TopPairGoodKicker), None); + } +} diff --git a/src/exploit/call_floor.rs b/src/exploit/call_floor.rs index fc6ebdf8..8d6960c0 100644 --- a/src/exploit/call_floor.rs +++ b/src/exploit/call_floor.rs @@ -26,6 +26,7 @@ pub fn call_continuation(villain: &Villain, street: Street, ratio: f64, facing_r bluff_share: 0.0, continue_share: Some(1.0 - fold_chance(villain.profile.as_ref(), ratio, facing_raise)), top_share: None, + min_strength: None, } } @@ -42,5 +43,6 @@ pub fn top_call_continuation(villain: &Villain, street: Street, ratio: f64, faci bluff_share: 0.0, continue_share: None, top_share: Some(1.0 - fold_chance(villain.profile.as_ref(), ratio, facing_raise)), + min_strength: None, } } diff --git a/src/exploit/mod.rs b/src/exploit/mod.rs index 4ec844e2..d4eeb666 100644 --- a/src/exploit/mod.rs +++ b/src/exploit/mod.rs @@ -5,6 +5,7 @@ pub mod band_bounds; pub mod band_stretch; pub mod bet_ratio; pub mod bluff_share; +pub mod brett_floor; pub mod call_floor; pub mod fold_chance; pub mod geeicht; diff --git a/src/exploit/range_spec.rs b/src/exploit/range_spec.rs index 8105e31d..19c21495 100644 --- a/src/exploit/range_spec.rs +++ b/src/exploit/range_spec.rs @@ -33,6 +33,10 @@ pub struct Continuation { /// this step (by made hand, then draw, `engine::range_filter`) as value; `bluff_share` is admitted /// below it as usual. A re-raise narrows the range this way per raise level (`RERAISE_TIEFE`). pub top_share: Option, + /// `min_strength`, when set, also asks the value hands for at least this showdown strength on the + /// board (`WERT_BRETT=river`, `exploit::brett_floor`): the board-relative river floor, an exact + /// percentile of all holdings instead of a made class. + pub min_strength: Option, } impl RangeSpec { diff --git a/src/exploit/street_continuation.rs b/src/exploit/street_continuation.rs index 68d3d790..ca9509cc 100644 --- a/src/exploit/street_continuation.rs +++ b/src/exploit/street_continuation.rs @@ -294,6 +294,10 @@ fn on_street( bluff_share, continue_share: None, top_share: None, + // WERT_BRETT=river: a river bet/raise floor means the same relative strength on every board. + min_strength: (street == Street::River && made_bet.is_some() && super::brett_floor::enabled()) + .then(|| super::brett_floor::strength_cut(&spot.rules(), &spot.board, min_made)) + .flatten(), }); // Each further aggression on the street keeps the strongest r^(k-1) of what the first left, with // the plain size bluff share below it (a sustained line earns no population over-bluff prior). diff --git a/tests/bluff_range.rs b/tests/bluff_range.rs index 727166a5..d94dd07c 100644 --- a/tests/bluff_range.rs +++ b/tests/bluff_range.rs @@ -27,6 +27,7 @@ fn spec(bluff_share: f64) -> RangeSpec { bluff_share, continue_share: None, top_share: None, + min_strength: None, }], } } diff --git a/tests/called_range_share.rs b/tests/called_range_share.rs index 6fe6c360..c60359dc 100644 --- a/tests/called_range_share.rs +++ b/tests/called_range_share.rs @@ -44,6 +44,7 @@ fn floor_spec(min_made: Made, continue_share: Option) -> RangeSpec { bluff_share: 0.0, continue_share, top_share: None, + min_strength: None, }], } } diff --git a/tests/reraise_narrowing.rs b/tests/reraise_narrowing.rs index 9c6a7b8e..58cd0d1e 100644 --- a/tests/reraise_narrowing.rs +++ b/tests/reraise_narrowing.rs @@ -35,6 +35,7 @@ fn spec(top_share: Option, bluff_share: f64) -> RangeSpec { bluff_share, continue_share: None, top_share, + min_strength: None, }], } }