{"by":"Core_Dev","descendants":63,"id":46641992,"kids":[46647046,46647183,46647659,46646403,46646255,46646529,46648686,46646694,46646935,46648661,46646415,46646312,46646401,46646936,46646405,46646766,46646387,46652305,46648460,46646493,46646640,46646229,46647982,46647137,46646297,46646743,46648285,46647084,46645610,46648234,46646194],"score":90,"text":"I am a solo developer, and I built Core MBA because I was frustrated with the &quot;video course&quot; default in business education.<p>I wanted to build a &quot;compiler for business logic&quot;—a tool where I could read a concept in 5 minutes and immediately test it in a hostile environment to see if my strategy actually compiles or throws a runtime error.<p>The project is a business simulator built on React 19 and TypeScript.<p>The core technical innovation isn&#x27;t just using AI; it&#x27;s the architecture of a closed loop between a deterministic economic engine and a generative AI validation layer.<p>The biggest technical hurdle was building the Market Engine.<p>I needed it to be mathematically rigorous, not a hallucinating chatbot. I wrote a custom `useMarketEngine.ts` hook that runs a discrete-event simulation. Every &quot;run cycle,&quot; it solves a system of equations, including a specific Ad Fatigue formula—`1 &#x2F; (1 + (power - 1) * fatigueFactor)`—to force diminishing returns.<p>I also coded the &quot;Theory of Constraints&quot; directly into the state management: the system enforces bottlenecks between Inventory, Demand, and Capacity. For instance, a single employee has a hard cap of 7 operations per day. If you scale demand beyond that without hiring, the system burns your cash on lost orders.<p>To handle the educational content, I moved away from hardcoded quizzes.<p>I built a module that pipes the static lesson text into Gemini Flash to generate unique &quot;Combat Cases&quot; on the fly. The AI validates your strategy against the specific principles of the lesson (like LTV&#x2F;CAC) rather than generic business advice.<p>These two engines are connected by a &quot;Liquidity Loop.&quot;<p>Passing the AI cases earns you virtual capital ($500), which is the only fuel for the Market Engine. You literally cannot play the game if you don&#x27;t learn the theory.<p>If you go bankrupt, my heuristic `Advisor` analyzes your crash data—comparing `lostRevenue` vs `lostCapacity`—and links you back to the exact lesson you ignored.<p>I am inviting you to test the full loop: read a brief, pass the AI simulation (Combat Cases ), and try to survive in the Market Engine.<p>I specifically need feedback on:\n1. The Content: I aimed for maximum density—are the lessons <i>too</i> dry?\n2. The AI Simulation: Does it accurately validate your logic based on the lesson?\n3. The Market Economy: Does the math feel balanced, or is the &quot;Ad Fatigue&quot; too punishing?","time":1768527715,"title":"Show HN: I built a text-based business simulator to replace video courses","type":"story","url":"https://www.core-mba.pro/"}