Added a "Random Start" option to the Bulgarian Solitaire game, allowing players to begin with a randomized initial setup.
-edited src/components/BulgarianSolitaire.tsx
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
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
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.
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.
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.
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.
Create a new interactive component for Bulgarian Solitaire. This component will allow users to select a number `n` (2-6), visualize a container with `1+2+...+n` boxes, and arrange these boxes into `1+2+...+n` columns. Users can drag and drop boxes between columns and return them to the container by double-clicking. A "Play" button will initiate the simulation of the Bulgarian Solitaire process until a steady state is reached. This interactive will be added to the Puzzles section.
Update interactive links to generate unique URLs and categorize the pebble placement interactive under "Puzzles" while removing it from "DSA" and "Games".
Updated the text color in the "All pebbles placed!" message from grey to white in `src/components/PebblePlacementGame.tsx`.
Here are the files that were edited by the AI in that message:
-edited src/components/PebblePlacementGame.tsx
Update the pebble placement game to provide visual cues for pebble removability and valid placement locations. Pebbles that cannot be picked up will be colored muted red, while those that can be picked up will be muted green. Valid placement spots will be highlighted with a 1px border.
- edited `src/components/PebblePlacementGame.tsx
Add a new interactive game where users place pebbles on an integer line from 1 to 35. The rules are:
- A pebble can only be placed on position `i` if position `i-1` has a pebble.
- Position 1 can always have a pebble placed on it.
- Users start with `n` pebbles (chosen via a slider from 2 to 5).
- The goal is to find the largest integer position for which a pebble can be placed.
Hide the "backlinks" component when the Rules of Inference Playground is accessed directly via its URL. The backlinks should only be visible when accessed through the themes listing.
The AI fixed the hypothetical syllogism rule in `src/components/RulesOfInferencePlayground.tsx` to correctly apply to the given premises and target conclusion.
Implement double-click to replace drag-and-drop for applying inference rules. Add error messages to be displayed when an incompatible inference rule is applied.