Commit graph

346 commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
3dad5e12df Add undo functionality
Implemented an undo move feature for the subtraction game, allowing users to revert their last action.
2025-08-22 11:39:35 +00:00
gpt-engineer-app[bot]
28e09a1e28 Add numbers below circles
Add small-sized black font numbers below the circles in the Subtraction Game.
2025-08-22 11:37:18 +00:00
gpt-engineer-app[bot]
ddb1c17cb5 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 11:26:07 +00:00
gpt-engineer-app[bot]
b6dddec259 Fix Subtraction Game link
The Subtraction Game link and copy link functionality have been fixed.
2025-08-22 11:20:42 +00:00
gpt-engineer-app[bot]
eb41d56dc0 Fix copy link functionality 2025-08-22 11:17:43 +00:00
gpt-engineer-app[bot]
ae5c1544ff Add share component and UID
Add a unique identifier (UID) to the game and integrate the share component at the bottom of the page. Ensure that the copy link and QR code functionalities within the share component are operational.
2025-08-22 11:15:51 +00:00
gpt-engineer-app[bot]
8c757b0c0d Add routing for subtraction game
Add routes for the subtraction game to be accessible at `/themes/games` and `/index`.
2025-08-22 11:14:17 +00:00
gpt-engineer-app[bot]
24933851d7 Add player-specific styling
Updated Subtraction Game to visually distinguish between moves made by "Lata" and "Raj". Circles taken by Lata will now have a dashed blue border, while those taken by Raj will have a dashed purple border. Additionally, Lata's background has been changed from red to a muted blue.
-edited src/components/SubtractionGame.tsx
2025-08-22 11:09:58 +00:00
gpt-engineer-app[bot]
f48f7863cc Add hollow circles for empty state
Replace pebbles with hollow circles with a thin grey border when they are all gone.
-edited `src/components/SubtractionGame.tsx
2025-08-22 11:08:33 +00:00
gpt-engineer-app[bot]
cbe125d871 Add hover effect to circles
Add a hover effect to the yellow circles where hovering over a circle turns it and all circles to its right a muted shade of red.
2025-08-22 11:07:06 +00:00
gpt-engineer-app[bot]
4e615985fc Adjust font size in instructions
Reduced font size for the instructional text in Bulgarian Solitaire.
2025-08-22 11:05:51 +00:00
gpt-engineer-app[bot]
de1ee42956 Refine animation sequence
Adjusted the animation sequence to first sort the columns, and then fade the all-red tower to black.
2025-08-22 11:03:14 +00:00
gpt-engineer-app[bot]
106f4f0659 Smooth column sorting animation
Added smooth animation for column rearrangement in Bulgarian Solitaire, transitioning from the current abrupt sorting to a more fluid visual update.
-edited src/components/BulgarianSolitaire.tsx
2025-08-22 11:00:52 +00:00
gpt-engineer-app[bot]
5f22a2f578 Adjust box sizing for red boxes
Ensure red boxes do not exceed the size of black boxes during the animation sequence.
2025-08-22 10:59:17 +00:00
gpt-engineer-app[bot]
dc0872c3a8 Refine Bulgarian Solitaire animation
Update Bulgarian Solitaire animation to fade red highlight in, pause, move blocks to a new column, and then fade back to black.
2025-08-22 10:57:46 +00:00
gpt-engineer-app[bot]
748c12c3cf Fix Bulgarian Solitaire bugs
Update animation to fade to red and back. Debug reset functionality to ensure all states are cleared.
2025-08-22 10:53:25 +00:00
gpt-engineer-app[bot]
4eab9a899b Fix Subtraction Game bugs
Update background color transition to fade instead of blink.
Change the minimum value for n to 2.
Debug and fix issues with the reset functionality not fully clearing the game state.
2025-08-22 10:48:11 +00:00
gpt-engineer-app[bot]
68b40be8ec Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 10:17:22 +00:00
gpt-engineer-app[bot]
1e5ec2add9 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 10:16:14 +00:00
gpt-engineer-app[bot]
c21faf0710 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 10:11:45 +00:00
gpt-engineer-app[bot]
a1945611ef Add pause functionality to Bulgarian Solitaire
Update the "Playing..." button to "Pause". When clicked, the simulation will pause and the button text will change to "Continue", allowing the user to resume or reset the game.
2025-08-22 10:09:13 +00:00
gpt-engineer-app[bot]
64f864efed Update Bulgarian Solitaire instructions
Update the slider for n to represent the total number of boxes, with a range of 3 to 45. Modify the instructions to include a spoiler about the convergence to a staircase configuration for triangular numbers.
2025-08-22 10:05:32 +00:00
gpt-engineer-app[bot]
9c01501d9a Update Bulgarian Solitaire opening text
Updated the introductory text for the Bulgarian Solitaire interactive to include a note about columns holding multiple boxes and to rephrase the description of the simulation process.
2025-08-22 10:01:48 +00:00
gpt-engineer-app[bot]
6e6c8b5a42 Add "Random Start" to Bulgarian Solitaire
Added a "Random Start" option to the Bulgarian Solitaire game, allowing players to begin with a randomized initial setup.
-edited src/components/BulgarianSolitaire.tsx
2025-08-22 09:59:30 +00:00
gpt-engineer-app[bot]
7ab27088a6 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 07:13:36 +00:00
gpt-engineer-app[bot]
a77a3e7982 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 07:11:43 +00:00
gpt-engineer-app[bot]
13724037e6 Fix Bulgarian Solitaire link
Fix the broken link to Bulgarian Solitaire from the global index at `/index`.
2025-08-22 07:05:42 +00:00
gpt-engineer-app[bot]
d01d9e8290 Fix Stacking Blocks base cases
Addressed bugs in the Stacking Blocks interactive, specifically concerning base cases.
Here are the files that were edited by the AI in that message:
-edited src/components/StackingBlocks.tsx
2025-08-22 06:55:10 +00:00
gpt-engineer-app[bot]
8a6fed8078 Refactor Stacking Blocks interactive
Update Stacking Blocks interactive to break stacks on hover, display points in tooltips, and remove the modal.
Here are the files that were edited by the AI in that message:
-edited src/components/StackingBlocks.tsx
2025-08-22 06:48:56 +00:00
gpt-engineer-app[bot]
d352192c9e Add Stacking Blocks interactive
Add "Stacking Blocks" interactive to the Puzzles page. This new interactive is based on the description provided in the attached screenshots.
2025-08-22 06:42:56 +00:00
gpt-engineer-app[bot]
1adc590312 Fix hover effect on grey circles
Ensure grey circles do not change color on hover.
2025-08-22 06:35:04 +00:00
gpt-engineer-app[bot]
1ff24d145c Add Subtraction Game interactive
Implement "The Subtraction Game" interactive with sliders for n and k, a play/reset button, turn-based gameplay between two players, and visual feedback including confetti for the winner.
2025-08-22 06:24:19 +00:00