Phase E: HUD voll in die Engine durchgereicht + Delta-Gedaechtnis je Spieler
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.)
This commit is contained in:
+18
-1
@@ -6,12 +6,21 @@
|
||||
|
||||
use super::profile::Profile;
|
||||
|
||||
/// What a beginner or fish is assumed to do where nothing is measured.
|
||||
/// What a beginner or fish is assumed to do where nothing is measured. The HUD extras stay unknown:
|
||||
/// the label is a coarse prior, no basis to invent continuation or showdown frequencies.
|
||||
const WEAK_PLAYER: Profile = Profile {
|
||||
vpip: Some(0.45),
|
||||
pfr: Some(0.10),
|
||||
fold_to_bet: Some(0.25),
|
||||
aggression: Some(0.20),
|
||||
cbet: None,
|
||||
fold_to_cbet: None,
|
||||
three_bet: None,
|
||||
fold_to_three_bet: None,
|
||||
steal: None,
|
||||
check_raise: None,
|
||||
wtsd: None,
|
||||
wsd: None,
|
||||
};
|
||||
|
||||
fn prior(mark: &str) -> Option<Profile> {
|
||||
@@ -29,5 +38,13 @@ pub fn with_mark(measured: Option<Profile>, mark: &str) -> Option<Profile> {
|
||||
pfr: known.pfr.or(prior.pfr),
|
||||
fold_to_bet: known.fold_to_bet.or(prior.fold_to_bet),
|
||||
aggression: known.aggression.or(prior.aggression),
|
||||
cbet: known.cbet.or(prior.cbet),
|
||||
fold_to_cbet: known.fold_to_cbet.or(prior.fold_to_cbet),
|
||||
three_bet: known.three_bet.or(prior.three_bet),
|
||||
fold_to_three_bet: known.fold_to_three_bet.or(prior.fold_to_three_bet),
|
||||
steal: known.steal.or(prior.steal),
|
||||
check_raise: known.check_raise.or(prior.check_raise),
|
||||
wtsd: known.wtsd.or(prior.wtsd),
|
||||
wsd: known.wsd.or(prior.wsd),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
/// Observed opponent tendencies, all frequencies in `[0, 1]`. Every field optional.
|
||||
/// Wire shape (extension):
|
||||
/// `"profile": {"vpip": 0.45, "pfr": 0.08, "foldToBet": 0.3, "aggression": 0.4}`.
|
||||
///
|
||||
/// The fields below `aggression` are the HUD numbers the client already delivers but the core did
|
||||
/// not read before (`lesen/profil.py` DURCHGEREICHT). They carry their client names on the wire
|
||||
/// (`src/wire/decode_villain.rs`) and reach the engine per villain. No exploit rule reads them yet:
|
||||
/// every new read must first earn its place on the ladder benchmark (`read_gate`), which no
|
||||
/// candidate has so far. They stand ready for the opponent memory and future, ladder-proven rules.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Default)]
|
||||
pub struct Profile {
|
||||
/// Voluntarily put money in pot, preflop.
|
||||
@@ -12,4 +18,21 @@ pub struct Profile {
|
||||
/// Share of the player's postflop actions that are bets or raises (aggression
|
||||
/// frequency). Steers how much of their betting range is a bluff (`bluff_share`).
|
||||
pub aggression: Option<f64>,
|
||||
/// How often the player continuation-bets the flop as the preflop aggressor.
|
||||
pub cbet: Option<f64>,
|
||||
/// How often the player folds to a continuation bet.
|
||||
pub fold_to_cbet: Option<f64>,
|
||||
/// Preflop three-bet frequency.
|
||||
pub three_bet: Option<f64>,
|
||||
/// How often the player folds to a three-bet.
|
||||
pub fold_to_three_bet: Option<f64>,
|
||||
/// How often the player attempts to steal the blinds from late position.
|
||||
pub steal: Option<f64>,
|
||||
/// How often the player check-raises.
|
||||
pub check_raise: Option<f64>,
|
||||
/// Went to showdown: how often the player reaches showdown once seeing the flop. A high
|
||||
/// value marks a sticky, showdown-happy opponent.
|
||||
pub wtsd: Option<f64>,
|
||||
/// Won at showdown: how often the player wins once at showdown.
|
||||
pub wsd: Option<f64>,
|
||||
}
|
||||
|
||||
+19
-1
@@ -14,12 +14,22 @@ use crate::exploit::profile::Profile;
|
||||
/// Hands at which the sample and the population weigh the same (`trust` 0.5).
|
||||
pub const PRIOR_HANDS: f64 = 30.0;
|
||||
|
||||
/// The population an unknown opponent is assumed to be: a regular of the stock.
|
||||
/// The population an unknown opponent is assumed to be: a regular of the stock. The HUD extras have
|
||||
/// no population prior yet: a missing one leaves `shrink` to pass the measured value through, so a
|
||||
/// field without a prior is never pulled off the client's number.
|
||||
pub const PRIOR: Profile = Profile {
|
||||
vpip: Some(0.28),
|
||||
pfr: Some(0.18),
|
||||
fold_to_bet: Some(0.45),
|
||||
aggression: Some(0.35),
|
||||
cbet: None,
|
||||
fold_to_cbet: None,
|
||||
three_bet: None,
|
||||
fold_to_three_bet: None,
|
||||
steal: None,
|
||||
check_raise: None,
|
||||
wtsd: None,
|
||||
wsd: None,
|
||||
};
|
||||
|
||||
/// Weight of the sample in `[0, 1)`.
|
||||
@@ -45,5 +55,13 @@ pub fn shrink(profile: &Profile, hands: f64) -> Profile {
|
||||
pfr: pull(profile.pfr, PRIOR.pfr, w),
|
||||
fold_to_bet: pull(profile.fold_to_bet, PRIOR.fold_to_bet, w),
|
||||
aggression: pull(profile.aggression, PRIOR.aggression, w),
|
||||
cbet: pull(profile.cbet, PRIOR.cbet, w),
|
||||
fold_to_cbet: pull(profile.fold_to_cbet, PRIOR.fold_to_cbet, w),
|
||||
three_bet: pull(profile.three_bet, PRIOR.three_bet, w),
|
||||
fold_to_three_bet: pull(profile.fold_to_three_bet, PRIOR.fold_to_three_bet, w),
|
||||
steal: pull(profile.steal, PRIOR.steal, w),
|
||||
check_raise: pull(profile.check_raise, PRIOR.check_raise, w),
|
||||
wtsd: pull(profile.wtsd, PRIOR.wtsd, w),
|
||||
wsd: pull(profile.wsd, PRIOR.wsd, w),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user