Compare commits

..
Author SHA1 Message Date
mmintelandClaude Opus 5.5 0a4adc2145 Benchmark-Linie: Handrechnungs-Test wieder im Original (gilt fuer die Live-Basis-Linie claude/mmap, faellt hier rot); eigener Test fuer diese Linie: exakt gleichverteilt = ungelernt (Regel seit 74728757) auf beiden Wegen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:45:49 +01:00
mmintelandClaude Fable 5.2 33cac47e09 MOTOR_FLACH: Aus-Pruefung 3.000/3.000 bitgleich, Speicher je Prozess ~0,2 statt ~9,6 GB, Karte und Bericht
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-03 17:45:48 +01:00
mmintelandClaude Fable 5.2 f129c67bfe MOTOR_FLACH: Tests nach unabhaengiger Pruefung geschaerft (Sonderschluessel, Umlauf, Kopffaelschungen, Summen), Sondierung begrenzt, Index nie ueberschreiben per Hartlink
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-03 17:45:48 +01:00
mmintelandClaude Fable 5.2 73c3484fb3 MOTOR_FLACH=1: Strategie und Klassen schreibgeschuetzt abgebildet, flacher Index (Standard aus, ohne Schalter unveraendert)
Jeder Dienst-Prozess las ~10 GB (Strategien, alle sechs Splash-Dateien, sechs Kopien der Klassentafeln) in den eigenen Speicher.
Mit dem Schalter teilen sich alle Prozesse eines Rechners die Seiten der unveraenderten Dateien (mmap / CreateFileMapping ohne neue
Abhaengigkeit); der Index <datei>.flach ersetzt die HashMap. Spec: bitgleiche Abfragen, fehlende Schluessel, beschaedigte Dateien
abgelehnt mit Rueckfall.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-03 17:45:47 +01:00
mmintelandClaude Opus 5.5 1023251f7d Zuggrund eindeutig: Tabelle ohne Splash-/Nachpost-Knoten, Topf mit totem Geld bzw. Nachpost als Einsatz (das tote Geld kommt an, nur die Vorflop-Tabelle kennt es nicht)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:24:39 +01:00
mmintelandClaude Opus 5.5 36dea704a2 MOTOR_REIN_ROH=1 (Standard aus, nur mit SHARINGAN rein): Arm B ohne NL2-Nachschicht, auch im Rueckfall auf den Motor und bei Straddle (Owner: weg mit den Heuristiken); Reihenfolge Suche -> seine Tabelle -> Motor roh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:14:36 +01:00
mmintelandClaude Opus 5.5 317cb74bf7 Splash ohne passende eigene Tabelle: mit MOTOR_SHARINGAN_SPLASH spielt SHARINGAN statt ABSTAIN (Startprobe 03.12.: 150 von 180 Splash-Anfragen gingen sonst ins ABSTAIN)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 16:00:09 +01:00
3 changed files with 24 additions and 5 deletions
+3
View File
@@ -583,6 +583,9 @@ impl Motor {
}
fn nl2(&self, q: &Value, a: Value) -> Value {
if crate::sharingan::rein_roh() {
return a; // MOTOR_REIN_ROH: keine Nachschicht in Arm B
}
if self.s.turnier || self.s.n == 2 || self.s.splash > 0 || self.s.art == crate::spiel::Art::PushFold || q.get("eigen").is_some() || q.get("probeHand").is_some() || q["nackt"] == true || q["vorrechnen"] == true || q["vorrechnen_strasse"] == true {
// MOTOR_STACKOFF_SPLASH=1 (01.12.): an Splash-Tischen sonst keine NL2-Schicht, also auch keine Stack-off-Bepreisung
// (99 auf J83-4: Turn-Raise 85 bb in einer Splash-Hand, nie bepreist). Nur die Bepreisung, nicht die uebrigen Regeln.
+8
View File
@@ -376,6 +376,14 @@ fn main() {
r["reason"] = serde_json::json!(format!("Splash{} {}", y.0, r["reason"].as_str().unwrap_or("")));
r
}
// MOTOR_SHARINGAN_SPLASH (03.12.): ohne passende eigene Splash-Tabelle spielt SHARINGAN (totes Geld als dead_money);
// antwortet er nicht, wie bisher kein Zug (der Hauptbaum kennt kein totes Geld)
_ if crate::sharingan::splash() => {
let r = m.antworte(&q);
if r["reason"].as_str().is_some_and(|g| g.starts_with("sharingan")) { r } else {
serde_json::json!({"action": "ABSTAIN", "size": null, "confidence": 0, "reason": "motor notfall: keine Splash-Strategie, SHARINGAN ohne Antwort"})
}
}
_ => serde_json::json!({"action": "ABSTAIN", "size": null, "confidence": 0, "reason": "motor notfall: keine Splash-Strategie"}),
}
}
+13 -5
View File
@@ -85,8 +85,16 @@ pub fn splash() -> bool {
}
/// Zuggrund vor dem Flop, wenn totes Geld oder ein Nachpost im Topf liegt (seine Tabellen kennen beides nicht)
const GRUND_SPLASH: &str = " [Splash: Vorflop-Tabelle ohne totes Geld]";
const GRUND_NACHPOST: &str = " [Nachpost: Vorflop-Tabelle ohne Nachpost]";
const GRUND_SPLASH: &str = " [Splash: Tabelle ohne Splash-Knoten; Topf mit totem Geld]";
const GRUND_NACHPOST: &str = " [Nachpost: Tabelle ohne Nachpost-Knoten; Nachpost als Einsatz im Topf]";
/// MOTOR_REIN_ROH=1 (03.12., Owner "weg mit den heuristiken"; nur mit MOTOR_SHARINGAN_REIN, Standard aus): keine Antwort dieses Prozesses
/// geht durch unsere NL2-Nachschicht (Abgleich, Stack-off, Bluffpreis) - auch nicht der Rueckfall auf unseren Motor und nicht Straddle.
/// Reihenfolge bleibt: seine Suche, dann seine Tabelle (Blueprint), dann unser Motor roh.
pub fn rein_roh() -> bool {
static A: OnceLock<bool> = OnceLock::new();
*A.get_or_init(|| rein() && std::env::var("MOTOR_REIN_ROH").is_ok_and(|x| x == "1"))
}
fn schalter(k: &str, w: &str) -> bool {
std::env::var(k).is_ok_and(|x| x == w)
@@ -1200,7 +1208,7 @@ mod splash_spec {
// der Splash kommt nicht aus dem Stapel des Helden (Platz 1 -> sein Platz 0)
assert_eq!(k.basis["players"][0]["stack_start"], 10_000);
assert!(k.basis["players"].as_array().unwrap().iter().all(|p| p.get("dead").is_none() && p.get("live_post").is_none()));
assert_eq!(k.vorflop_grund, " [Splash: Vorflop-Tabelle ohne totes Geld]");
assert_eq!(k.vorflop_grund, super::GRUND_SPLASH);
}
#[test]
@@ -1210,7 +1218,7 @@ mod splash_spec {
assert_eq!(k.basis["players"][3]["dead"], 50);
assert_eq!(k.basis["players"][3]["stack_start"], 10_050); // Stapel jetzt + Ante
assert!(k.basis.get("dead_money").is_none());
assert_eq!(k.vorflop_grund, " [Splash: Vorflop-Tabelle ohne totes Geld]");
assert_eq!(k.vorflop_grund, super::GRUND_SPLASH);
}
#[test]
@@ -1223,7 +1231,7 @@ mod splash_spec {
assert_eq!(h.len(), 3); // SB, BB, Call; der Nachpost steht nur in players
assert_eq!(h[2]["type"], "call");
assert!(k.basis.get("dead_money").is_none());
assert_eq!(k.vorflop_grund, " [Nachpost: Vorflop-Tabelle ohne Nachpost]");
assert_eq!(k.vorflop_grund, super::GRUND_NACHPOST);
}
#[test]