ai-code-battle/web/src
jedarden d21c621485 test(web): add Director Mode unit tests per §16.10
Add comprehensive test coverage for the Director Mode (Adaptive Auto-Speed
Playback) implementation, verifying the action density formula and speed
mapping match the plan specification exactly.

Tests cover:
- Action density calculation (deaths×3.0 + captures×5.0 + energy×0.5 + spawns×1.0 + delta_win_prob×10.0)
- Speed mapping (0→16x, 0.1-1.0→8x, 1.0-3.0→4x, 3.0-5.0→2x, 5.0+→1x)
- Speed schedule computation with target duration scaling
- Win probability delta calculation

All 16 tests pass, confirming the Director Mode implementation in
director.ts correctly implements §16.10 of the plan.

Closes: bf-1p5y

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 23:16:42 -04:00
..
components test(web): add Director Mode unit tests per §16.10 2026-05-25 23:16:42 -04:00
lib feat(web): implement accessibility.ts per plan §15.3 2026-05-25 07:37:31 -04:00
pages fix(web): increase replay.test.ts timeout for first module load 2026-05-25 20:08:45 -04:00
styles feat(web): add rivalry platform integration (plan §13.5) 2026-05-25 07:21:27 -04:00
agentation-overlay.ts fix(api): rename /api/ui-feedback to /api/feedback per plan §13.6 2026-04-22 13:22:47 -04:00
api-types.ts feat(web): route R2 assets through Pages Function instead of r2.aicodebattle.com 2026-04-30 07:55:44 -04:00
app.ts feat(web): add individual rivalry page route (plan §13.5) 2026-05-25 08:24:33 -04:00
commentary.ts Add Phase 7-9 features: evolution dashboard, WASM sandbox, enhanced replay 2026-03-29 01:13:23 -04:00
embed.ts fix(web): fix replay viewer routing and embed fallback 2026-04-30 13:07:13 -04:00
engine.ts feat(web): add combat_deaths to MatchResult and display in sandbox 2026-05-24 18:42:38 -04:00
main.ts feat(replay): add fog-of-war perspective toggle and minimap per §7.3 2026-04-23 00:30:46 -04:00
og-tags.ts feat(web): route R2 assets through Pages Function instead of r2.aicodebattle.com 2026-04-30 07:55:44 -04:00
replay-commentary.ts feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
replay-viewer.ts feat(web): handle zone_death events in replay viewer 2026-05-25 15:28:39 -04:00
router.ts fix(web): fix replay viewer routing and embed fallback 2026-04-30 13:07:13 -04:00
test-setup.ts fix(web): add matchMedia mock to prevent unhandled test errors 2026-05-25 00:18:32 -04:00
types.ts feat(web): add combat_deaths to MatchResult and display in sandbox 2026-05-24 18:42:38 -04:00
win-probability.ts Add Phase 7-9 features: evolution dashboard, WASM sandbox, enhanced replay 2026-03-29 01:13:23 -04:00