Commit graph

229 commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
cb484c418e Add Bulgarian Solitaire interactive
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.
2025-08-21 11:16:49 +00:00
gpt-engineer-app[bot]
dcdfa9e5f5 Fix "Back to Puzzles" link
Ensure "Back to Puzzles" link is displayed correctly on the pebble placement interactive page when accessed via the puzzles section.
2025-08-21 11:02:06 +00:00
gpt-engineer-app[bot]
2fb52c752a Center align share buttons
Center aligned the share buttons in the `SocialShare` component.
2025-08-21 11:00:17 +00:00
gpt-engineer-app[bot]
ba5dac212e Refactor interactive links
Update interactive links to generate unique URLs and categorize the pebble placement interactive under "Puzzles" while removing it from "DSA" and "Games".
2025-08-21 10:59:06 +00:00
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
gpt-engineer-app[bot]
927db0fcd1 Remove share text
Remove "Share this interactive:" text from the SocialShare component.
2025-08-16 05:21:42 +00:00
gpt-engineer-app[bot]
c7511e8d49 Hide backlinks on direct access
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.
2025-08-11 12:34:19 +00:00
gpt-engineer-app[bot]
548b21aaa5 Fix simplification rule
The simplification rule in the Rules of Inference Playground now presents both possible outcomes instead of assuming one.
2025-08-11 12:32:50 +00:00
gpt-engineer-app[bot]
45f984027e Remove one featured interactive
Remove one featured interactive from the homepage to maintain a list of three.
2025-08-11 12:27:14 +00:00
gpt-engineer-app[bot]
5305eaaee9 Remove Number Guessing Game
Remove "Number Guessing Game" from featured interactives on the homepage and add the inference playground to the Index listing at `/index`.
2025-08-11 12:26:12 +00:00
gpt-engineer-app[bot]
4e95d8d3cf Fix Hypothetical Syllogism Rule
The AI fixed the hypothetical syllogism rule in `src/components/RulesOfInferencePlayground.tsx` to correctly apply to the given premises and target conclusion.
2025-08-11 12:15:41 +00:00
gpt-engineer-app[bot]
cb2c983c28 Fix: Explain why hypothetical syllogism is not applicable
Explain to the user why the hypothetical syllogism rule is not applicable in the current context of the Rules of Inference Playground.
2025-08-11 12:07:41 +00:00
gpt-engineer-app[bot]
970f503da5 Add more examples to playground
Add two new exercises to the Rules of Inference Playground, making a total of three accessible examples.
2025-08-11 12:00:48 +00:00
gpt-engineer-app[bot]
13062b5fa3 Fix link generation for interactive
Correctly generate the URL for the Rules of Inference interactive to ensure it points to the correct path.
2025-08-11 11:34:10 +00:00
gpt-engineer-app[bot]
6877dee89d Add Social Share Component
Add the social share component to the Rules of Inference Playground page.
2025-08-11 11:33:08 +00:00
gpt-engineer-app[bot]
3817f2d692 Add unique URLs and share component
Create unique URLs for interactives and add the SocialShare component to the bottom of the Rules of Inference Playground.
2025-08-11 11:32:11 +00:00
gpt-engineer-app[bot]
9fff3deb07 Add double-click functionality and error messages
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.
2025-08-11 10:11:19 +00:00
gpt-engineer-app[bot]
b6a3ad2c59 Update page background and add sharing
Change the entire page background to a subtle green upon successful completion of the rules of inference puzzle. Add share links and a unique URL for direct access to the interactive.
2025-08-11 10:10:04 +00:00
gpt-engineer-app[bot]
1bb24d2620 Add success state to playground
Update the Rules of Inference Playground to display a light green background and freeze interactions upon successful completion of a proof. This state allows users to select a new puzzle.
2025-08-11 10:04:46 +00:00
gpt-engineer-app[bot]
8f5eeb77a9 Fix invalid rule application feedback
Display a modal when an invalid rule is applied to premises, and return the rule to the "Drop rule" box.
2025-08-11 10:02:41 +00:00
gpt-engineer-app[bot]
58f4f99db5 Fix resolution rule application
The resolution rule was not correctly applied to derive the final conclusion. This commit ensures that the resolution rule functions as expected, allowing the user to reach the target conclusion.
2025-08-11 09:56:53 +00:00
gpt-engineer-app[bot]
0833cb76d9 Refactor inference playground
Update the Rules of Inference Playground to allow users to build proofs step-by-step. Users can now add premises, select subsets of premises, and apply inference rules. The system provides feedback if a rule is not applicable and prompts the user to try again.
2025-08-11 09:38:08 +00:00
gpt-engineer-app[bot]
e0d0d73dc3 Refactor Rules of Inference Playground
Update the Rules of Inference Playground to feature a single active drop zone in the center arena. The layout is changed to have premises and rules in separate columns above the arena. When a premise and rule are dropped, the system will now generate the resulting statements, removing the need for users to drag intermediate statements. The functionality to select a subset of premises for applying an inference rule has also been added. Intermediate statements below the arena have been removed.
2025-08-11 09:23:59 +00:00
gpt-engineer-app[bot]
3d2d2fdbff Add inference rules playground
Create a new interactive playground for practicing rules of inference under Discrete Math > Foundations. The playground will feature a three-column layout for premises, a workspace with parallel lines for derivations, and a column for relevant inference rules. Users can drag and drop elements, apply rules, and receive validation for their steps. The initial example will be based on the provided screenshot.
2025-08-11 08:57:30 +00:00
gpt-engineer-app[bot]
2b22dc0d95 Fix: Index page listing
The guessing game was not appearing in the overall index listing. This commit ensures it is correctly added to the index.
2025-08-10 17:29:48 +00:00
gpt-engineer-app[bot]
8a297107f6 Fix index page display
Ensure the guessing game is visible on the index page.
2025-08-10 16:44:33 +00:00
gpt-engineer-app[bot]
1ad16d355c Add guessing game to data structures
Add the guessing game component to the "Data Structures and Algorithms" theme and update the index to include it.
2025-08-10 15:51:03 +00:00
gpt-engineer-app[bot]
c25a17a74a Add contradiction detection
Implement logic to detect contradictory answers in the computer's question-answering mode. If contradictions are found, the game will abort and prompt the user to restart.
2025-08-10 15:36:09 +00:00
gpt-engineer-app[bot]
d6f1449d23 Fix guess count
Track and display questions and guesses made by the user.
2025-08-10 14:23:08 +00:00
gpt-engineer-app[bot]
a1208e7d5b Fix bug in guessing game
The AI fixed a bug in the question-based guessing mode where answering "No" to a specific number query (e.g., "is the number 21?") incorrectly greyed out all options. The game now correctly handles such queries by only eliminating the specified number.
2025-08-10 14:20:55 +00:00
gpt-engineer-app[bot]
85b73a97c2 Refine AI strategy in guessing game
The AI's strategy for answering questions in the guessing game has been refined to be more strategically optimal. Previously, when asked "is the number not divisible by 7?" and the answer was "No", the AI would grey out all numbers not divisible by 7. This commit corrects the logic to grey out only the multiples of 7, aligning with the "No" answer to the negated question. This ensures that the AI's responses are more precise and lead to a more efficient search space reduction.
2025-08-10 14:20:23 +00:00
gpt-engineer-app[bot]
591b73c071 Fix negation parsing in guessing game
Correctly parse negations in user-provided questions to accurately update the search space.
2025-08-10 14:15:19 +00:00
gpt-engineer-app[bot]
62c6acc388 Refine guessing game logic
Update the guessing game to handle user-provided questions and optimize computer-generated questions. The game will now grey out numbers divisible by 10 based on user input. Additionally, the computer will prioritize questions that maximize the remaining search space, ensuring a longer guessing period for the user. The "too high/too low" feedback is removed, relying solely on user questions for deduction.
2025-08-10 14:11:36 +00:00
gpt-engineer-app[bot]
b0595d1cc7 Refine question guessing mode
Update the question guessing mode to not reveal the number directly. Instead, it should grey out numbers that are eliminated by the user's answer.
2025-08-10 14:06:21 +00:00
gpt-engineer-app[bot]
ec168be51d Add more guessing game modes
Add two new modes to the guessing game: one where the user guesses the number using arbitrary yes/no questions, and another where the computer guesses the number using random, linear, or binary search.
2025-08-10 14:00:21 +00:00
gpt-engineer-app[bot]
9e899131fd Add range display to guessing game
Show the full range of numbers in the guessing game, and grey out invalid choices when the user is guessing.
2025-08-10 13:51:03 +00:00
gpt-engineer-app[bot]
a981f2ec87 Add Guessing Game
Implement a guessing game with user-selectable range via slider. Includes two modes: user guesses computer's number, and computer guesses user's number using random, linear, or binary search strategies.
2025-08-10 13:38:45 +00:00
gpt-engineer-app[bot]
aaa3b7f06f Reverted to commit 81f6873c4d 2025-08-10 07:13:18 +00:00
gpt-engineer-app[bot]
48c3f7a97a Fix graph layout and edge labels
The graph now occupies the full screen width, and approximately one-third of the edges are left without constraints to improve spacing and reduce visual clutter.
2025-08-10 07:12:03 +00:00
gpt-engineer-app[bot]
9b07ffe9d9 Reverted to commit f61e852d45 2025-08-10 07:10:24 +00:00
gpt-engineer-app[bot]
361aaf9000 Fix graph spacing and edge labels
Adjust graph to full width and reduce edge constraints to improve spacing and clarity.
2025-08-10 07:08:34 +00:00
gpt-engineer-app[bot]
f61e852d45 Improve graph layout and edge labels
The graph has been adjusted to occupy the full width, reducing crowding. Edge labels have been clarified to explain the meaning of duplicate icons, such as two bones or two flowers side-by-side.
2025-08-10 06:16:25 +00:00
gpt-engineer-app[bot]
4c2d03fce3 Refine edge labels and layout
Improve edge label readability by using red outlines for negated conditions and rounded rectangles for specific conditions. Adjust graph layout to occupy full width for better scaling.
2025-08-10 06:09:28 +00:00