Refresh web UI and make ML imports optional
All checks were successful
ci / tests (push) Successful in 21s

This commit is contained in:
dan
2025-12-25 09:15:10 +03:00
parent f542747d5e
commit 2499deb071
49 changed files with 4367 additions and 500 deletions

View File

@@ -47,7 +47,7 @@ class GameRuntimeManager:
slots = game.slots.get("slots", [])
names = [slot.get("name") for slot in slots if slot.get("name")]
colors = [slot.get("color", "player") for slot in slots if slot.get("name")]
if game.status == "running" and len(names) >= 2:
if game.status == "running" and len(names) >= 3:
config = GameConfig(player_names=names, colors=colors, seed=game.seed)
env = CatanEnv(config)
events = session.exec(