Refresh web UI and make ML imports optional
All checks were successful
ci / tests (push) Successful in 21s
All checks were successful
ci / tests (push) Successful in 21s
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user