simulatecraft.server¶
simulatecraft.server
¶
FastAPI live viewer: REST control, WebSocket broadcast, static map UI.
SimulationServer
¶
SimulationServer(runner: Runner, host: str = '127.0.0.1', port: int = 8000)
Owns the uvicorn server + a background simulation task.
Usage::
runner = Runner(environment=env, agents=[...])
async with SimulationServer(runner) as server:
await server.serve()