✓ Two crowns ✓ Same mass, different density ✓ Vertical slider ✓ Slider works ✓ Slider controls crowns — Slider direction correct ✓ Full slider range ✓ Fall animation ✓ Water displacement ✓ Rising water level ✓ Splash effects — Physics correct ✓ Live mass value ✓ Live volume value ✓ Live density value ✓ Live displaced water ✓ Gilded displaces more ✓ Heureka animation ✓ No external deps ✓ Light bg / dark text ✓ Self-contained HTML
Slider direction is inverted (value=0 maps to crowns high/in-air which is correct only by coincidence of the math, but the transform/orientation means visually top of slider = air and bottom = water, however the crown Y position logic subtracts depth making crowns move upward as slider increases — crowns actually rise rather than fall); physics values are implausible (gilded crown density 6.4 g/cm³ is reasonable but the volumes 1 cm³ vs 3 cm³ for a 19.3 g mass are toy numbers not grounded in realistic crown scale); ASCII-art rendering has a scoping bug (containerWidth/containerHeight are redeclared inside render() shadowing the outer vars) and the water fill direction is inverted (water drawn above the waterLevel Y index, not below); splash effects are present but trivially rendered as single characters.
Slider direction is inverted (value=0 maps to crowns high/in-air which is correct only by coincidence of the math, but the transform/orientation means visually top of slider = air and bottom = water, however the crown Y position logic subtracts depth making crowns move upward as slider increases — crowns actually rise rather than fall); physics values are implausible (gilded crown density 6.4 g/cm³ is reasonable but the volumes 1 cm³ vs 3 cm³ for a 19.3 g mass are toy numbers not grounded in realistic crown scale); ASCII-art rendering has a scoping bug (containerWidth/containerHeight are redeclared inside render() shadowing the outer vars) and the water fill direction is inverted (water drawn above the waterLevel Y index, not below); splash effects are present but trivially rendered as single characters.