D1c: Leseschicht im River-Veto hinter GEGNER_RANGE (aus), Werte auf echten Gegnern, Messarme eingereiht

- river_subgame: river_tree_weighted (Gewicht je Gegner-Kombi), read_belief (gekippte Range,
  festgelegter geglaubter Gegner aus Fold/Bluffanteil), KL gegen das ungekippte Gleichgewicht,
  Vertrauen aus RangeRead::trust; ohne Schalter bitgleich.
- range_read::on() (GEGNER_RANGE=1), decide.py kennt den Schalter.
- bin/range_read_scan + messung_zaehlung/range_read.py: 634 echte Gegner-Spots; gezaehlt
  85/123 River-Spots mit Bluff-Vertrauen >= 0,5 (live 0).
- Leiter range-an + LBR range-lbr-typ eingereiht; STAND §10, PLAN D1c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 21:04:42 +01:00
co-authored by Claude Opus 5.5
parent 4e92e3aed9
commit 39c139d4ec
8 changed files with 254 additions and 15 deletions
+34
View File
@@ -0,0 +1,34 @@
//! Read layer on real villains (plan D1c): one wire-form profile object per stdin line, decoded as a
//! live request's `villains[].profile`, then `exploit::range_read::RangeRead`. Prints one tab line
//! per profile: tilt, bluff share river (pot bet / 2/3 pot), fold river, confidence, bluff trust
//! river, or `-` without a read.
//!
//! messung_zaehlung/range_read.py writes the profiles and reads this back.
use rechner::exploit::range_read::RangeRead;
use std::io::BufRead;
fn main() {
let stdin = std::io::stdin();
for line in stdin.lock().lines() {
let Ok(line) = line else { break };
let text = format!("{{\"villains\":[{{\"seat\":1,\"stack\":100,\"folded\":false,\"profile\":{}}}]}}", line.trim());
let profile = rechner::json::parse::parse(&text)
.ok()
.and_then(|root| rechner::wire::decode_villain::villains(&root).ok())
.and_then(|v| v.into_iter().next())
.and_then(|v| v.profile);
match RangeRead::from_profile(profile.as_ref()) {
Some(r) => println!(
"{:.4}\t{:.4}\t{:.4}\t{}\t{:.4}\t{:.4}",
r.tilt,
r.bluff_share(2, 1.0),
r.bluff_share(2, 0.66),
r.fold_to_bet(2).map_or("-".to_string(), |f| format!("{f:.4}")),
r.confidence,
r.trust(true, 2)
),
None => println!("-"),
}
}
}