Improve button functionality for Presents Puzzle by debugging and updating pause/step logic, ensuring proper initialization and synchronous pause handling, and aligning behavior with other interactives.
X-Lovable-Edit-ID: edt-39d880a1-7b02-467d-a083-abd2257f5e13
Enhance Presents Puzzle with pause, step, and navigation controls:
- Add pause, step next/back, step to start/end buttons
- Integrate into existing puzzle controls and state
- Enable stepping through simulation without auto-rotation/motion
X-Lovable-Edit-ID: edt-d7d358ef-a108-4530-a942-9a6508865305
Add a per-player counter showing boxes opened next to Alice and Bob's names (format x/100, starting at 0). Integrates with existing PresentsPuzzle flow by updating UI to display aliceOpened.size and bobOpened.size as counters alongside names, reflecting progress as boxes are opened.
X-Lovable-Edit-ID: edt-0898b52f-a2aa-466c-a315-141301ce3db6
- Constrain Presents Puzzle arena width to match top navigation by applying max-w-6xl container in PresentsPuzzle page
- Ensure the content area lines up with the menu endpoints for a consistent layout
X-Lovable-Edit-ID: edt-95431621-f64c-4374-b529-5daafa5aeda1
Change the acknowledgement card background in PresentsPuzzle to a light green (bg-green-50) for better contrast.
X-Lovable-Edit-ID: edt-e8c85a09-6b92-4a38-9ab7-926768f1d164
Adjust Presents Puzzle page to render in a regular box layout like others and add an acknowledgment box citing inspiration sources with relevant links. Update routing/page wrapper and insert acknowledgement card referencing Daniel Litt and Gil Kalai.
X-Lovable-Edit-ID: edt-1d745020-f3ef-4326-9252-099a2249f48b
- Both players now properly tie when they find all 26 presents on the same turn
- Single simulation displays "It's a tie!" message when both finish together
- Batch simulation (100 rounds) now tracks and displays ties separately
- Updated results grid to show three columns: Alice, Bob, and Ties
- Fixed logic to check both players on the same iteration
- No longer unfairly favors Alice in tie scenarios
Created a new interactive puzzle that explores probability and search strategies:
- Alice opens boxes in sequential order (1, 2, 3, ...)
- Bob opens odds first, then evens (1, 3, 5, ..., 2, 4, 6, ...)
- 26 presents randomly distributed in 100 boxes
- Interactive visualization with two 10×10 grids
- Single simulation with animated opening process
- Batch simulation of 100 rounds to analyze win rates
- Added to Uncertainty theme page (first interactive in this category)