diff --git a/entscheiden/motor/src/main.rs b/entscheiden/motor/src/main.rs index 1591efa5..9b0671ce 100644 --- a/entscheiden/motor/src/main.rs +++ b/entscheiden/motor/src/main.rs @@ -359,6 +359,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"}), } }