Skip to content

Turn Based Game Demo

Nick Rygiel edited this page Jul 4, 2026 · 1 revision

Turn-Based Game Demo

The repository now includes a no-build browser demo that makes the dual-engine pattern concrete. It is synthetic, dependency-free, and neutral; it is not tied to any private game repo.

Repo path:

examples/turn-based-game/index.html

Flow

  1. Human command text is accepted in a console-style input.
  2. A deterministic parser compiles it into intent telemetry.
  3. A registered primitive hydrates a preview panel.
  4. The preview shows cost, risk labels, fallback route, source assertions, and separate advisor interpretation.
  5. State-changing work pauses at an approval gate.
  6. Approval writes a deterministic ledger event and returns focus.

Why It Matters

The demo shows the core pwcli-core idea without adding a framework: AI or parser output should select known panels and typed execution targets, not invent routes, UI code, schemas, or hidden state changes.

Related PR

Clone this wiki locally