Commit graph

328 commits

Author SHA1 Message Date
gpt-engineer-app[bot]
e6fcb900ba Make presents puzzle bg green
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
2025-11-19 03:00:28 +00:00
gpt-engineer-app[bot]
532deb3f93 Changes 2025-11-19 03:00:27 +00:00
gpt-engineer-app[bot]
1c6b1641e4 Visual edit in Lovable
Edited UI in Lovable
2025-11-19 02:59:44 +00:00
gpt-engineer-app[bot]
4e4c667fa9 Fix presents puzzle layout
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
2025-11-19 02:53:40 +00:00
gpt-engineer-app[bot]
06664999dd Changes 2025-11-19 02:53:40 +00:00
Neeldhara Misra
639ee8c4bb
Merge pull request #2 from neeldhara/claude/interactive-math-puzzle-01JBxSjga99gZmemjneZpi5C
Fix tie detection in Presents Puzzle
2025-11-19 08:17:24 +05:30
Claude
489df7b113
Fix tie detection in Presents Puzzle
- 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
2025-11-19 02:35:15 +00:00
Neeldhara Misra
7a8e6bb5cd
Merge pull request #1 from neeldhara/claude/interactive-math-puzzle-01JBxSjga99gZmemjneZpi5C
Claude code's attempt at encoding a new probability puzzle involving 26 gifts and 100 boxes.
2025-11-19 07:58:04 +05:30
Claude
d0582d3fe5
Update package-lock.json from npm install 2025-11-19 02:20:54 +00:00
Claude
d250cfbca9
Add Presents Puzzle interactive to Discrete Math > Uncertainty
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)
2025-11-19 02:19:48 +00:00
gpt-engineer-app[bot]
eccdabf64d Fix cube coloring interaction 2025-10-28 05:23:08 +00:00
gpt-engineer-app[bot]
9a127a5e22 Add Cube Coloring interactive 2025-10-28 05:18:26 +00:00
gpt-engineer-app[bot]
7a166fc8d0 Add Burnside's Lemma interactive 2025-10-28 04:55:50 +00:00
gpt-engineer-app[bot]
ee47d3b8be Fix copy link for Neighbor Sum Avoidance 2025-09-30 20:15:26 +00:00
gpt-engineer-app[bot]
d2de5581b6 Fix copy link feature 2025-09-30 20:09:49 +00:00
gpt-engineer-app[bot]
391210fa72 Add number selection and help text 2025-09-30 19:40:12 +00:00
gpt-engineer-app[bot]
753685f5ca Reverted to commit 10fec3a3f6 2025-09-30 19:38:24 +00:00
gpt-engineer-app[bot]
2f7212587a Refactor Neighbor Sum Avoidance interactive 2025-09-30 19:34:48 +00:00
gpt-engineer-app[bot]
10fec3a3f6 Add Neighbor Sum Avoidance interactive 2025-09-30 19:14:06 +00:00
gpt-engineer-app[bot]
e398e1e267 Add another line break 2025-09-05 06:32:49 +00:00
gpt-engineer-app[bot]
0a3c273a6f Add line break before note 2025-09-05 06:30:23 +00:00
gpt-engineer-app[bot]
75708dfb44 Add explanatory note to craps game 2025-09-05 06:28:37 +00:00
gpt-engineer-app[bot]
b607bfa385 Remove header and footer 2025-09-05 06:25:23 +00:00
gpt-engineer-app[bot]
31c019ff31 Add craps game to index listing 2025-09-05 06:24:24 +00:00
gpt-engineer-app[bot]
0485afd776 Refactor standalone page 2025-09-05 06:22:59 +00:00
gpt-engineer-app[bot]
647963600f Disable "Roll Dice" on win/loss 2025-09-05 06:20:31 +00:00
gpt-engineer-app[bot]
461decff78 Update interactives listing and share link 2025-09-05 06:18:30 +00:00
gpt-engineer-app[bot]
975808f831 Add descriptive paragraph to Craps game 2025-09-05 06:16:45 +00:00
gpt-engineer-app[bot]
095c7ccbf7 Visual edit in Lovable 2025-09-05 06:15:52 +00:00
gpt-engineer-app[bot]
e9d524df70 Refactor: Rename Craps game title 2025-09-05 06:13:18 +00:00
gpt-engineer-app[bot]
0207a808ef Add live updates to slow mode 2025-09-05 05:58:35 +00:00
gpt-engineer-app[bot]
c3e5790ee5 Add slow mode toggle 2025-09-05 05:05:36 +00:00
gpt-engineer-app[bot]
189c4bde54 Add simulation functionality 2025-09-05 05:03:21 +00:00
gpt-engineer-app[bot]
ad9dfb54b0 Fix modal options 2025-09-05 05:00:33 +00:00
gpt-engineer-app[bot]
0a7bfe4389 Add custom rules modal 2025-09-05 04:59:01 +00:00
gpt-engineer-app[bot]
f71baee308 Fix Craps game page link 2025-09-05 04:57:25 +00:00
gpt-engineer-app[bot]
36d3b20bff Add Craps game interactive 2025-09-05 04:07:43 +00:00
gpt-engineer-app[bot]
f72073358b Fix parity-magic copy link 2025-08-24 04:39:56 +00:00
gpt-engineer-app[bot]
3cd75771fb Fix bottom-right corner 2025-08-23 05:03:01 +00:00
gpt-engineer-app[bot]
26e872f7e7 Adjust column label alignment
Center align column labels with respect to their respective columns.
2025-08-22 17:50:11 +00:00
gpt-engineer-app[bot]
47bf4eb49b Fix font color
Change font color to white for the "Flipped bit at position" text.
2025-08-22 17:47:12 +00:00
gpt-engineer-app[bot]
4b5586ec82 Fix column label alignment
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
2025-08-22 17:44:57 +00:00
gpt-engineer-app[bot]
02714359af Fix parity counts and spacing
Updated parity counts to include parity bits. Fixed column spacing and displayed counts on the last row and column. Set default grid size to 5x5.
2025-08-22 17:41:41 +00:00
gpt-engineer-app[bot]
de640b5029 Fix parity bits highlighting and labels
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.
2025-08-22 17:39:03 +00:00
gpt-engineer-app[bot]
5c407b8b7f Refactor parity bits game
- 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.
2025-08-22 17:36:53 +00:00
gpt-engineer-app[bot]
6813e73b97 Refine parity bits interactive
Update parity bits interactive to allow flipping any bit, include parity bits in highlights, display odd/even text alongside highlights, and remove red border from flipped bits.
2025-08-22 17:33:19 +00:00
gpt-engineer-app[bot]
0bb5653759 Refine parity bits identification
Update parity bits interactive to highlight flipped bit location in green, display row/column parity ("odd" in red), and briefly highlight all black cells upon clicking "Identify Flip".
2025-08-22 17:30:30 +00:00
gpt-engineer-app[bot]
352b2342ed Fix parity bits calculation
The parity bits are now correctly calculated and displayed, reflecting the parity of their respective rows and columns.
2025-08-22 17:26:29 +00:00
gpt-engineer-app[bot]
db72f6c63c Add parity bit interactive
Implement a new interactive game based on parity bits. The game features an n x n grid of toggleable squares, where 'n' is adjustable via a slider (2-10). Users can set the grid, add parity bits to an extra row and column, flip a bit, and then identify the flipped bit by highlighting the corresponding row and column.
2025-08-22 17:23:36 +00:00
gpt-engineer-app[bot]
5adaa9e1a3 Add routing and fix copy link 2025-08-22 11:44:49 +00:00