Commit graph

310 commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
5e095857fe Refine Dogs and Bunny puzzle
Improve edge label spacing and add varied conditions.
2025-08-10 05:53:01 +00:00
gpt-engineer-app[bot]
f33b2bfa4f Add Dogs & Bunny puzzle
Recreate the Dogs & Bunny puzzle with random puzzle generation, difficulty levels, screenshot functionality, and shareable URL parameters.
2025-08-10 05:32:16 +00:00
gpt-engineer-app[bot]
c257a5f531 Reverted to commit 81f6873c4d 2025-08-10 05:29:14 +00:00
gpt-engineer-app[bot]
61feaaf9e9 Add Dogs and Bunny puzzle
Recreate the Dogs and Bunny puzzle with functionality for random puzzle generation at varying difficulty levels (easy, medium, hard). Allow users to screenshot puzzles or solutions. Implement puzzle sharing via URL parameters.
2025-08-10 05:03:17 +00:00
gpt-engineer-app[bot]
81f6873c4d Refactor interactive elements
Change "Statements" to "Potential Truths". Add a new zone below the arena called "Incompatible with current worldview". When a statement conflicts with the current setup, it will be moved to this zone, and it will not be possible to drag statements from this zone.
2025-08-08 07:29:51 +00:00
gpt-engineer-app[bot]
4b1940859a Fix border colors
The AI fixed the issue where border colors were not visible in the Knights and Knaves interactive.
2025-08-08 07:20:38 +00:00
gpt-engineer-app[bot]
94eb08f316 Add new statement and styling
Add "Both of us are knights" statement to the interactive. Update styling for statements and their negations using different border styles and colors to represent A, B, and the statement.
2025-08-08 07:10:05 +00:00
gpt-engineer-app[bot]
44dd1497f6 Add explanation for inconsistency
Add an "Explain" button next to "Reset" in the Knights and Knaves puzzle. When clicked, this button displays an explanation for any inconsistencies found in the arena below it.
2025-08-08 06:55:24 +00:00
gpt-engineer-app[bot]
954110c6a2 Add Knights and Knaves puzzle
Adds the "Knights and Knaves - I" interactive to the Foundations section. The interactive features a central arena and five external boxes for statements. Dragging statements into the arena turns them green, and incompatible statements turn the arena red.
2025-08-08 06:49:18 +00:00
gpt-engineer-app[bot]
16ccffa5f4 Fix N-Queens board issues
Fixes the disappearing board when the timer starts and increases the board size.
2025-07-24 11:21:39 +00:00
gpt-engineer-app[bot]
d050cbe520 Add N-Queens puzzle
Create an N-Queens puzzle where users can place queens on an n x n chessboard. The size of the board can be adjusted using a slider. A timer can be started before placing any queens. Clicking a square places a queen, and clicking a queen removes it. Attacked squares are visually indicated.
2025-07-24 10:36:29 +00:00
gpt-engineer-app[bot]
a52dceb089 Add to global index
The AI added the "Parliament of Sikinia" puzzle to the global index, ensuring it is now visible on the main page.
2025-07-24 05:07:42 +00:00
gpt-engineer-app[bot]
d455a6e752 Fix: Add puzzle to index
The "Parliament of Sikinia" puzzle was not visible on the index page. This commit adds the puzzle to the index page to resolve the issue.
2025-07-24 03:05:33 +00:00
gpt-engineer-app[bot]
98a2b98975 Add interactive to index
Update width and add Sikinia Parliament puzzle to index page.
2025-07-24 03:04:33 +00:00
gpt-engineer-app[bot]
3c457231a8 Replace numbers with people icons
Replace the numbers on the circles in the "Parliament of Sikinia" puzzle with people icons.
2025-07-23 20:56:01 +00:00
gpt-engineer-app[bot]
95c79baf92 Replace numbers with icons
Replace the numerical representation of people in the Sikinia Parliament puzzle with icons.
2025-07-23 20:55:30 +00:00
gpt-engineer-app[bot]
6acfc2748b Fix Sikinia Parliament game end 2025-07-23 20:51:26 +00:00
gpt-engineer-app[bot]
2e75dfc30e Add Sikinian Parliament puzzle
Create a new playable puzzle based on the Sikinian Parliament problem. The puzzle features 10 individuals in a circular layout with randomly assigned enemy relationships (at most three per person). Users can color individuals blue or pink, and edges between individuals of the same color are highlighted in red if they have more than one same-colored enemy. The puzzle includes start, timer, high score, and share features, and is added to the Puzzles page.
2025-07-23 20:10:51 +00:00
146cc4cdcd Add social share boxes to Grid Tiling Puzzle and Sunny Lines Puzzle 2025-07-23 06:07:52 +05:30