Skip to content

Build initial playable Code Kingdom web MVP#1

Open
mwk28 wants to merge 1 commit into
mainfrom
codex/design-code-kingdom-web-game-concept
Open

Build initial playable Code Kingdom web MVP#1
mwk28 wants to merge 1 commit into
mainfrom
codex/design-code-kingdom-web-game-concept

Conversation

@mwk28

@mwk28 mwk28 commented Feb 6, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Turn the Code Kingdom concept into a lightweight, playable browser MVP to validate core mechanics and iterate on gameplay.
  • Provide an interactive demo that maps coding behaviors (solve/explain/study) to in-game systems like army, walls, library, and morale.
  • Create a local, easy-to-run preview so designers can test balance and UX quickly.

Description

  • Add index.html which implements a single-page UI with panels for player kingdom stats, battle actions, rival scouting, and a chronicle log.
  • Add style.css to provide a dark, responsive layout and styled stat cards, action buttons, and log presentation.
  • Add script.js that implements game state, generateEnemy, applyAction, launchAttack, rendering, and a short battle-resolution formula tying coding actions to unit generation and defense.
  • Update README.md to document the game concept, attributes, attack system, included MVP features, and local run instructions.

Testing

  • Ran node --check script.js to validate JavaScript syntax, which completed successfully.
  • Launched a local static server using python3 -m http.server 4173 and confirmed the server served the app.
  • Automated browser load via Playwright to open http://127.0.0.1:4173 and captured a full-page screenshot artifact to validate rendering, which succeeded.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant