4-0
NBA Legends Playoffs Simulator
Browser game where you build a team from 184 NBA legends, simulate an 82-game season against 36 historic squads and fight through four best-of-seven playoff rounds for the title.

The Challenge
Design a replayable sports simulation that feels fair and readable: hundreds of tunable numbers had to produce realistic records, box scores and upsets, and a run had to survive a page refresh without letting the player re-roll their luck.
The Solution
Wrote the game engine as pure TypeScript reducers driven by a seeded, serializable RNG, so every action resumes from the saved cursor and refreshing never changes the outcome. All balance constants live in a single module, checked by a script that plays hundreds of automated runs, and the engine is covered by Vitest tests. The run is persisted with Zustand and validated with Zod schemas plus versioned migrations, so corrupted or old saves never crash the app. Motion drives the slot-machine draws and live play-by-play.
Key Deliverables
- Two modes: draft five real legends, or build a "Frankenstein" star inheriting one attribute from each drawn legend
- Normal and Almanac difficulties (Almanac hides player ratings)
- 82-game season with seeding, then best-of-seven playoff series with live play-by-play
- Buff and debuff cards after every playoff game, plus in-game events and injuries
- S–F run grade with Wordle-style shareable result