Skip to content

fix #7: Feature: Theme Variations - #43

Merged
CuriosityQuantified merged 1 commit into
mainfrom
feat/theme-variations
Aug 9, 2026
Merged

CuriosityQuantified merged 1 commit into
mainfrom
feat/theme-variations

Conversation

@CuriosityQuantified

Copy link
Copy Markdown
Owner

Closes #7

Add selectable scenario themes (classic default + sci-fi, historical,
business, environmental, political) mirroring the difficulty (#5) feature
and kept orthogonal to it so grading stays balanced across themes.

Backend:
- models/simulation.py: ThemeType enum; theme field on SimulationState and
  SimulationRequest; ThemeChangeRequest.
- prompts/scenario_generation_prompt.py: THEME_INSTRUCTIONS (scenario_flavor,
  visual_style; classic = no override) + get_theme_instructions.
- services/llm_service.py: create_idea injects theme setting into the scenario
  prompt; create_video_prompt injects theme visual style for theme-appropriate
  media.
- services/simulation_service.py: thread theme through create_new_simulation,
  all context dicts, both video-prompt calls; add change_theme.
- api/routes.py: create passes theme; new PUT /simulations/{id}/theme for
  seamless mid-game switching.

Frontend (pages/simulation.jsx): THEME_STYLES + theme state, start-screen
theme selector, in-sim indicator, and mid-game change button.

Tests/CI: tests/unit/test_theme.py (enum/model/prompt/media coverage +
balanced-difficulty invariant + scenario-flavor and visual-style LLM-input
tests), tests-e2e/theme.spec.js, and a theme regression step in CI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
save-the-world Ready Ready Preview Aug 9, 2026 12:55pm
sim-local Ready Ready Preview Aug 9, 2026 12:55pm

@CuriosityQuantified
CuriosityQuantified merged commit f720830 into main Aug 9, 2026
6 checks passed
@CuriosityQuantified
CuriosityQuantified deleted the feat/theme-variations branch August 9, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Theme Variations

1 participant