Skip to content

Add standalone browser-based shot simulator with physics test suite#7

Merged
cgpadwick merged 1 commit into
mainfrom
feature/shot-simulator
Feb 20, 2026
Merged

Add standalone browser-based shot simulator with physics test suite#7
cgpadwick merged 1 commit into
mainfrom
feature/shot-simulator

Conversation

@cgpadwick

Copy link
Copy Markdown
Contributor

Self-contained HTML tool (scripts/shot_simulator.html) for interactive shot testing independent of the RL model. Ports the Python physics engine to JavaScript with real-time trajectory preview, WASD robot movement, adjustable velocity/elevation/azimuth sliders, air resistance toggle, and hub hit detection with visual feedback.

Includes a physics validation framework:

  • scripts/generate_physics_test_data.py generates 28 reference test cases from the Python physics engine
  • scripts/physics_test_data.json stores reference values
  • Built-in test runner in shot_simulator.html (?test=1) validates JS physics matches Python within tolerance

Also updates CLAUDE.md with DGX Spark install instructions, resume training command, and --analyze-by-distance flag.

Self-contained HTML tool (scripts/shot_simulator.html) for interactive
shot testing independent of the RL model. Ports the Python physics engine
to JavaScript with real-time trajectory preview, WASD robot movement,
adjustable velocity/elevation/azimuth sliders, air resistance toggle,
and hub hit detection with visual feedback.

Includes a physics validation framework:
- scripts/generate_physics_test_data.py generates 28 reference test cases
  from the Python physics engine
- scripts/physics_test_data.json stores reference values
- Built-in test runner in shot_simulator.html (?test=1) validates JS
  physics matches Python within tolerance

Also updates CLAUDE.md with DGX Spark install instructions, resume
training command, and --analyze-by-distance flag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cgpadwick cgpadwick merged commit 9b24f13 into main Feb 20, 2026
3 checks passed
@cgpadwick cgpadwick deleted the feature/shot-simulator branch February 20, 2026 03:33
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