From 9a7ccf7aa7d05b3ce3b563b54639fafe1d920ebd Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Sun, 22 Jun 2025 23:29:57 -0700 Subject: [PATCH] add engine logic to simulation route --- router/handlers/simulation.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/router/handlers/simulation.go b/router/handlers/simulation.go index 532124a..181ef38 100644 --- a/router/handlers/simulation.go +++ b/router/handlers/simulation.go @@ -4,6 +4,7 @@ import ( "encoding/json" "net/http" "systemdesigngame/internal/design" + "systemdesigngame/internal/simulation" ) type SimulationHandler struct{} @@ -27,7 +28,8 @@ func (h *SimulationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - // TODO: Run simulation engine here + engine := simulation.NewEngineFromDesign(design, 10000, 100) + engine.Run() // For now, return a mock successful response but eventually, we want to go to the results page(s) response := SimulationResponse{