16 lines
960 B
Python
16 lines
960 B
Python
"""Echte Preflop-Anfragen (anfragen.jsonl) durch einen Kern, Idle-Prioritaet.
|
|
python messung_preflop/kern_lauf.py <kern.exe> <aus.jsonl> [ENV=WERT ...]"""
|
|
import os, subprocess, sys
|
|
exe, aus, *paare = sys.argv[1:]
|
|
env = dict(os.environ)
|
|
# Live-Kern-Schalter wie betrieb/kern_schalter.txt (Stand eb6275a6)
|
|
env.update(MDF_UNREAD='0', TURN_SPIEL='grund', OPEN_JAM='1', RAKE_LIVE='1', RERAISE_TIEFE='1',
|
|
RERAISE_BLUFF='erst', TURN_RAISE_BLUFF='0', TURN_RAISE_NUR='rtb:0.30', STATION_POSTFLOP='schmal',
|
|
GEGNER_ZAEHLUNG='raise',
|
|
GRUNDSTRATEGIE=r'D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten')
|
|
for p in paare:
|
|
k, v = p.split('=', 1); env[k] = v
|
|
with open('messung_preflop/anfragen.jsonl', 'rb') as ein, open(aus, 'wb') as raus:
|
|
subprocess.run([os.path.abspath(exe)], stdin=ein, stdout=raus, env=env, check=True, creationflags=0x40)
|
|
print(aus, sum(1 for _ in open(aus, 'rb')))
|