Opponent::Lerner(Zug) spielt die je Hand aus dem HUD neu abgeleiteten Regeln; Zug::statisch ist
bitgleich zu Opponent::Styled. Alte Leiter bitgleich (ab_zelle all, 19 Zeilen, Basis fe675cc gegen neu).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
2.9 KiB
Rust
51 lines
2.9 KiB
Rust
//! The read a converged HUD would show for each fixed opponent. The ladder plays the engine against
|
|
//! behavioural opponents; to measure the EXPLOIT brain the engine must also SEE them, the way it sees
|
|
//! vpip/pfr/foldToBet/aggression at a real table. These are representative, stable profiles for each
|
|
//! archetype (a long session converges to them, since the sim opponents are fixed-style), so the
|
|
//! engine's opponent classification (`exploit::style::classify`) lands on the matching style.
|
|
//!
|
|
//! `RandomLegal` has no coherent style, so it carries no read (the engine plays it blind).
|
|
|
|
use super::opponent::Opponent;
|
|
use super::reader::Style;
|
|
use crate::exploit::profile::Profile;
|
|
|
|
fn p(vpip: f64, pfr: f64, fold_to_bet: f64, aggression: f64) -> Option<Profile> {
|
|
Some(Profile {
|
|
vpip: Some(vpip),
|
|
pfr: Some(pfr),
|
|
fold_to_bet: Some(fold_to_bet),
|
|
aggression: Some(aggression),
|
|
..Profile::default()
|
|
})
|
|
}
|
|
|
|
/// The HUD read the engine is handed for this opponent, or `None` when the opponent has no readable
|
|
/// style. The Reader values are MEASURED from the opponents' own play (`tests/sim_opponent_stats`),
|
|
/// not guessed, so the ladder feeds the engine the truth: the reg folds a lot and is passive, the
|
|
/// nit is very tight, the maniac is loose and aggressive, the fish calls almost everything.
|
|
pub fn opponent_profile(opponent: Opponent) -> Option<Profile> {
|
|
match opponent {
|
|
Opponent::CallingStation => p(0.98, 0.00, 0.02, 0.02),
|
|
Opponent::Folder => p(0.02, 0.00, 0.98, 0.00),
|
|
Opponent::RandomLegal => None,
|
|
// A drawn opponent has no authored oracle read on purpose: the lab forces the engine to
|
|
// INFER the type from observed actions (that inference IS the exploitation signal).
|
|
Opponent::Styled(_) => None,
|
|
// The learner moves; like a drawn opponent it has no authored read, the engine must infer it.
|
|
Opponent::Lerner(_) => None,
|
|
// The cliche HUD of the persona's archetype (not the individual): see `welt::Persona::oracle`.
|
|
Opponent::Welt(p) => Some(p.oracle_profile()),
|
|
Opponent::Reader(Style::Reg) => p(0.31, 0.13, 0.72, 0.25),
|
|
Opponent::Reader(Style::Nit) => p(0.06, 0.03, 0.82, 0.12),
|
|
Opponent::Reader(Style::Maniac) => p(0.76, 0.42, 0.50, 0.50),
|
|
Opponent::Reader(Style::Fish) => p(0.93, 0.01, 0.40, 0.08),
|
|
// Balanced: folds to a bet about as often as the minimum-defence share allows, bets as often
|
|
// as it calls. Reads as a plain regular (the engine's no-exploit class), which is the truth.
|
|
Opponent::Reader(Style::Gto) => p(0.32, 0.22, 0.42, 0.40),
|
|
// The small-ball balanced twin: a touch tighter and less aggressive (half-pot value lean),
|
|
// still a plain regular. Its read, like the Gto's, is gated blind for the range model.
|
|
Opponent::Reader(Style::GtoSmall) => p(0.30, 0.22, 0.46, 0.36),
|
|
}
|
|
}
|