Motor spielt auch Splash-Haende (gelernte splash<bb>.bin), MOTOR_SPLASH=0 schaltet ab
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+10
-4
@@ -3,7 +3,7 @@
|
||||
Schalter in betrieb/kern_schalter.txt:
|
||||
MOTOR_SCHATTEN=<Baum mit entscheiden/motor/target und daten/grundstrategie/motor> Motor laden
|
||||
MOTOR_SPIELT=1 seine Antwort wird gespielt; der alte Kern nur, wo der Motor nicht zustaendig ist (keine
|
||||
NLHE-Cash-Lage, Ante/Splash/Straddle), keine gueltige Antwort hat oder die Frist reisst.
|
||||
NLHE-Cash-Lage, Ante/Straddle; Splash nur ohne gelernte splash<bb>.bin), keine gueltige Antwort hat oder die Frist reisst.
|
||||
Jede Antwort steht in archiv/lauf/schatten.jsonl (Feld `gespielt`: wer geklickt hat). Wirft nie.
|
||||
"""
|
||||
import json
|
||||
@@ -22,11 +22,17 @@ SCHLANGE_MAX = 64 # haengt der Motor, wird verworfen statt gestaut
|
||||
TODE_MAX = 5
|
||||
|
||||
|
||||
def splash_da():
|
||||
"""Hat der Motor eigene Strategien fuer Splash-Toepfe? MOTOR_SPLASH=0 schaltet ab (dann der alte Kern)."""
|
||||
w = getattr(_schatten, "befehl", None)
|
||||
return bool(w and os.environ.get("MOTOR_SPLASH") != "0" and os.path.exists(os.path.join(w[3], "splash20.bin.ok")))
|
||||
|
||||
|
||||
def zustaendig(q):
|
||||
"""NLHE, Cash, nur Blinds im Topf, Zuege bekannt."""
|
||||
posten = [h.get("action") for h in q.get("history") or [] if str(h.get("action")).startswith("POST")]
|
||||
"""NLHE, Cash, nur Blinds (und Splash) im Topf, Zuege bekannt."""
|
||||
posten = [h.get("action") for h in q.get("history") or [] if str(h.get("action")).startswith("POST") and not h.get("splash")]
|
||||
return bool(q.get("variant") == "NLHE" and not q.get("_turnier") and not q.get("tournament")
|
||||
and q.get("legalActions") and not q.get("_splash") and all(x in ("POST_SB", "POST_BB") for x in posten))
|
||||
and q.get("legalActions") and (not q.get("_splash") or splash_da()) and all(x in ("POST_SB", "POST_BB") for x in posten))
|
||||
|
||||
|
||||
def gueltig(q, r):
|
||||
|
||||
Reference in New Issue
Block a user