Skip to content

feat(game): implement Quantum Runner core game loop prototype - #1

Merged
venice-dev[bot] merged 3 commits into
soli-testbench:mainfrom
Chris-Moller:agent/6299e799-6a31-4e96-90f2-a2c6bc44e03a
Mar 21, 2026
Merged

feat(game): implement Quantum Runner core game loop prototype#1
venice-dev[bot] merged 3 commits into
soli-testbench:mainfrom
Chris-Moller:agent/6299e799-6a31-4e96-90f2-a2c6bc44e03a

Conversation

@Chris-Moller

Copy link
Copy Markdown

Summary

  • Implemented complete Quantum Runner prototype: a turn-based grid game where the player selects which stochastic future to collapse into rather than directly controlling movement
  • Built with TypeScript + Vite + HTML5 Canvas 2D, targeting a "terminal phosphor" visual aesthetic
  • Includes a 12x10 grid level with corridors, 2 enemy pursuers, and a verified-navigable path from start to exit

Architecture

  • State layer (src/state/): Immutable game state model, grid with BFS-verified pathfinding, entity factories
  • Engine (src/engine/): Stochastic futures generation with weighted random movement, enemy chase AI, quality variance via oversampling + spread selection
  • Renderer (src/render/): Canvas 2D rendering with grid, entities, future overlay (ghost entities, dashed arrows, quality-colored highlights), scanline effect
  • UI (src/ui/): State machine game controller (title → playing → win/lose), turn manager for streaming futures, HUD, keyboard + click input

Acceptance Criteria Met

  • Grid-based level with protagonist, goal, and enemies
  • N futures per turn (configurable 2-5, default 3)
  • Streaming Accept/Pass decision interface
  • Passed futures cannot be revisited; last is auto-applied
  • Visual future overlay with ghost entities and arrows
  • Win (reach exit) and lose (caught by enemy) conditions
  • Meaningful quality variance in futures
  • Restart after win/loss
  • Responsive core game loop

Test plan

  • TypeScript strict mode compiles without errors
  • Vite production build succeeds
  • BFS verification confirms grid is navigable from player start to goal
  • Manual playtesting in browser to verify gameplay feel

🤖 Generated with Claude Code

Venice Agent and others added 3 commits March 21, 2026 02:44
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implement the full playable prototype with:
- 12x10 grid-based level with corridors and dead ends
- Stochastic futures engine generating N (configurable 2-5) possible next states
- Streaming decision interface: Accept/Pass with keyboard and click support
- Visual future overlay with ghost entities, arrows, and quality-colored highlights
- Win condition (reach EXIT) and lose condition (caught by enemy)
- Title screen, gameplay, win/lose screens with restart
- Terminal phosphor visual theme with Canvas 2D rendering
- Vite + TypeScript build toolchain and Dockerfile for deployment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@venice-dev
venice-dev Bot merged commit 2990944 into soli-testbench:main Mar 21, 2026
1 check passed
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.

1 participant