Skip to content

Set up Cursor Cloud dev environment + document run/test workflow#2

Draft
jpt4 wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-8ad9
Draft

Set up Cursor Cloud dev environment + document run/test workflow#2
jpt4 wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-8ad9

Conversation

@jpt4

@jpt4 jpt4 commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

Sets up the development environment for the Strait of Hormuz tower-defense project (Node self-play tooling + single-file browser game) and documents the non-obvious run/test workflow for future cloud agents. No application code was modified.

  • Added a ## Cursor Cloud specific instructions section to AGENTS.md covering: no build step / empty lockfile, the npm test / npm run test:extended commands, how to serve and play hormuz-game.html, and gotchas (browser placement zones, no window game API, self-play/run.js balance auto-commits, shared headless/browser game logic).
  • Update script (startup dependency refresh): npm ci.

Verification

Environment validated end-to-end:

  • npm ci — clean, 0 vulnerabilities (no runtime deps).
  • npm test — 23/23 pass (5 suites).
  • npm run test:extended — headless game smoke passes; engine places units and runs a full ~7300-tick game.
  • Browser game served via python3 -m http.server 8000; loaded hormuz-game.html, in-browser regression suite auto-ran (132/136; the 4 failures are pre-existing ADR-0005 adaptive-difficulty checks unrelated to setup), and completed the hello-world action of placing defensive units (FUNDS drops $500M→$250M for ASCM Battery, then by $45M for Drone Swarm) which then engage enemy waves.

Hello-world play (unit placement)

hormuz_unit_placement_demo-2.mp4

ASCM Battery placed: FUNDS dropped to $250M, unit inspection panel + range ring
In-browser regression suite results in console

test_output.log

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: jpt4 <torreaiworks01@gmail.com>
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