puzbox v0.4
Three new puzzles and Playwright testing
Productive day with three new puzzles. Puzzle09 introduces LED toggle buttons where pressing changes the LED color. Puzzle10 features rotating LEDs that spin based on dial input. Puzzle11 is the most complex yet, with a depth-split shell design and a new segmented slider widget that snaps between discrete positions along a track.
Added a declarative track path compiler for defining slider paths, and implemented snap-to-edge behavior for the Dial3D widget so it locks to specific angles.
Set up Playwright testing infrastructure to automate puzzle solving. Created tests for puzzles 04, 05, and 11 with reusable fixtures for widget interactions. This will help catch regressions as the puzzle mechanics get more sophisticated.
Fixed some alignment issues with puzzle09’s LED buttons and corrected the dial-to-LED angle offset in puzzle05. Also synced dial rotation to the device hinge animation for smoother visual feedback.
More puzbox
An interactive 3D puzzle box built with React Three Fiber · play puzbox