From 9b07ffe9d94abb323cb2e38d2df78743c0fc7498 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 10 Aug 2025 07:10:24 +0000 Subject: [PATCH] Reverted to commit f61e852d45dcf3ad9264fbc033c2c20179fdfc66 --- src/components/DogsBunnyPuzzle.tsx | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/DogsBunnyPuzzle.tsx b/src/components/DogsBunnyPuzzle.tsx index 0b8fb8e..603b553 100644 --- a/src/components/DogsBunnyPuzzle.tsx +++ b/src/components/DogsBunnyPuzzle.tsx @@ -78,27 +78,25 @@ const DogsBunnyPuzzle: React.FC = ({ // Connect all locations with conditional edges for (let i = 0; i < locations.length; i++) { for (let j = i + 1; j < locations.length; j++) { - const FREE_RATIO = 0.33; - let conditions: string[] = []; - if (rng() >= FREE_RATIO) { - const numConditions = diff === 'easy' ? 1 : diff === 'medium' ? 2 : 3; - for (let k = 0; k < numConditions; k++) { - const conditionType = locationTypes[Math.floor(rng() * locationTypes.length)]; - const prefix = conditionPrefixes[Math.floor(rng() * conditionPrefixes.length)]; - conditions.push(`${prefix} ${conditionType.toUpperCase()}`); - } + const numConditions = diff === 'easy' ? 1 : diff === 'medium' ? 2 : 3; + const conditions: string[] = []; + + for (let k = 0; k < numConditions; k++) { + const conditionType = locationTypes[Math.floor(rng() * locationTypes.length)]; + const prefix = conditionPrefixes[Math.floor(rng() * conditionPrefixes.length)]; + conditions.push(`${prefix} ${conditionType.toUpperCase()}`); } edges.push({ from: locations[i].id, to: locations[j].id, - conditions + conditions: conditions }); edges.push({ from: locations[j].id, to: locations[i].id, - conditions + conditions: conditions }); } } @@ -341,7 +339,7 @@ const DogsBunnyPuzzle: React.FC = ({ -
+
{/* Puzzle Area */}
= ({
{/* Instructions & Controls */} -
+

How to Play: