Commit graph

228 commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
4be4ab3ef5 Add Bulgarian Solitaire to index
Added Bulgarian Solitaire to the global index at `/index`.
2025-08-22 06:08:07 +00:00
gpt-engineer-app[bot]
5585cf8ce5 Update sim game route
Update the route for the Game of Sim to `/sim` so that the provided URL leads to the game.
2025-08-22 05:53:39 +00:00
gpt-engineer-app[bot]
927c445677 Update Sim game page
Add unique ID to Sim game and update link and QR code.
2025-08-22 05:50:52 +00:00
gpt-engineer-app[bot]
e331c33aa7 Remove "Credits:" title
Removed the "Credits:" title from the green box in `src/components/BulgarianSolitaire.tsx`.
2025-08-22 05:18:24 +00:00
gpt-engineer-app[bot]
930929ce56 Center block in green block
Vertically center the selected block within the green block in `src/components/BulgarianSolitaire.tsx`.
2025-08-22 05:16:18 +00:00
gpt-engineer-app[bot]
6dd022034f Update background colors
Set instructions box background to muted blue and credits box background to light green.
2025-08-22 05:15:49 +00:00
gpt-engineer-app[bot]
dc7d868a8d Update instructions to be a toggle
Changed "How to Play:" to "Click here for instructions." and implemented a toggle functionality to show/hide the instructions content.
2025-08-22 05:13:22 +00:00
gpt-engineer-app[bot]
2c8e37eccc Add links to credits section
Adds hyperlinks to the credits section for Wikipedia, the puzzle book, Peter Winkler, Martin Gardner, and Akash Kumar.
2025-08-22 05:12:05 +00:00
gpt-engineer-app[bot]
830edd8e6b Add credits section
Add a credits box below the current section with information about Bulgarian Solitaire, its origins, and resources for further learning.
2025-08-22 05:10:52 +00:00
gpt-engineer-app[bot]
62832a3758 Refactor text for clarity
Move "Will this process always converge?" to a new line in the instructions for better readability.
2025-08-22 05:08:08 +00:00
gpt-engineer-app[bot]
81d34ca101 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-08-22 05:06:51 +00:00
gpt-engineer-app[bot]
cbe2461204 Refactor drag and drop for mobile
Replaced drag and drop functionality with a click-to-select and click-to-drop interaction for mobile friendliness. When a box in the container is clicked, columns become highlighted and clickable. Clicking a column drops the box there, and the columns return to their default state. Existing features like double-clicking and desktop drag-and-drop remain.
2025-08-22 04:57:14 +00:00
gpt-engineer-app[bot]
1700a6f984 Update Bulgarian Solitaire component
Modify the Bulgarian Solitaire component to send a double-clicked box from the container to the last used column.
2025-08-21 11:43:42 +00:00
gpt-engineer-app[bot]
23637eb547 Update Bulgarian Solitaire
Modify the Bulgarian Solitaire component to send double-clicked boxes to the last-used column.
2025-08-21 11:34:27 +00:00
gpt-engineer-app[bot]
1aeba0b861 Refine Bulgarian Solitaire instructions
Update instructions to remove "numbered" from the text describing dragging boxes from the container to columns in the Bulgarian Solitaire interactive.
2025-08-21 11:27:15 +00:00
gpt-engineer-app[bot]
ddad5ba645 Refactor Bulgarian Solitaire layout
Adjusted the layout of Bulgarian Solitaire to display up to 15 columns before wrapping to a new row. Removed labels from the small black boxes as they are unnecessary.
2025-08-21 11:25:26 +00:00
gpt-engineer-app[bot]
e92a054f59 Allow dragging blocks across columns
Enabled dragging of blocks between columns before the simulation begins in `src/components/BulgarianSolitaire.tsx`.
2025-08-21 11:22:06 +00:00
gpt-engineer-app[bot]
8944a5e485 Refine Bulgarian Solitaire columns
Adjusted column width in Bulgarian Solitaire to be just wider than block width. Implemented sorting of columns by height (tallest to left) after simulation starts. Added visual feedback: highlighting top boxes red, animating their movement to form the last column, and then visually displaying the sorting process.
2025-08-21 11:20:19 +00:00