Flussleck: zwei River-Fehler aus dem Live-Lauf 16.11. abends im Kern behoben (Schalter, aus = bitgleich)
RUF_ALLIN=1: called_equity simuliert die All-in-Groesse mit, die REST_STACK hinzufuegt (vorher fiel der Call-Anteil des Jams auf den Anteil gegen die ganze Range zurueck, 0,678). RUF_OBEN=river: am River zahlt die staerkste (1-Fold)-Spitze statt Boden plus Zufall. WERT_BRETT=river: River-Boden der Wett-Range als Staerke-Perzentil auf dem echten Brett (exploit/brett_floor.rs) statt Handklasse; Vierflush-Brett: Strasse 0,35 -> 0,16 Equity. Pflichtfaelle: Live 10/16, Kandidat 12/16, 178854100443 CHECK und 178870300411 FOLD behoben, kein alter Fall verloren. BEKANNTE_SCHALTER ergaenzt. Volles Tor fl-* laeuft gg. ps2-*-an. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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):** Zwei River-Fehler aus dem Live-Lauf (AcJd-Jam −108 BB, Straßen-Call auf Vierflush) liegen im Kern: Jam-Größe ohne eigene Call-Range (`RUF_ALLIN`, `RUF_OBEN=river`) und Handklassen-Boden statt Stärke auf dem Brett (`WERT_BRETT=river`, erster Schritt von #1). Pflichtfälle bestanden (12/16 statt 10/16, beide neu behoben); volles Tor `fl-*` läuft, Ergebnis 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 |
|
||||
|
||||
@@ -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; Kandidat `RUF_ALLIN=1;RUF_OBEN=river;WERT_BRETT=river`, Branch claude/engine-roentgen-c4dd78) | **Ursache 1 (178854100443, AcJd, River-Jam 1,90 in 0,79):** REST_STACK fügt den All-in als Größe hinzu, `called_equity` simuliert aber nur die Kandidaten-Größen; der Call-Anteil des Jams fiel auf den Anteil gegen die ganze Range zurück (0,678) statt gegen die Range, die einen Jam bezahlt. `RUF_ALLIN` simuliert die All-in-Größe mit (allein: Jam → 2/3-Pot-Wette), `RUF_OBEN=river` nimmt am River die stärksten (1−Fold) statt Boden + Zufall (dann CHECK). **Ursache 2 (178870300411, 7dJd Straße auf 9c9hTc8c2c):** der River-Boden der Wett-Range ist eine Handklasse (TopPairGoodKicker), auf einem gepaarten Vierflush-Brett ist das fast nichts. `WERT_BRETT=river` setzt den 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. Aus = bitgleich (4 Leiterzellen gg. ps2-leiter-an). **Pflichtfälle bestanden: Live 10/16, Kandidat 12/16, beide neuen Fälle behoben, kein alter verloren** (`messung/flussleck/pflicht.txt`). Volles Tor `fl-*` gg. `ps2-*-an` eingereiht 16.11. 17:49 | – |
|
||||
## 19. Nachtrag 16.11.: Linien-Audit pool-nl2, neue Persona pool-nl2-echt (Auftrag Orchestrator, Vorrang)
|
||||
|
||||
| Was | Ergebnis |
|
||||
|
||||
@@ -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",
|
||||
"RUF_ALLIN", "RUF_OBEN", "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.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# 16.11. abends flussleck: Pflichtfaelle, Live-Kern /d/Projects/pokerfreak/.claude/worktrees/engine-lecks-angreifen-de7b88/target/release/rechner.exe (5cdfbdbf), Kandidat = dieser Zweig, Schalter /d/Projects/pokerfreak/.claude/worktrees/engine-lecks-angreifen-de7b88/betrieb/kern_schalter.txt
|
||||
PFLICHTFÄLLE Kandidat RUF_ALLIN=1;RUF_OBEN=river;WERT_BRETT=river: BESTANDEN
|
||||
Soll getroffen: Live 10 von 16, Kandidat 12 von 16; Ziele (live noch falsch) behoben: 2 von 6
|
||||
PFLICHTFÄLLE Kandidat RUF_ALLIN=1: BESTANDEN
|
||||
Soll getroffen: Live 10 von 16, Kandidat 10 von 16; Ziele (live noch falsch) behoben: 0 von 6
|
||||
PFLICHTFÄLLE Kandidat RUF_ALLIN=1;RUF_OBEN=river: BESTANDEN
|
||||
Soll getroffen: Live 10 von 16, Kandidat 11 von 16; Ziele (live noch falsch) behoben: 1 von 6
|
||||
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
|
||||
@@ -26,7 +26,17 @@ pub fn called_equity(spot: &Spot) -> Called {
|
||||
if !spot.is_legal(ActionKind::Raise) {
|
||||
return Called::sized(Vec::new());
|
||||
}
|
||||
let notched: Vec<(f64, i32, f64)> = candidates(spot)
|
||||
let mut sizes = candidates(spot);
|
||||
// RUF_ALLIN=1: also the all-in, which `size_policy::sizes` adds outside `candidates` (REST_STACK /
|
||||
// committed value); without it `share_at` fell back to the share against the WHOLE range.
|
||||
if ruf_allin() {
|
||||
if let Some(shove) = super::size_policy::all_in_size(spot) {
|
||||
if !sizes.iter().any(|s| (s - shove).abs() < 1e-9) {
|
||||
sizes.push(shove);
|
||||
}
|
||||
}
|
||||
}
|
||||
let notched: Vec<(f64, i32, f64)> = sizes
|
||||
.into_iter()
|
||||
.map(|to| {
|
||||
let ratio = pressure_ratio(spot.pot, spot.to_call, to);
|
||||
@@ -49,13 +59,45 @@ pub fn called_equity(spot: &Spot) -> Called {
|
||||
)
|
||||
}
|
||||
|
||||
/// Messschalter (einmal gelesen) `RUF_ALLIN=1`: the called branch of the ALL-IN is simulated too. The
|
||||
/// rest-stack rule (`size_policy::no_mans_land`, `REST_STACK`) and committed value raises add the all-in
|
||||
/// outside `candidates`; its called share was then missing and `Called::share_at` fell back to the share
|
||||
/// against the whole range, while the fold branch used the full fold equity of the overbet. Live 16.11.
|
||||
/// hand 178854100443 (-108 BB): AJ two pair on A62KJ jammed 2.4x pot into two players, "EV raise to
|
||||
/// 1.90 +0.79" with 0.68 equity "when called" (only AK and sets call). Unset: bit-identical (old).
|
||||
fn ruf_allin() -> bool {
|
||||
use std::sync::OnceLock;
|
||||
static ON: OnceLock<bool> = OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var("RUF_ALLIN").as_deref() == Ok("1"))
|
||||
}
|
||||
|
||||
/// Messschalter (einmal gelesen) `RUF_OBEN=river`: on the river the range that calls hero's bet is the
|
||||
/// STRONGEST `1 - fold` of the villain's range (`top_call_continuation`, Bayes for a caller who continues
|
||||
/// by strength - nothing is left to draw to), not the calling floor topped up with random hands to the
|
||||
/// same share. The random top-up priced a 2.4x-pot jam with AJ two pair on A62KJ as if half of the junk
|
||||
/// called (live 16.11. hand 178854100443, -108 BB: "EV raise to 1.90 +0.79"; only AK and sets call).
|
||||
/// `RUF_OBEN=alle`: every street. Unset: bit-identical (old).
|
||||
fn ruf_oben(street: crate::game::Street) -> bool {
|
||||
use std::sync::OnceLock;
|
||||
static M: OnceLock<u8> = OnceLock::new();
|
||||
match *M.get_or_init(|| match std::env::var("RUF_OBEN").as_deref() {
|
||||
Ok("river") => 1,
|
||||
Ok("alle") => 2,
|
||||
_ => 0,
|
||||
}) {
|
||||
1 => street == crate::game::Street::River,
|
||||
2 => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
fn simulate(spot: &Spot, notch: i32, ratio: f64) -> Option<f64> {
|
||||
let rules = spot.rules();
|
||||
let filters: Vec<HandFilter> = spot
|
||||
.live_villains()
|
||||
.map(|v| {
|
||||
let mut spec = range_spec(spot, v);
|
||||
let fold_only = v.profile.is_some_and(|p| p.fold_only);
|
||||
let fold_only = v.profile.is_some_and(|p| p.fold_only) || ruf_oben(spot.street);
|
||||
let call = if fold_only { top_call_continuation } else { call_continuation };
|
||||
let mut c = call(v, spot.street, ratio, spot.to_call > 0.0);
|
||||
if super::glaube::called_on() {
|
||||
|
||||
@@ -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<bool> {
|
||||
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))
|
||||
})
|
||||
|
||||
@@ -236,7 +236,7 @@ fn no_mans_land(spot: &Spot, picked: Vec<f64>, strong: bool) -> Vec<f64> {
|
||||
|
||||
/// The legal all-in raise-to: the upper bound without a size menu; with one, its largest size when
|
||||
/// that puts the stack in.
|
||||
fn all_in_size(spot: &Spot) -> Option<f64> {
|
||||
pub(crate) fn all_in_size(spot: &Spot) -> Option<f64> {
|
||||
let hi = crate::sizing::bounds::bounds(spot)?.hi;
|
||||
match &spot.allowed_sizes {
|
||||
None => (hi.is_finite() && hi >= spot.hero_stack - 1e-9).then_some(hi),
|
||||
|
||||
@@ -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<bool> = 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<Option<[f64; 16]>> = 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<Strength> {
|
||||
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<Strength> = 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> {
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<f64>,
|
||||
/// `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<crate::hand::strength::Strength>,
|
||||
}
|
||||
|
||||
impl RangeSpec {
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -27,6 +27,7 @@ fn spec(bluff_share: f64) -> RangeSpec {
|
||||
bluff_share,
|
||||
continue_share: None,
|
||||
top_share: None,
|
||||
min_strength: None,
|
||||
}],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ fn floor_spec(min_made: Made, continue_share: Option<f64>) -> RangeSpec {
|
||||
bluff_share: 0.0,
|
||||
continue_share,
|
||||
top_share: None,
|
||||
min_strength: None,
|
||||
}],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ fn spec(top_share: Option<f64>, bluff_share: f64) -> RangeSpec {
|
||||
bluff_share,
|
||||
continue_share: None,
|
||||
top_share,
|
||||
min_strength: None,
|
||||
}],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user