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.)
73 lines
1.7 KiB
Rust
73 lines
1.7 KiB
Rust
use rechner::exploit::profile::Profile;
|
|
use rechner::exploit::style::{classify, Style};
|
|
|
|
fn profile(vpip: Option<f64>, pfr: Option<f64>, fold_to_bet: Option<f64>) -> Profile {
|
|
Profile {
|
|
vpip,
|
|
pfr,
|
|
fold_to_bet,
|
|
aggression: None,
|
|
..Profile::default()
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn nothing_known_is_unknown() {
|
|
assert_eq!(classify(&Profile::default()), Style::Unknown);
|
|
assert_eq!(
|
|
classify(&profile(Some(f64::NAN), None, Some(f64::NAN))),
|
|
Style::Unknown
|
|
);
|
|
}
|
|
|
|
#[test]
|
|
fn tight_players_are_nits() {
|
|
assert_eq!(classify(&profile(Some(0.10), Some(0.08), None)), Style::Nit);
|
|
assert_eq!(classify(&profile(None, None, Some(0.80))), Style::Nit);
|
|
}
|
|
|
|
#[test]
|
|
fn loose_and_raising_is_loose_aggressive() {
|
|
assert_eq!(
|
|
classify(&profile(Some(0.55), Some(0.35), None)),
|
|
Style::LooseAggressive
|
|
);
|
|
assert_eq!(
|
|
classify(&profile(Some(0.45), Some(0.30), Some(0.5))),
|
|
Style::LooseAggressive
|
|
);
|
|
}
|
|
|
|
#[test]
|
|
fn loose_and_passive_or_sticky_is_a_calling_station() {
|
|
assert_eq!(
|
|
classify(&profile(Some(0.50), Some(0.05), Some(0.2))),
|
|
Style::CallingStation
|
|
);
|
|
assert_eq!(
|
|
classify(&profile(Some(0.45), None, None)),
|
|
Style::CallingStation
|
|
);
|
|
assert_eq!(
|
|
classify(&profile(None, None, Some(0.15))),
|
|
Style::CallingStation
|
|
);
|
|
}
|
|
|
|
#[test]
|
|
fn ordinary_numbers_are_regular() {
|
|
assert_eq!(
|
|
classify(&profile(Some(0.22), Some(0.18), Some(0.5))),
|
|
Style::Regular
|
|
);
|
|
}
|
|
|
|
#[test]
|
|
fn out_of_range_values_are_clamped_not_trusted() {
|
|
assert_eq!(
|
|
classify(&profile(Some(7.0), Some(5.0), None)),
|
|
Style::LooseAggressive
|
|
);
|
|
assert_eq!(classify(&profile(Some(-3.0), None, None)), Style::Nit);
|
|
}
|