Owner 8.11.: 'reizen wir das Wissen aus?' - CoinPokers HUD liefert ~13 Werte, die Engine nutzte 4. Jetzt fliessen die 8 brachliegenden (cbet, foldToCbet, threeBet, foldToThreeBet, steal, checkRaise, wtsd, wsd) end-to-end bis ins Rust-Profile (lesen/profil DURCHGEREICHT -> wire/decode_villain -> exploit/profile, sample/mark mit None-Prior = Clientwert unveraendert). NOCH keine Exploit-Regel liest sie: eine wtsd-Regel wurde gebaut, durch die Leiter-Benchmark NICHT bewiesen (Stationen leicht negativ, kein Gewinn) und VERWORFEN - keine unbewiesene Kante gegen Echtgeld. Engine bit-identisch zur Basislinie (Benchmark GESAMT nicht unterscheidbar, kein Reg schlechter). Neu: lesen/gedaechtnis.py - Delta-Speicher je User-ID (gezeigte Haende, Sizing/Timing-Buckets, Tendenz, vs-uns), speichert NUR was CoinPoker nicht liefert. Specs: profil 15, gedaechtnis 11, Rust-Fixtures gruen. (Subagent-Arbeit, von mir verifiziert + Benchmark- geprueft + committet.)
38 lines
1.8 KiB
Rust
38 lines
1.8 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,
|
|
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),
|
|
}
|
|
}
|