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)
Adjusted column labels for better alignment. Added the parity-magic interactive under the Games section with a working share component and copy link functionality.
-edited src/App.tsx
-edited src/components/ParityBitsGame.tsx
Updated parity bits game to make labels persistent after animation. Highlights now use yellow for white cells and orange for black cells, including the last row and column. Also fixed spacing issues with column labels.
- Changed parity indicators to display the count of black cells instead of "odd" or "even".
- Made yellow highlights translucent to allow visibility of underlying black cells.
- Added a "Random Start" option to initialize the grid with a random subset of black cells.