The page is built: everything is in a single `index.html`, with three.js 0.160.0 loaded from jsDelivr at a pinned version. I ran the mechanism and API under Node and took headless-Chrome screenshots from several views. I didn't test dragging the wheel or the keyboard in a real browser.

**How the gear behaves**
- **Direction:** turning the top of the wheel to starboard winds the port rope onto the barrel and pays out the starboard rope. The tiller goes to port, the rudder's trailing edge swings to starboard and the bow turns to starboard.
- **Gearing and stop:** 540° of wheel gives 35° of rudder. The wheel can't go past that; extra input is clamped at the stop.
- **Ropes:** each rope goes from the barrel, down through an opening in the deck, round three sheaves (under the wheel, out at the ship's side, then turned inboard at the stern) and onto a curved piece on the tiller's end (a "sweep") centred on the rudder's pivot. I sized the barrel (0.143 m radius) so that one wheel turn takes up exactly as much rope as the sweep pays out.
- **Rope lengths:** at hard over, one rope shortens by 1.34 m and the other lengthens by the same amount. Their combined length stays the same to within about 3 mm.
- **No clipping:** I checked the clearances by working out the geometry; I didn't run an automatic collision test. The ropes run between the sheave plates and lie in grooves on the sweep. The rudder hangs on pintles in gudgeons and clears the sternpost and the overhanging stern.
- **Rope movement:** the twist pattern on the ropes travels as they run, so you can see which way each one is moving.
- **Helm orders:** "Midships", "Port the helm", "Hard a-port" and the starboard equivalents, named for the side the tiller goes to. A short line under the order explains what follows from it.
- **Ship:** sails at 8 knots. With the rudder amidships she holds her course. With helm on she turns at up to about 1.6°/s, which shows on a compass card, in the moving sea and in a wake line.

**Using the page**
- **Turning the wheel:** drag its rim or spokes, use ←/→ or A/D (Shift is faster, M returns to midships), the slider, or the order buttons.
- **Camera:** orbit, zoom and pan freely. View buttons jump to the wheel, the gear below deck, the tiller, the rudder or the whole ship. Clicking a part name in the notes also moves the camera there.
- **Seeing inside:** the deck can be solid, faded or cut away, and the hull can be see-through. Labels can be turned off.
- **Notes:** a side panel explains each part and the helm orders of the period, and can be hidden.

**Test API (`window.ship`)**
- It lives in a separate plain script, so it works even if three.js fails to load from the CDN.
- `setWheel` clamps to ±540 and `state()` reflects the change immediately.
- `advance()` steps the simulation in fixed 0.05 s steps, so results don't depend on the frame rate. The heading only changes as time passes.
- The page keeps advancing the simulation in real time too, so a test that reads the heading some time after calling `advance()` will see a little extra turning. The "pause" checkbox stops this.

Measured results:

| Wheel | Tiller | Rudder | Order | Port rope | Starboard rope |
|---|---|---|---|---|---|
| 0 | 0 | 0 | Midships | 12.231 m | 12.031 m |
| +540 | −35 | +35 | Hard a-port | 10.888 m | 13.376 m |
| −540 | +35 | −35 | Hard a-starboard | 13.577 m | 10.688 m |

At hard a-port the heading goes from 0° to about 102° after 70 s.

**Behaviours you might not expect**
- The two ropes differ by 0.2 m at midships because their routes aren't mirror images (the blocks under the wheel are one ahead of and one behind the barrel).
- "Midships" is shown for wheel angles within ±0.5°.
- After you return the wheel to midships, the ship's swing takes a few seconds to die away before she holds her new course.

While testing, another process was already serving a different page on port 8765, so I used a different port. I removed my temporary test page afterwards.