River-Wert: zweite Variante nur im Pruefmodus rechnen (live eine Rechnung je Spot)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 02:53:39 +01:00
co-authored by Claude Opus 5.5
parent c740483d5f
commit f8deb43183
+2 -1
View File
@@ -1108,8 +1108,9 @@ impl Motor {
Err(f) => json!({"fehler": f}),
};
let mut neben = serde_json::Map::new();
neben.insert("x".into(), kurz(crate::river_wert::tafel().and_then(|t| crate::river_wert::rechne(&mut g, mich, hand, a.pot, a.rake, &anteile, t, !kl))));
// nur im Pruefmodus (MOTOR_RIVER_WERT_PRUEF): live eine einzige Rechnung je Spot
if let Some(t) = crate::river_wert::pruef_tafel() {
neben.insert("x".into(), kurz(crate::river_wert::tafel().and_then(|t| crate::river_wert::rechne(&mut g, mich, hand, a.pot, a.rake, &anteile, t, !kl))));
neben.insert("pruef".into(), kurz(t.clone().and_then(|t| crate::river_wert::rechne(&mut g, mich, hand, a.pot, a.rake, &anteile, t, kl))));
neben.insert("pruef_x".into(), kurz(t.and_then(|t| crate::river_wert::rechne(&mut g, mich, hand, a.pot, a.rake, &anteile, t, !kl))));
}