Commit graph

7 commits

Author SHA1 Message Date
gpt-engineer-app[bot]
0c19a83999 Change grey text to white
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
2025-08-21 10:56:28 +00:00
gpt-engineer-app[bot]
822890a461 Extend number line and n option
Extend the number line in `src/components/PebblePlacementGame.tsx` to 100 and add an option for n=6.
2025-08-21 10:54:24 +00:00
gpt-engineer-app[bot]
fc28970659 Refactor pebble placement layout
Adjust the layout of the integer circles in the pebble placement game to display them in a single line as much as possible.
2025-08-21 10:53:08 +00:00
gpt-engineer-app[bot]
07be682cb5 Add visual feedback to pebble game
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
2025-08-21 10:52:02 +00:00
gpt-engineer-app[bot]
3b66a78800 Explain pebble removal logic 2025-08-21 10:49:15 +00:00
gpt-engineer-app[bot]
d57837d286 Update pebble game rules
Allow the user to continue playing the pebble game as long as there are removable pebbles. The pebble at position 1 is always considered removable.
2025-08-21 10:47:57 +00:00
gpt-engineer-app[bot]
8917e1a66f Add pebble game interactive
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.
2025-08-21 10:45:38 +00:00