diff --git a/cutrope/data/rope-051.json b/cutrope/data/rope-051.json new file mode 100644 index 0000000000000000000000000000000000000000..0a5d4166cec7cf984483ffabec068ec55012487f --- /dev/null +++ b/cutrope/data/rope-051.json @@ -0,0 +1,120 @@ +{ + "schema_version": 1, + "level_id": "rope-051", + "level_file": "data/task/rope-051.json", + "video": { + "path": "data/video/rope-051.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bouncer": 1, + "candy": 1, + "grab_or_rope_anchor": 1, + "pump": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 102, + "y": 183 + }, + { + "name": 100, + "x": 106, + "y": 70, + "length": 80, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 82, + "x": 78, + "y": 384, + "angle": 0, + "size": 2 + }, + { + "name": 3, + "x": 124, + "y": 338, + "timeout": -1 + }, + { + "name": 3, + "x": 250, + "y": 300, + "timeout": -1 + }, + { + "name": 2, + "x": 283, + "y": 364 + }, + { + "name": 55, + "x": 175, + "y": 183, + "angle": 180 + }, + { + "name": 3, + "x": 179, + "y": 306, + "timeout": -1 + } + ], + "levelId": "06-19", + "levelEditedAt": "2026-05-05T17:34:53.600Z" + }, + "reference_solution": "activate_pump 0 when candy_still for 0.3 and candy_near 840,420,60\ncut_rope 0 when candy_near 650,340,40 times 2", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T17:36:01.965Z" + }, + "answer": { + "commands": "activate_pump 0 when candy_still for 0.3 and candy_near 840,420,60\ncut_rope 0 when candy_near 650,340,40 times 2", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "activate_pump 0 when candy_still for 0.3 and candy_near 840,420,60\ncut_rope 0 when candy_near 650,340,40 times 2", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-051\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 1\n - pump: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Pumps: activating a pump pushes nearby objects. `activate_pump N`, optionally with `times`/`every`/`until` modifiers for repeated activation.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-052.json b/cutrope/data/rope-052.json new file mode 100644 index 0000000000000000000000000000000000000000..8b49f54244a515c66484b35d2e6f7cda5342a786 --- /dev/null +++ b/cutrope/data/rope-052.json @@ -0,0 +1,149 @@ +{ + "schema_version": 1, + "level_id": "rope-052", + "level_file": "data/task/rope-052.json", + "video": { + "path": "data/video/rope-052.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": true, + "special": 1, + "object_counts": { + "bouncer": 3, + "grab_or_rope_anchor": 2, + "left_candy": 1, + "right_candy": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 2, + "x": 48, + "y": 369 + }, + { + "name": 3, + "x": 279, + "y": 400, + "timeout": -1 + }, + { + "name": 3, + "x": 126, + "y": 397, + "timeout": -1 + }, + { + "name": 3, + "x": 202, + "y": 333, + "timeout": -1 + }, + { + "name": 82, + "x": 156, + "y": 440, + "angle": 0, + "size": 2 + }, + { + "name": 82, + "x": 54, + "y": 440, + "angle": 0, + "size": 2 + }, + { + "name": 81, + "x": 283, + "y": 435, + "angle": -8, + "size": 1 + }, + { + "name": 100, + "x": 131, + "y": 35, + "length": 70, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 50, + "x": 132, + "y": 137 + }, + { + "name": 100, + "x": 276, + "y": 36, + "length": 70, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 51, + "x": 278, + "y": 139 + } + ] + }, + "reference_solution": "cut_rope 0,1", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T18:32:17.053Z" + }, + "answer": { + "commands": "cut_rope 0,1", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0,1", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-052\n- canvas_size: 1920 x 1080\n- two_parts (split candy): True\n- object_counts:\n - target: 1\n - star: 3\n - left split candy: 1\n - right split candy: 1\n - rope/grab: 2\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Split candy: the level starts with left_candy and right_candy halves. Before they merge, use left_candy_* and right_candy_* conditions. After they touch and merge, use candy_* for the complete candy.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-053.json b/cutrope/data/rope-053.json new file mode 100644 index 0000000000000000000000000000000000000000..aca8aa12f3a9d4959b21ed5875efa8c44b6e46c2 --- /dev/null +++ b/cutrope/data/rope-053.json @@ -0,0 +1,146 @@ +{ + "schema_version": 1, + "level_id": "rope-053", + "level_file": "data/task/rope-053.json", + "video": { + "path": "data/video/rope-053.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 5, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 164, + "y": 146 + }, + { + "name": 2, + "x": 271, + "y": 428 + }, + { + "name": 100, + "x": 67, + "y": 46, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 260, + "y": 45, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 258, + "y": 149, + "length": 145, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 67, + "y": 229, + "length": 165, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 259, + "y": 230, + "length": 165, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 3, + "x": 257, + "y": 183, + "timeout": -1 + }, + { + "name": 3, + "x": 256, + "y": 335, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 419, + "timeout": -1 + } + ] + }, + "reference_solution": "cut_rope 0\ncut_rope 1 when candy_x > 1180\ncut_rope 2 when candy_still for 0.3 \ncut_rope 3 when candy_y > 910", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T13:17:43.380Z" + }, + "answer": { + "commands": "cut_rope 0\ncut_rope 1 when candy_x > 1180\ncut_rope 2 when candy_still for 0.3 \ncut_rope 3 when candy_y > 910", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0\ncut_rope 1 when candy_x > 1180\ncut_rope 2 when candy_still for 0.3 \ncut_rope 3 when candy_y > 910", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-053\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 5\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-054.json b/cutrope/data/rope-054.json new file mode 100644 index 0000000000000000000000000000000000000000..dc2f83a441ae86872ec036389dc8fbbd06f1d852 --- /dev/null +++ b/cutrope/data/rope-054.json @@ -0,0 +1,144 @@ +{ + "schema_version": 1, + "level_id": "rope-054", + "level_file": "data/task/rope-054.json", + "video": { + "path": "data/video/rope-054.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 640, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bouncer": 5, + "bubble": 1, + "candy": 1, + "grab_or_rope_anchor": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 388, + "y": 133 + }, + { + "name": 2, + "x": 273, + "y": 41 + }, + { + "name": 81, + "x": 398, + "y": 189, + "angle": -30, + "size": 1 + }, + { + "name": 81, + "x": 191, + "y": 229, + "angle": 40, + "size": 1 + }, + { + "name": 81, + "x": 404, + "y": 310, + "angle": -30, + "size": 1 + }, + { + "name": 81, + "x": 203, + "y": 372, + "angle": 30, + "size": 1 + }, + { + "name": 81, + "x": 397, + "y": 448, + "angle": -30, + "size": 1 + }, + { + "name": 3, + "x": 403, + "y": 307, + "timeout": -1 + }, + { + "name": 100, + "x": 388, + "y": 27, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 308, + "y": 398 + }, + { + "name": 3, + "x": 204, + "y": 367, + "timeout": -1 + }, + { + "name": 3, + "x": 220, + "y": 196, + "timeout": -1 + } + ] + }, + "reference_solution": "cut_rope 0", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T17:17:13.134Z" + }, + "answer": { + "commands": "cut_rope 0", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-054\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 1\n - bubble: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-055.json b/cutrope/data/rope-055.json new file mode 100644 index 0000000000000000000000000000000000000000..61a07913fc45d4ebf308088d3ad112f2949ce4c4 --- /dev/null +++ b/cutrope/data/rope-055.json @@ -0,0 +1,194 @@ +{ + "schema_version": 1, + "level_id": "rope-055", + "level_file": "data/task/rope-055.json", + "video": { + "path": "data/video/rope-055.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 1, + "object_4": 1, + "object_8": 1, + "pump": 2, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 159, + "y": 220 + }, + { + "name": 2, + "x": 0, + "y": 349 + }, + { + "name": 3, + "x": 56, + "y": 182, + "timeout": -1 + }, + { + "name": 3, + "x": 268, + "y": 180, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 171, + "timeout": -1 + }, + { + "name": 55, + "x": 43, + "y": 233, + "angle": 0 + }, + { + "name": 100, + "x": 158, + "y": 88, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 55, + "x": 159, + "y": 334, + "angle": 270 + }, + { + "name": 4, + "x": 298, + "y": 357, + "locale": "en", + "text": "Click the air cushion to blow object", + "width": 180 + }, + { + "name": 8, + "x": 219, + "y": 347, + "locale": "en", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 8, + "x": 104, + "y": 350, + "locale": "ru", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 22, + "y": 357, + "locale": "ru", + "text": "Нажмите на подушку чтобы подуть на леденец", + "width": 180 + } + ], + "fr": [ + { + "name": 8, + "x": 101, + "y": 347, + "locale": "fr", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": -5, + "y": 355, + "locale": "fr", + "text": "Clique le coussin d'air pour souffler sur les objets", + "width": 180 + } + ], + "de": [ + { + "name": 8, + "x": 102, + "y": 354, + "locale": "de", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": -17, + "y": 360, + "locale": "de", + "text": "Klicke auf das Luftkissen, um auf den Gegenstand zu blasen", + "width": 230 + } + ], + "levelId": "02-01", + "levelEditedAt": "2026-05-05T13:37:36.863Z", + "mirroredFrom": "02-01.json" + }, + "reference_solution": "activate_pump 1\nactivate_pump 0 when candy_still for 0.3 \ncut_rope 0 when candy_x < 790", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T13:37:47.230Z" + }, + "answer": { + "commands": "activate_pump 1\nactivate_pump 0 when candy_still for 0.3 \ncut_rope 0 when candy_x < 790", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "activate_pump 1\nactivate_pump 0 when candy_still for 0.3 \ncut_rope 0 when candy_x < 790", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-055\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 1\n - pump: 2\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Pumps: activating a pump pushes nearby objects. `activate_pump N`, optionally with `times`/`every`/`until` modifiers for repeated activation.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-056.json b/cutrope/data/rope-056.json new file mode 100644 index 0000000000000000000000000000000000000000..4348a49b85a0e0d3d33bc89c33ed111f8cc6fed5 --- /dev/null +++ b/cutrope/data/rope-056.json @@ -0,0 +1,116 @@ +{ + "schema_version": 1, + "level_id": "rope-056", + "level_file": "data/task/rope-056.json", + "video": { + "path": "data/video/rope-056.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bouncer": 2, + "candy": 1, + "gravity_button": 1, + "pump": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 53, + "x": 58, + "y": 210 + }, + { + "name": 2, + "x": 243, + "y": 293 + }, + { + "name": 82, + "x": 160, + "y": 95, + "angle": 0, + "size": 2 + }, + { + "name": 82, + "x": 159, + "y": 366, + "angle": 0, + "size": 2 + }, + { + "name": 3, + "x": 160, + "y": 186, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 209, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 209, + "timeout": -1 + }, + { + "name": 55, + "x": 58, + "y": 313, + "angle": 0 + }, + { + "name": 52, + "x": 155, + "y": 299 + } + ], + "levelId": "09-06", + "levelEditedAt": "2026-05-05T18:24:38.008Z" + }, + "reference_solution": "toggle_gravity when candy_y > 740\ntoggle_gravity when candy_y < 410\nactivate_pump 0 when candy_y > 660", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T18:25:25.062Z" + }, + "answer": { + "commands": "toggle_gravity when candy_y > 740\ntoggle_gravity when candy_y < 410\nactivate_pump 0 when candy_y > 660", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "toggle_gravity when candy_y > 740\ntoggle_gravity when candy_y < 410\nactivate_pump 0 when candy_y > 660", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-056\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - pump: 1\n - gravity switch: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Pumps: activating a pump pushes nearby objects. `activate_pump N`, optionally with `times`/`every`/`until` modifiers for repeated activation.\n- Gravity switch: `toggle_gravity` reverses or rotates gravity. Often triggered after the candy crosses a coordinate threshold.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-057.json b/cutrope/data/rope-057.json new file mode 100644 index 0000000000000000000000000000000000000000..5857b04a50781bf9b12d6f6fcddeab43554acaa0 --- /dev/null +++ b/cutrope/data/rope-057.json @@ -0,0 +1,187 @@ +{ + "schema_version": 1, + "level_id": "rope-057", + "level_file": "data/task/rope-057.json", + "video": { + "path": "data/video/rope-057.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 2, + "object_counts": { + "bubble": 1, + "candy": 1, + "grab_or_rope_anchor": 1, + "object_12": 1, + "object_4": 2, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 159, + "y": 242 + }, + { + "name": 52, + "x": 255, + "y": 171 + }, + { + "name": 3, + "x": 134, + "y": 185, + "timeout": -1 + }, + { + "name": 3, + "x": 189, + "y": 184, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 147, + "timeout": -1 + }, + { + "name": 100, + "x": 76, + "y": 243, + "length": 160, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 255, + "y": 170 + }, + { + "name": 4, + "x": 89, + "y": 288, + "locale": "en", + "text": "You can restart the level by pressing the", + "width": 140 + }, + { + "name": 4, + "x": 126, + "y": 352, + "locale": "en", + "text": "button", + "width": 100 + }, + { + "name": 12, + "x": 129, + "y": 379, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 61, + "y": 302, + "locale": "ru", + "text": "Вы можете перезапустить уровень, нажав кнопку", + "width": 200 + }, + { + "name": 12, + "x": 234, + "y": 369, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 65, + "y": 285, + "locale": "fr", + "text": "Vous pouvez redémarrer le niveau en appuyant sur le bouton", + "width": 180 + }, + { + "name": 12, + "x": 201, + "y": 371, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 31, + "y": 282, + "locale": "de", + "text": "Du kannst das Level neustarten, indem du das Symbol antippst", + "width": 250 + }, + { + "name": 12, + "x": 238, + "y": 351, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ] + }, + "reference_solution": "pop_bubble 0 when candy_near 1000,200,30", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T07:02:26.102Z" + }, + "answer": { + "commands": "pop_bubble 0 when candy_near 1000,200,30", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "pop_bubble 0 when candy_near 1000,200,30", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-057\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 1\n - bubble: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-058.json b/cutrope/data/rope-058.json new file mode 100644 index 0000000000000000000000000000000000000000..a8ca1aaab82c663617b427418fd78f81d1d16c79 --- /dev/null +++ b/cutrope/data/rope-058.json @@ -0,0 +1,139 @@ +{ + "schema_version": 1, + "level_id": "rope-058", + "level_file": "data/task/rope-058.json", + "video": { + "path": "data/video/rope-058.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bubble": 1, + "candy": 1, + "grab_or_rope_anchor": 1, + "sock": 4, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 96, + "y": 231 + }, + { + "name": 56, + "x": 70, + "y": 433, + "group": 1, + "angle": -45 + }, + { + "name": 56, + "x": 100, + "y": 78, + "group": 0, + "angle": 45 + }, + { + "name": 56, + "x": 232, + "y": 78, + "group": 1, + "angle": 135 + }, + { + "name": 56, + "x": 243, + "y": 430, + "group": 0, + "angle": -135 + }, + { + "name": 52, + "x": 274, + "y": 230 + }, + { + "name": 100, + "x": 169, + "y": 261, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 166, + "y": 163 + }, + { + "name": 3, + "x": 166, + "y": 164, + "timeout": -1 + }, + { + "name": 3, + "x": 105, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 219, + "y": 119, + "timeout": -1 + } + ], + "levelId": "09-09", + "levelEditedAt": "2026-05-05T18:29:59.590Z" + }, + "reference_solution": "cut_rope 0 when candy_near 1000,850,50 times 2", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T18:31:21.271Z" + }, + "answer": { + "commands": "cut_rope 0 when candy_near 1000,850,50 times 2", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0 when candy_near 1000,850,50 times 2", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-058\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 1\n - bubble: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-059.json b/cutrope/data/rope-059.json new file mode 100644 index 0000000000000000000000000000000000000000..8f562e69abb9a887897eb73c78b00836bbdae08f --- /dev/null +++ b/cutrope/data/rope-059.json @@ -0,0 +1,142 @@ +{ + "schema_version": 1, + "level_id": "rope-059", + "level_file": "data/task/rope-059.json", + "video": { + "path": "data/video/rope-059.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": true, + "special": 1, + "object_counts": { + "bubble": 1, + "grab_or_rope_anchor": 3, + "left_candy": 1, + "right_candy": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 111, + "y": 198 + }, + { + "name": 100, + "x": 221, + "y": 198, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 16, + "y": 197, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 271, + "y": 548 + }, + { + "name": 51, + "x": 266, + "y": 547 + }, + { + "name": 2, + "x": 216, + "y": 42 + }, + { + "name": 3, + "x": 217, + "y": 138, + "timeout": -1 + }, + { + "name": 3, + "x": 241, + "y": 162, + "timeout": -1 + }, + { + "name": 3, + "x": 267, + "y": 188, + "timeout": -1 + }, + { + "name": 100, + "x": 219, + "y": 365, + "length": 60, + "wheel": false, + "gun": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "mirroredFrom": "05-03.json" + }, + "reference_solution": "cut_rope 1 when candy_still for 0.3 and candy_near 1920,0,60\ncut_rope 2 when candy_still for 0.3 and candy_near 1100,590,60\ncut_rope 0 when candy_still for 0.3 and candy_near 1100,300,60", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T15:55:39.203Z" + }, + "answer": { + "commands": "cut_rope 1 when candy_still for 0.3 and candy_near 1920,0,60\ncut_rope 2 when candy_still for 0.3 and candy_near 1100,590,60\ncut_rope 0 when candy_still for 0.3 and candy_near 1100,300,60", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 1 when candy_still for 0.3 and candy_near 1920,0,60\ncut_rope 2 when candy_still for 0.3 and candy_near 1100,590,60\ncut_rope 0 when candy_still for 0.3 and candy_near 1100,300,60", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-059\n- canvas_size: 1920 x 1080\n- two_parts (split candy): True\n- object_counts:\n - target: 1\n - star: 3\n - left split candy: 1\n - right split candy: 1\n - rope/grab: 3\n - bubble: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Split candy: the level starts with left_candy and right_candy halves. Before they merge, use left_candy_* and right_candy_* conditions. After they touch and merge, use candy_* for the complete candy.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-060.json b/cutrope/data/rope-060.json new file mode 100644 index 0000000000000000000000000000000000000000..e3fd02b92baa6339e06c006d3bcdfa92cc71cb3c --- /dev/null +++ b/cutrope/data/rope-060.json @@ -0,0 +1,396 @@ +{ + "schema_version": 1, + "level_id": "rope-060", + "level_file": "data/task/rope-060.json", + "video": { + "path": "data/video/rope-060.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 4, + "object_11": 2, + "object_4": 1, + "object_5": 5, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 158, + "y": 101 + }, + { + "name": 2, + "x": 158, + "y": 426 + }, + { + "name": 3, + "x": 159, + "y": 216, + "timeout": 0 + }, + { + "name": 3, + "x": 158, + "y": 345, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 284, + "timeout": -1 + }, + { + "name": 100, + "x": 235, + "y": 47, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": 0, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 75, + "y": 47, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": 0, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 84, + "y": 250, + "length": 100, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 232, + "y": 248, + "length": 100, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 311, + "y": 56, + "locale": "en", + "text": "You can cut several ropes at once", + "width": 300 + }, + { + "name": 5, + "x": 264, + "y": 96, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 212, + "y": 96, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 159, + "y": 96, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 108, + "y": 95, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 54, + "y": 95, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 301, + "y": 95, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 16, + "y": 96, + "locale": "en", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 5, + "x": 54, + "y": 110, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 107, + "y": 110, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 160, + "y": 110, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 210, + "y": 109, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 264, + "y": 109, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 10, + "y": 50, + "locale": "ru", + "text": "Вы можете перерезать несколько веревок одновременно", + "width": 300 + } + ], + "fr": [ + { + "name": 5, + "x": 56, + "y": 106, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 108, + "y": 106, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 106, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 212, + "y": 105, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 266, + "y": 105, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 19, + "y": 105, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 304, + "y": 106, + "locale": "fr", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 37, + "y": 46, + "locale": "fr", + "text": "Tu peux couper plusieurs cordes à la fois", + "width": 250 + } + ], + "de": [ + { + "name": 5, + "x": 56, + "y": 106, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 108, + "y": 106, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 106, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 212, + "y": 105, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 266, + "y": 105, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 19, + "y": 105, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 304, + "y": 106, + "locale": "de", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 35, + "y": 46, + "locale": "de", + "text": "Du kannst mehrere Seile gleichzeitig durchschneiden", + "width": 250 + } + ], + "mirroredFrom": "01-20.json" + }, + "reference_solution": "cut_rope 0,1 when candy_still for 0.3 \ncut_rope 2,3 when candy_still for 0.3", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T13:20:05.630Z" + }, + "answer": { + "commands": "cut_rope 0,1 when candy_still for 0.3 \ncut_rope 2,3 when candy_still for 0.3", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0,1 when candy_still for 0.3 \ncut_rope 2,3 when candy_still for 0.3", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-060\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 4\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-061.json b/cutrope/data/rope-061.json new file mode 100644 index 0000000000000000000000000000000000000000..3ca0bd48fd9c089e48b479b5b9697efafa868d91 --- /dev/null +++ b/cutrope/data/rope-061.json @@ -0,0 +1,127 @@ +{ + "schema_version": 1, + "level_id": "rope-061", + "level_file": "data/task/rope-061.json", + "video": { + "path": "data/video/rope-061.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 640, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bubble": 2, + "candy": 1, + "grab_or_rope_anchor": 1, + "sock": 2, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 252, + "y": 284 + }, + { + "name": 56, + "x": 412, + "y": 395, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 256, + "y": 394, + "group": 0, + "angle": 270 + }, + { + "name": 3, + "x": 410, + "y": 60, + "timeout": -1 + }, + { + "name": 2, + "x": 252, + "y": 122 + }, + { + "name": 3, + "x": 411, + "y": 179, + "timeout": -1 + }, + { + "name": 3, + "x": 410, + "y": 119, + "timeout": -1 + }, + { + "name": 100, + "x": 253, + "y": 219, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 252, + "y": 343 + }, + { + "name": 54, + "x": 410, + "y": 256 + } + ] + }, + "reference_solution": "cut_rope 0 when candy_still for 0.3 and candy_near 810,640,60\npop_bubble 0 when candy_y < 450\npop_bubble 1 when candy_y < 100", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T15:44:30.241Z" + }, + "answer": { + "commands": "cut_rope 0 when candy_still for 0.3 and candy_near 810,640,60\npop_bubble 0 when candy_y < 450\npop_bubble 1 when candy_y < 100", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0 when candy_still for 0.3 and candy_near 810,640,60\npop_bubble 0 when candy_y < 450\npop_bubble 1 when candy_y < 100", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-061\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 1\n - bubble: 2\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-062.json b/cutrope/data/rope-062.json new file mode 100644 index 0000000000000000000000000000000000000000..a382f0fc2bca90027f4f2025f5fe98d112f9c813 --- /dev/null +++ b/cutrope/data/rope-062.json @@ -0,0 +1,137 @@ +{ + "schema_version": 1, + "level_id": "rope-062", + "level_file": "data/task/rope-062.json", + "video": { + "path": "data/video/rope-062.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 640, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bubble": 1, + "candy": 1, + "grab_or_rope_anchor": 2, + "gravity_button": 1, + "pump": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 392, + "y": 53 + }, + { + "name": 52, + "x": 299, + "y": 151 + }, + { + "name": 3, + "x": 301, + "y": 406, + "timeout": -1 + }, + { + "name": 100, + "x": 365, + "y": 64, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 301, + "y": 451, + "timeout": -1 + }, + { + "name": 53, + "x": 298, + "y": 66 + }, + { + "name": 54, + "x": 301, + "y": 302 + }, + { + "name": 100, + "x": 231, + "y": 66, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 55, + "x": 174, + "y": 151, + "angle": 0 + }, + { + "name": 3, + "x": 364, + "y": 131, + "timeout": 11 + } + ], + "levelId": "08-04", + "levelEditedAt": "2026-05-05T17:57:18.026Z", + "mirroredFrom": "08-04.json" + }, + "reference_solution": "cut_rope 0,1 \ntoggle_gravity when candy_y > 720\ntoggle_gravity when candy_y > 1000\nactivate_pump 0 when candy_y < 400", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T17:58:16.101Z" + }, + "answer": { + "commands": "cut_rope 0,1 \ntoggle_gravity when candy_y > 720\ntoggle_gravity when candy_y > 1000\nactivate_pump 0 when candy_y < 400", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0,1 \ntoggle_gravity when candy_y > 720\ntoggle_gravity when candy_y > 1000\nactivate_pump 0 when candy_y < 400", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-062\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 2\n - bubble: 1\n - pump: 1\n - gravity switch: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n- Pumps: activating a pump pushes nearby objects. `activate_pump N`, optionally with `times`/`every`/`until` modifiers for repeated activation.\n- Gravity switch: `toggle_gravity` reverses or rotates gravity. Often triggered after the candy crosses a coordinate threshold.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-063.json b/cutrope/data/rope-063.json new file mode 100644 index 0000000000000000000000000000000000000000..2d892e068cabb0daed86c1c3a1df8b785e8164f9 --- /dev/null +++ b/cutrope/data/rope-063.json @@ -0,0 +1,141 @@ +{ + "schema_version": 1, + "level_id": "rope-063", + "level_file": "data/task/rope-063.json", + "video": { + "path": "data/video/rope-063.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": true, + "special": 1, + "object_counts": { + "bubble": 2, + "grab_or_rope_anchor": 2, + "left_candy": 1, + "pump": 1, + "right_candy": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 212, + "y": 343 + }, + { + "name": 100, + "x": 210, + "y": 458, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 51, + "x": 124, + "y": 339 + }, + { + "name": 2, + "x": 232, + "y": 109 + }, + { + "name": 54, + "x": 100, + "y": 341 + }, + { + "name": 3, + "x": 119, + "y": 100, + "timeout": -1 + }, + { + "name": 100, + "x": 121, + "y": 460, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 125, + "y": 141, + "timeout": -1 + }, + { + "name": 3, + "x": 125, + "y": 123, + "timeout": -1 + }, + { + "name": 55, + "x": 273, + "y": 339, + "angle": 180 + }, + { + "name": 54, + "x": 206, + "y": 338 + } + ], + "levelId": "05-25", + "levelEditedAt": "2026-05-05T17:06:00.234Z" + }, + "reference_solution": "cut_rope 1 \npop_bubble 0 when right_candy_y<200\nactivate_pump 0 times 2 when right_candy_near 850,500,50\ncut_rope 0 when candy_still for 0.3", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T17:09:58.455Z" + }, + "answer": { + "commands": "cut_rope 1 \npop_bubble 0 when right_candy_y<200\nactivate_pump 0 times 2 when right_candy_near 850,500,50\ncut_rope 0 when candy_still for 0.3", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 1 \npop_bubble 0 when right_candy_y<200\nactivate_pump 0 times 2 when right_candy_near 850,500,50\ncut_rope 0 when candy_still for 0.3", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-063\n- canvas_size: 1920 x 1080\n- two_parts (split candy): True\n- object_counts:\n - target: 1\n - star: 3\n - left split candy: 1\n - right split candy: 1\n - rope/grab: 2\n - bubble: 2\n - pump: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Split candy: the level starts with left_candy and right_candy halves. Before they merge, use left_candy_* and right_candy_* conditions. After they touch and merge, use candy_* for the complete candy.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n- Pumps: activating a pump pushes nearby objects. `activate_pump N`, optionally with `times`/`every`/`until` modifiers for repeated activation.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-064.json b/cutrope/data/rope-064.json new file mode 100644 index 0000000000000000000000000000000000000000..00c080597dc7c5e4d73a594ae29214a3a4c10a29 --- /dev/null +++ b/cutrope/data/rope-064.json @@ -0,0 +1,172 @@ +{ + "schema_version": 1, + "level_id": "rope-064", + "level_file": "data/task/rope-064.json", + "video": { + "path": "data/video/rope-064.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bubble": 1, + "candy": 1, + "grab_or_rope_anchor": 6, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 158, + "y": 151 + }, + { + "name": 2, + "x": 155, + "y": 46 + }, + { + "name": 3, + "x": 156, + "y": 419, + "timeout": -1 + }, + { + "name": 3, + "x": 256, + "y": 358, + "timeout": -1 + }, + { + "name": 3, + "x": 158, + "y": 256, + "timeout": -1 + }, + { + "name": 100, + "x": 25, + "y": 108, + "length": 115, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 289, + "y": 108, + "length": 115, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 292, + "y": 189, + "length": 150, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 25, + "y": 189, + "length": 150, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 28, + "y": 268, + "length": 190, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 291, + "y": 267, + "length": 190, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 158, + "y": 420 + } + ], + "mirroredFrom": "01-23.json" + }, + "reference_solution": "cut_rope 0 when candy_still for 0.3 and candy_near 950,410,60\ncut_rope 3\ncut_rope 1 when candy_x > 1160\ncut_rope 2 when candy_still for 0.3 and candy_near 1120,820,60\ncut_rope 5 when candy_still for 0.3 and candy_near 960,190,60\ncut_rope 4", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T13:25:14.480Z" + }, + "answer": { + "commands": "cut_rope 0 when candy_still for 0.3 and candy_near 950,410,60\ncut_rope 3\ncut_rope 1 when candy_x > 1160\ncut_rope 2 when candy_still for 0.3 and candy_near 1120,820,60\ncut_rope 5 when candy_still for 0.3 and candy_near 960,190,60\ncut_rope 4", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0 when candy_still for 0.3 and candy_near 950,410,60\ncut_rope 3\ncut_rope 1 when candy_x > 1160\ncut_rope 2 when candy_still for 0.3 and candy_near 1120,820,60\ncut_rope 5 when candy_still for 0.3 and candy_near 960,190,60\ncut_rope 4", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-064\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 6\n - bubble: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-065.json b/cutrope/data/rope-065.json new file mode 100644 index 0000000000000000000000000000000000000000..57ea924458e2a0fda01b895f437462a73b98d673 --- /dev/null +++ b/cutrope/data/rope-065.json @@ -0,0 +1,171 @@ +{ + "schema_version": 1, + "level_id": "rope-065", + "level_file": "data/task/rope-065.json", + "video": { + "path": "data/video/rope-065.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 6, + "gravity_button": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 221, + "y": 414 + }, + { + "name": 100, + "x": 289, + "y": 342, + "length": 60, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 164, + "y": 342, + "length": 60, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 37, + "y": 344, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 34, + "y": 181, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 161, + "y": 182, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 288, + "y": 183, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 279, + "y": 65 + }, + { + "name": 3, + "x": 96, + "y": 110, + "timeout": -1 + }, + { + "name": 3, + "x": 225, + "y": 277, + "timeout": -1 + }, + { + "name": 3, + "x": 96, + "y": 435, + "timeout": -1 + }, + { + "name": 53, + "x": 223, + "y": 345 + } + ] + }, + "reference_solution": "toggle_gravity when candy_still for 0.3 and candy_near 1110,930,60\ncut_rope 1 when candy_still for 0.3 and candy_near 1110,610,60\ncut_rope 0\ncut_rope 5 when candy_still for 0.3 and candy_near 1110,210,60\ntoggle_gravity when candy_near 840,190,60\ncut_rope 3 when candy_still for 0.3 and candy_near 820,610,60\ncut_rope 4\ntoggle_gravity when candy_y > 960\ncut_rope 2 when candy_y < 520", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T18:05:27.836Z" + }, + "answer": { + "commands": "toggle_gravity when candy_still for 0.3 and candy_near 1110,930,60\ncut_rope 1 when candy_still for 0.3 and candy_near 1110,610,60\ncut_rope 0\ncut_rope 5 when candy_still for 0.3 and candy_near 1110,210,60\ntoggle_gravity when candy_near 840,190,60\ncut_rope 3 when candy_still for 0.3 and candy_near 820,610,60\ncut_rope 4\ntoggle_gravity when candy_y > 960\ncut_rope 2 when candy_y < 520", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "toggle_gravity when candy_still for 0.3 and candy_near 1110,930,60\ncut_rope 1 when candy_still for 0.3 and candy_near 1110,610,60\ncut_rope 0\ncut_rope 5 when candy_still for 0.3 and candy_near 1110,210,60\ntoggle_gravity when candy_near 840,190,60\ncut_rope 3 when candy_still for 0.3 and candy_near 820,610,60\ncut_rope 4\ntoggle_gravity when candy_y > 960\ncut_rope 2 when candy_y < 520", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-065\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 6\n - gravity switch: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Gravity switch: `toggle_gravity` reverses or rotates gravity. Often triggered after the candy crosses a coordinate threshold.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-066.json b/cutrope/data/rope-066.json new file mode 100644 index 0000000000000000000000000000000000000000..9b76f714356564b7fb5caa17a429aaf912372816 --- /dev/null +++ b/cutrope/data/rope-066.json @@ -0,0 +1,148 @@ +{ + "schema_version": 1, + "level_id": "rope-066", + "level_file": "data/task/rope-066.json", + "video": { + "path": "data/video/rope-066.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 4, + "gravity_button": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 160, + "y": 218 + }, + { + "name": 2, + "x": 88, + "y": 382 + }, + { + "name": 53, + "x": 259, + "y": 402 + }, + { + "name": 100, + "x": 39, + "y": 206, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 276, + "y": 204, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 157, + "y": 87, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 158, + "y": 322, + "length": 245, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 163, + "y": 179, + "timeout": -1 + }, + { + "name": 3, + "x": 0, + "y": 330, + "timeout": -1 + }, + { + "name": 3, + "x": 42, + "y": 95, + "timeout": -1 + } + ], + "levelId": "08-12", + "levelEditedAt": "2026-05-05T18:13:11.996Z", + "mirroredFrom": "08-12.json" + }, + "reference_solution": "cut_rope 1,2 \ntoggle_gravity when candy_x > 940\ncut_rope 3 when candy_x > 890\ntoggle_gravity when candy_x < 850\ncut_rope 0 when candy_near 620,760,50", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T18:13:17.137Z" + }, + "answer": { + "commands": "cut_rope 1,2 \ntoggle_gravity when candy_x > 940\ncut_rope 3 when candy_x > 890\ntoggle_gravity when candy_x < 850\ncut_rope 0 when candy_near 620,760,50", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 1,2 \ntoggle_gravity when candy_x > 940\ncut_rope 3 when candy_x > 890\ntoggle_gravity when candy_x < 850\ncut_rope 0 when candy_near 620,760,50", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-066\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 4\n - gravity switch: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Gravity switch: `toggle_gravity` reverses or rotates gravity. Often triggered after the candy crosses a coordinate threshold.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-067.json b/cutrope/data/rope-067.json new file mode 100644 index 0000000000000000000000000000000000000000..65c792bd247f7285ee6405f4ef40a551eb0ac853 --- /dev/null +++ b/cutrope/data/rope-067.json @@ -0,0 +1,432 @@ +{ + "schema_version": 1, + "level_id": "rope-067", + "level_file": "data/task/rope-067.json", + "video": { + "path": "data/video/rope-067.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 2, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 3, + "object_14": 1, + "object_4": 2, + "object_5": 5, + "object_8": 1, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 161, + "y": 433 + }, + { + "name": 100, + "x": 159, + "y": 42, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 246, + "y": 193, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 38, + "y": 289, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 156, + "y": 139 + }, + { + "name": 3, + "x": 162, + "y": 244, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 332, + "timeout": -1 + }, + { + "name": 3, + "x": 256, + "y": 331, + "timeout": -1 + }, + { + "name": 4, + "x": 177, + "y": 27, + "locale": "en", + "text": "Slide across to cut the rope", + "width": 130 + }, + { + "name": 4, + "x": 182, + "y": 351, + "locale": "en", + "text": "Deliver candy to Om Nom", + "width": 130 + }, + { + "name": 5, + "x": 57, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 8, + "x": 241, + "y": 433, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 109, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 213, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 265, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 14, + "x": 80, + "y": 130, + "locale": "en", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 2 + } + ], + "ru": [ + { + "name": 14, + "x": 80, + "y": 130, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 2 + }, + { + "name": 5, + "x": 109, + "y": 126, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 57, + "y": 126, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 126, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 213, + "y": 126, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 265, + "y": 126, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 177, + "y": 25, + "locale": "ru", + "text": "Проведите или нажмите курсором, чтобы перерезать веревку", + "width": 130 + }, + { + "name": 8, + "x": 231, + "y": 415, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 176, + "y": 340, + "locale": "ru", + "text": "Доставьте леденец Ам Няму", + "width": 140 + } + ], + "fr": [ + { + "name": 14, + "x": 80, + "y": 130, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 2 + }, + { + "name": 5, + "x": 109, + "y": 124, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 57, + "y": 124, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 124, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 213, + "y": 124, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 265, + "y": 124, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 177, + "y": 24, + "locale": "fr", + "text": "Clique ou fais glisser pour couper la corde", + "width": 130 + }, + { + "name": 8, + "x": 231, + "y": 435, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 196, + "y": 335, + "locale": "fr", + "text": "Donne un bonbon à Om Nom", + "width": 100 + } + ], + "de": [ + { + "name": 14, + "x": 80, + "y": 130, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 2 + }, + { + "name": 5, + "x": 109, + "y": 129, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 57, + "y": 129, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 129, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 213, + "y": 129, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 265, + "y": 129, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 179, + "y": 24, + "locale": "de", + "text": "Klicke oder ziehe, um das Seil zu schneiden", + "width": 120 + }, + { + "name": 8, + "x": 231, + "y": 436, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 200, + "y": 337, + "locale": "de", + "text": "Versorg Om Nom mit Bonbons", + "width": 100 + } + ] + }, + "reference_solution": "cut_rope 0\ncut_rope 1 when candy_near 1160,750,20", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T03:26:14.262Z" + }, + "answer": { + "commands": "cut_rope 0\ncut_rope 1 when candy_near 1160,750,20", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0\ncut_rope 1 when candy_near 1160,750,20", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-067\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 3\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-068.json b/cutrope/data/rope-068.json new file mode 100644 index 0000000000000000000000000000000000000000..9005fab7a9e109df2ee32a8adedf927a99ee2cd9 --- /dev/null +++ b/cutrope/data/rope-068.json @@ -0,0 +1,123 @@ +{ + "schema_version": 1, + "level_id": "rope-068", + "level_file": "data/task/rope-068.json", + "video": { + "path": "data/video/rope-068.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 320, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "bubble": 1, + "candy": 1, + "grab_or_rope_anchor": 2, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 291, + "y": -9 + }, + { + "name": 2, + "x": 62, + "y": 296 + }, + { + "name": 54, + "x": 178, + "y": 418 + }, + { + "name": 100, + "x": 227, + "y": 315, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 63, + "y": 161, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 3, + "x": 128, + "y": 86, + "timeout": -1 + }, + { + "name": 3, + "x": 289, + "y": 197, + "timeout": -1 + }, + { + "name": 3, + "x": 63, + "y": 243, + "timeout": -1 + } + ] + }, + "reference_solution": "cut_rope 0 when candy_x < 870\npop_bubble 0 when candy_still for 0.3 \ncut_rope 1 when candy_still for 0.3", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T13:18:57.463Z" + }, + "answer": { + "commands": "cut_rope 0 when candy_x < 870\npop_bubble 0 when candy_still for 0.3 \ncut_rope 1 when candy_still for 0.3", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 0 when candy_x < 870\npop_bubble 0 when candy_still for 0.3 \ncut_rope 1 when candy_still for 0.3", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-068\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 2\n - bubble: 1\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n- Bubbles: candy entering a bubble usually floats upward. `pop_bubble N` pops bubble N. In split-candy levels, `pop_bubble_left` / `pop_bubble_right` pop the bubble holding the corresponding half.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/data/rope-069.json b/cutrope/data/rope-069.json new file mode 100644 index 0000000000000000000000000000000000000000..ed91d1b7065939c9f2de880e0371ff5fbc5d5b33 --- /dev/null +++ b/cutrope/data/rope-069.json @@ -0,0 +1,132 @@ +{ + "schema_version": 1, + "level_id": "rope-069", + "level_file": "data/task/rope-069.json", + "video": { + "path": "data/video/rope-069.mp4", + "mime_type": "video/mp4", + "duration_seconds": 3, + "fps": 30 + }, + "prompt_level": { + "canvas_width": 1920, + "canvas_height": 1080, + "map_width": 640, + "map_height": 480, + "two_parts": false, + "special": 1, + "object_counts": { + "candy": 1, + "grab_or_rope_anchor": 3, + "star": 3, + "target": 1 + } + }, + "level_json_without_solution": { + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 300, + "y": 431 + }, + { + "name": 52, + "x": 326, + "y": 334 + }, + { + "name": 100, + "x": 323, + "y": 195, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 441, + "y": 401, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 206, + "y": 405, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 249, + "y": 173, + "timeout": -1 + }, + { + "name": 3, + "x": 420, + "y": 181, + "timeout": -1 + }, + { + "name": 3, + "x": 324, + "y": 375, + "timeout": -1 + } + ], + "levelId": "03-16", + "levelEditedAt": "2026-05-05T14:51:11.811Z", + "mirroredFrom": "03-16.json" + }, + "reference_solution": "cut_rope 1 when candy_still for 0.3 and candy_near 960,760,60\ncut_rope 2 \ncut_rope 0 when candy_near 1170,600,60", + "reference": { + "won": true, + "stars": 3, + "updated_at": "2026-05-05T14:51:18.915Z" + }, + "answer": { + "commands": "cut_rope 1 when candy_still for 0.3 and candy_near 960,760,60\ncut_rope 2 \ncut_rope 0 when candy_near 1170,600,60", + "reason": "reference solution", + "confidence": 1.0 + }, + "legacy_answer": "cut_rope 1 when candy_still for 0.3 and candy_near 960,760,60\ncut_rope 2 \ncut_rope 0 when candy_near 1170,600,60", + "prompt": { + "system": "You are a Cut the Rope replayable-script solver. Given a short gameplay video of one Cut the Rope level (with a coordinate grid overlay) and a structured description of the level objects, you produce a deterministic command script that, replayed from the same initial state, wins the level.\n\nYou will receive: (a) one short gameplay video of the level, (b) a structured text body listing the canvas size, the count of each gameplay object (candy, target, ropes, bubbles, pumps, gravity switches, stars), and the level metadata.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the commands schema described in section 8 of the user prompt: keys `commands`, `reason`, `confidence`. Multiple winning scripts may be valid; output any one. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident solution, still emit a best-effort FINAL_JSON line with at least one command and a confidence value below 1.0. Never refuse, never return prose only.", + "user": "## 1. TASK\nProduce a replayable command script that wins the Cut the Rope level shown in the gameplay video. The script must be deterministic so that replaying it from the same initial state in the simulator produces a win.\nThe level is solved when the candy reaches the target monster's mouth. Three-star completion is preferred but stable winning is the first priority.\n\n## 2. WORLD MODEL\n- Candy: a physics object affected by gravity, ropes, bubbles, pumps, and other active objects. Must be delivered to the target.\n- Target / monster: the level is won when the candy enters the target's mouth.\n- Rope: a constraint between the candy (or a split-candy half) and an anchor. Cutting a rope releases the candy from that constraint. Ropes are zero-indexed.\n- Grab: an anchor for a rope that can be repositioned during play. Zero-indexed.\n- Bubble: when the candy enters a bubble, it usually floats upward. Pop the bubble to release the candy.\n- Pump: a gust source that pushes objects. Each activation produces one impulse.\n- Gravity switch: toggles gravity direction or magnitude.\n- Star: collected by candy passing through its position. Up to 3 stars per level.\n- Split candy: some levels start with two candy halves (`left_candy`, `right_candy`). Use the half-specific conditions before the halves merge; switch to `candy_*` conditions after they merge.\n\n## 3. VISUAL LEGEND\n- The video is a short clip showing the full level layout and a coordinate grid overlay.\n- Coordinates: origin at the top-left corner. x increases to the right; y increases downward.\n- Indices in the video are zero-based for ropes, bubbles, pumps, and grabs. Infer indices from object positions and the order they appear in the clip.\n\n## 4. INPUT FIELDS\n- level_id: rope-069\n- canvas_size: 1920 x 1080\n- two_parts (split candy): False\n- object_counts:\n - target: 1\n - star: 3\n - candy: 1\n - rope/grab: 3\n- gameplay objects in this level:\n- Target (monster): the level is won when the candy reaches the monster's mouth. The target is usually fixed in place.\n- Candy: the candy is affected by gravity, ropes, bubbles, pumps, and other active objects. It must be delivered to the target.\n- Ropes / grabs: ropes constrain the candy or split-candy movement. `cut_rope N` cuts rope N; `cut_rope N,M,K` cuts multiple at once. If a grab can move, `move_grab N X` or `move_grab N X Y` repositions it.\n- Stars: candy or split-candy collects a star by passing through it. Prefer paths that collect 3 stars, but stable completion takes priority.\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered command script (one command per line). Available actions:\n- `cut_rope N` — cut rope N\n- `cut_rope N,M,K` — cut several ropes simultaneously\n- `pop_bubble N` — pop bubble N\n- `pop_bubble_left` — pop the bubble holding the left split-candy half\n- `pop_bubble_right` — pop the bubble holding the right split-candy half\n- `activate_pump N` — fire pump N once\n- `activate_pump N times C` — fire C times back-to-back\n- `activate_pump N times C every S` — fire C times spaced S seconds apart\n- `activate_pump N every S until ` — fire repeatedly until CONDITION holds\n- `move_grab N X` — move grab N to x-coordinate X (y unchanged)\n- `move_grab N X Y` — move grab N to (X, Y)\n- `kick_rope N` — apply a one-shot impulse to rope N\n- `toggle_gravity` — toggle the gravity setting\n\nEach command may be guarded by an optional `when ` clause. Available condition primitives:\n- `candy_x > N`, `candy_x < N`, `candy_y > N`, `candy_y < N`\n- `candy_near X,Y,R` — candy is within radius R of (X,Y); optional `for S` requires the predicate to hold for S seconds\n- `candy_still for S` — candy speed is below threshold for S seconds (useful before cutting after a swing settles)\n- `left_candy_*` and `right_candy_*` mirror the candy_* primitives for the corresponding split half\n- `grab_x I > N`, `grab_y I < N`, `grab_near I,X,Y,R`\n- `rope_cut N` — rope N has been cut\n- `no_rope`, `candy_in_bubble`\n- Conditions can be combined with `and`, `or`, and parentheses.\n\n## 6. CONSTRAINTS\n- One command per line in the `commands` string.\n- Indices must be zero-based and consistent with the level video.\n- `wait_frames` is NOT allowed in this benchmark version. Use condition-based waits.\n- The script must be deterministic; do not output stochastic or \"either-or\" entries.\n- The script must terminate without manual intervention; the simulator runs it from the initial state and decides win/loss.\n\n## 7. SOLVING ADVICE\n- Identify which ropes mainly control the candy first; choose a cut order that releases the candy along the shortest stable path to the target.\n- When waiting for the candy to reach a place, prefer `candy_near` / `candy_y` / `candy_x` over fixed timing.\n- For repeated pumping, use `activate_pump N times C every S` or `activate_pump N every S until CONDITION`.\n- In split-candy levels, do NOT use `candy_still` / `candy_near` for the merged candy before the halves merge; use the `left_candy_*` / `right_candy_*` primitives instead.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"commands\":\"\",\"reason\":\"\",\"confidence\":<0..1>}\n- commands: string. One command per line; lines separated by `\\n`.\n- reason: short one-sentence explanation of the intended sequence.\n- confidence: float in `[0, 1]`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cutrope/source/rope-097.json b/cutrope/source/rope-097.json new file mode 100644 index 0000000000000000000000000000000000000000..9060bb8f58ef2e7944e9a0f7c7f93ac95a6dde80 --- /dev/null +++ b/cutrope/source/rope-097.json @@ -0,0 +1,124 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 164, + "y": 266 + }, + { + "name": 2, + "x": 236, + "y": 73 + }, + { + "name": 100, + "x": 154, + "y": 129, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 283, + "y": 269, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 77, + "y": 382, + "timeout": -1 + }, + { + "name": 3, + "x": 258, + "y": 378, + "timeout": -1 + }, + { + "name": 3, + "x": 235, + "y": 163, + "timeout": -1 + }, + { + "name": 82, + "x": 307, + "y": 385, + "angle": 90, + "size": 2 + }, + { + "name": 54, + "x": 77, + "y": 173 + }, + { + "name": 56, + "x": 203, + "y": 382, + "group": 0, + "angle": 0 + }, + { + "name": 56, + "x": 79, + "y": 104, + "group": 0, + "angle": 90 + }, + { + "name": 100, + "x": 34, + "y": 274, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 80, + "y": 374 + } + ], + "textCommandSolution": "cut_rope 0,2\npop_bubble 0 when candy_y < 340", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:39:56.417Z", + "mirroredFrom": "06-23.json" +} diff --git a/cutrope/source/rope-098.json b/cutrope/source/rope-098.json new file mode 100644 index 0000000000000000000000000000000000000000..df4a7e0c6684bb309a01acf7e38afdd678b3d574 --- /dev/null +++ b/cutrope/source/rope-098.json @@ -0,0 +1,85 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 140, + "y": 165 + }, + { + "name": 56, + "x": 140, + "y": 403, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 247, + "y": 402, + "group": 0, + "angle": 270 + }, + { + "name": 3, + "x": 249, + "y": 53, + "timeout": -1 + }, + { + "name": 3, + "x": 143, + "y": 298, + "timeout": -1 + }, + { + "name": 3, + "x": 251, + "y": 296, + "timeout": -1 + }, + { + "name": 52, + "x": 246, + "y": 131 + }, + { + "name": 100, + "x": 248, + "y": 239, + "length": 80, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 247, + "y": 128 + } + ], + "levelId": "04-13", + "levelEditedAt": "2026-05-05T15:41:29.028Z", + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_y < 140\ncut_rope 0 when candy_y > 570", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:41:57.174Z", + "mirroredFrom": "04-13.json" +} diff --git a/cutrope/source/rope-099.json b/cutrope/source/rope-099.json new file mode 100644 index 0000000000000000000000000000000000000000..e6e697b8683bfa817c9ec83c6bd22b1f4e2b2fbc --- /dev/null +++ b/cutrope/source/rope-099.json @@ -0,0 +1,83 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 54, + "x": 237, + "y": 124 + }, + { + "name": 54, + "x": 237, + "y": 319 + }, + { + "name": 55, + "x": 162, + "y": 126, + "angle": 0 + }, + { + "name": 2, + "x": 383, + "y": 420 + }, + { + "name": 52, + "x": 236, + "y": 324 + }, + { + "name": 3, + "x": 387, + "y": 317, + "timeout": 8 + }, + { + "name": 3, + "x": 380, + "y": 135, + "timeout": 9 + }, + { + "name": 3, + "x": 236, + "y": 124, + "timeout": 7 + }, + { + "name": 100, + "x": 237, + "y": 434, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "02-19", + "levelEditedAt": "2026-05-05T14:21:35.907Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 770,720,60\nactivate_pump 0 when candy_y < 300\npop_bubble 0 when candy_y < 100", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:21:53.945Z", + "mirroredFrom": "02-19.json" +} diff --git a/cutrope/source/rope-100.json b/cutrope/source/rope-100.json new file mode 100644 index 0000000000000000000000000000000000000000..46a514b8dfe5732f272141a3b17471fd2c45bca7 --- /dev/null +++ b/cutrope/source/rope-100.json @@ -0,0 +1,95 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 402, + "y": 351 + }, + { + "name": 2, + "x": 234, + "y": 61 + }, + { + "name": 54, + "x": 247, + "y": 410 + }, + { + "name": 100, + "x": 330, + "y": 128, + "length": 210, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 224, + "y": 126, + "length": 275, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 325, + "y": 418 + }, + { + "name": 54, + "x": 403, + "y": 412 + }, + { + "name": 3, + "x": 404, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 235, + "y": 193, + "timeout": -1 + }, + { + "name": 3, + "x": 326, + "y": 418, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 2 when candy_y < 400", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:12:36.555Z" +} diff --git a/cutrope/source/rope-101.json b/cutrope/source/rope-101.json new file mode 100644 index 0000000000000000000000000000000000000000..375696a22d0af6b8b38632951e4c3e8dc900f9e3 --- /dev/null +++ b/cutrope/source/rope-101.json @@ -0,0 +1,92 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 125, + "y": 258, + "length": 100, + "wheel": false, + "gun": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 126, + "y": 371, + "timeout": 10 + }, + { + "name": 54, + "x": 127, + "y": 378 + }, + { + "name": 2, + "x": 124, + "y": 71 + }, + { + "name": 3, + "x": 205, + "y": 83, + "timeout": -1 + }, + { + "name": 55, + "x": 36, + "y": 146, + "angle": 0 + }, + { + "name": 3, + "x": 31, + "y": 76, + "timeout": -1 + }, + { + "name": 52, + "x": 125, + "y": 140 + }, + { + "name": 100, + "x": 126, + "y": 34, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "02-22", + "levelEditedAt": "2026-05-05T14:38:58.835Z", + "textCommandSolution": "activate_pump 0 \ncut_rope 1 when candy_near 730,250,50 times 2\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:41:38.128Z", + "mirroredFrom": "02-22.json" +} diff --git a/cutrope/source/rope-102.json b/cutrope/source/rope-102.json new file mode 100644 index 0000000000000000000000000000000000000000..cfbf9e5c0be0f949816ef7faa8c584a7efe14967 --- /dev/null +++ b/cutrope/source/rope-102.json @@ -0,0 +1,131 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 157, + "y": 41 + }, + { + "name": 52, + "x": 154, + "y": 174 + }, + { + "name": 100, + "x": 258, + "y": 161, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 50, + "y": 160, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 157, + "y": 301, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 198, + "y": 397, + "timeout": -1 + }, + { + "name": 3, + "x": 155, + "y": 109, + "timeout": 9 + }, + { + "name": 3, + "x": 110, + "y": 402, + "timeout": -1 + }, + { + "name": 81, + "x": 63, + "y": 407, + "angle": 90, + "size": 1 + }, + { + "name": 81, + "x": 260, + "y": 288, + "angle": 90, + "size": 1 + }, + { + "name": 54, + "x": 106, + "y": 398 + }, + { + "name": 54, + "x": 154, + "y": 173 + }, + { + "name": 103, + "x": 38, + "y": 212, + "angle": 20, + "Pj": 12 + } + ], + "levelId": "06-17", + "levelEditedAt": "2026-05-05T17:31:14.946Z", + "textCommandSolution": "cut_rope 1 \npop_bubble 1 when candy_still for 0.3 and candy_near 960,370,60\ncut_rope 0 when candy_y > 660\ncut_rope 2 when candy_y < 380", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:32:03.745Z" +} diff --git a/cutrope/source/rope-103.json b/cutrope/source/rope-103.json new file mode 100644 index 0000000000000000000000000000000000000000..e9520a0a6904a6ca16c8667647b27824c6da791b --- /dev/null +++ b/cutrope/source/rope-103.json @@ -0,0 +1,98 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 162, + "y": 187 + }, + { + "name": 2, + "x": 58, + "y": 362 + }, + { + "name": 100, + "x": 159, + "y": 315, + "length": 93, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 31, + "y": 186, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 158, + "y": 57, + "length": 93, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 287, + "y": 186, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 3, + "x": 161, + "y": 226, + "timeout": -1 + }, + { + "name": 3, + "x": 288, + "y": 312, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 434, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 2\ncut_rope 1 when candy_still for 0.3 \ncut_rope 3 when candy_x > 1200", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:54:15.133Z", + "mirroredFrom": "01-04.json" +} diff --git a/cutrope/source/rope-104.json b/cutrope/source/rope-104.json new file mode 100644 index 0000000000000000000000000000000000000000..282e0b660eb13f966c0b35558a573f45297ed2ae --- /dev/null +++ b/cutrope/source/rope-104.json @@ -0,0 +1,89 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 388, + "y": 284 + }, + { + "name": 56, + "x": 228, + "y": 395, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 384, + "y": 394, + "group": 0, + "angle": 270 + }, + { + "name": 3, + "x": 230, + "y": 60, + "timeout": -1 + }, + { + "name": 2, + "x": 388, + "y": 122 + }, + { + "name": 3, + "x": 229, + "y": 179, + "timeout": -1 + }, + { + "name": 3, + "x": 230, + "y": 119, + "timeout": -1 + }, + { + "name": 100, + "x": 387, + "y": 219, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 388, + "y": 343 + }, + { + "name": 54, + "x": 230, + "y": 256 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1110,640,60\npop_bubble 0 when candy_y < 450\npop_bubble 1 when candy_y < 100", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:44:30.241Z", + "mirroredFrom": "04-07.json" +} diff --git a/cutrope/source/rope-105.json b/cutrope/source/rope-105.json new file mode 100644 index 0000000000000000000000000000000000000000..f707a74406b6ba70f493293277cbfb857609a922 --- /dev/null +++ b/cutrope/source/rope-105.json @@ -0,0 +1,144 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 285, + "y": 188 + }, + { + "name": 50, + "x": 28, + "y": 188 + }, + { + "name": 100, + "x": 287, + "y": 95, + "length": 50, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 30, + "y": 95, + "length": 50, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 287, + "y": 384, + "length": 110, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 30, + "y": 384, + "length": 110, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 160, + "y": 435 + }, + { + "name": 3, + "x": 27, + "y": 143, + "timeout": -1 + }, + { + "name": 3, + "x": 286, + "y": 146, + "timeout": -1 + }, + { + "name": 81, + "x": 30, + "y": 440, + "angle": 195, + "size": 1 + }, + { + "name": 3, + "x": 160, + "y": 157, + "timeout": -1 + }, + { + "name": 54, + "x": 160, + "y": 329 + }, + { + "name": 81, + "x": 286, + "y": 436, + "angle": 165, + "size": 1 + } + ], + "levelId": "09-14", + "levelEditedAt": "2026-05-05T18:39:38.480Z", + "textCommandSolution": "cut_rope 2,3 \ncut_rope 0,1 \npop_bubble 0 when candy_y < 300", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:39:48.755Z", + "mirroredFrom": "09-14.json" +} diff --git a/cutrope/source/rope-106.json b/cutrope/source/rope-106.json new file mode 100644 index 0000000000000000000000000000000000000000..6308bc346f049eaa9b77350d151e89de9165d542 --- /dev/null +++ b/cutrope/source/rope-106.json @@ -0,0 +1,117 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 54, + "x": 210, + "y": 315 + }, + { + "name": 54, + "x": 311, + "y": 420 + }, + { + "name": 100, + "x": 312, + "y": 318, + "length": 100, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 311, + "y": 210 + }, + { + "name": 3, + "x": 403, + "y": 167, + "timeout": -1 + }, + { + "name": 3, + "x": 216, + "y": 314, + "timeout": -1 + }, + { + "name": 3, + "x": 410, + "y": 313, + "timeout": -1 + }, + { + "name": 2, + "x": 318, + "y": 41 + }, + { + "name": 54, + "x": 239, + "y": 242 + }, + { + "name": 54, + "x": 239, + "y": 387 + }, + { + "name": 100, + "x": 231, + "y": 35, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 315, + "y": 121 + }, + { + "name": 100, + "x": 416, + "y": 35, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_near 1250,360,60 times 2\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:01:54.229Z" +} diff --git a/cutrope/source/rope-107.json b/cutrope/source/rope-107.json new file mode 100644 index 0000000000000000000000000000000000000000..59d0d5b836181464b28d3ba7cce5d96875f89467 --- /dev/null +++ b/cutrope/source/rope-107.json @@ -0,0 +1,118 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 54, + "x": 430, + "y": 315 + }, + { + "name": 54, + "x": 329, + "y": 420 + }, + { + "name": 100, + "x": 328, + "y": 318, + "length": 100, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 329, + "y": 210 + }, + { + "name": 3, + "x": 237, + "y": 167, + "timeout": -1 + }, + { + "name": 3, + "x": 424, + "y": 314, + "timeout": -1 + }, + { + "name": 3, + "x": 230, + "y": 313, + "timeout": -1 + }, + { + "name": 2, + "x": 322, + "y": 41 + }, + { + "name": 54, + "x": 401, + "y": 242 + }, + { + "name": 54, + "x": 401, + "y": 387 + }, + { + "name": 100, + "x": 409, + "y": 35, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 325, + "y": 121 + }, + { + "name": 100, + "x": 224, + "y": 35, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_near 670,360,60 times 2\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:01:54.229Z", + "mirroredFrom": "02-13.json" +} diff --git a/cutrope/source/rope-108.json b/cutrope/source/rope-108.json new file mode 100644 index 0000000000000000000000000000000000000000..3254e76d19bc0b6420bc18af80a3acc49945d962 --- /dev/null +++ b/cutrope/source/rope-108.json @@ -0,0 +1,86 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 290, + "y": 435 + }, + { + "name": 52, + "x": 290, + "y": 203 + }, + { + "name": 3, + "x": 356, + "y": 195, + "timeout": -1 + }, + { + "name": 3, + "x": 225, + "y": 197, + "timeout": -1 + }, + { + "name": 55, + "x": 365, + "y": 198, + "angle": 180 + }, + { + "name": 3, + "x": 290, + "y": 384, + "timeout": -1 + }, + { + "name": 100, + "x": 291, + "y": 26, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 292, + "y": 341, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "02-15", + "levelEditedAt": "2026-05-05T14:10:19.581Z", + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 900,460,60\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:12:23.144Z" +} diff --git a/cutrope/source/rope-109.json b/cutrope/source/rope-109.json new file mode 100644 index 0000000000000000000000000000000000000000..28a0b57535d408b60ec0b8b8888b275529b5a0ec --- /dev/null +++ b/cutrope/source/rope-109.json @@ -0,0 +1,144 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 160, + "y": 52 + }, + { + "name": 52, + "x": 157, + "y": 367 + }, + { + "name": 3, + "x": 161, + "y": 262, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 145, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 203, + "timeout": -1 + }, + { + "name": 100, + "x": 159, + "y": 463, + "length": 65, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 157, + "y": 365 + } + ], + "ru": [ + { + "name": 4, + "x": 166, + "y": 155, + "locale": "ru", + "text": "Эти пилы поворачиваются вместе", + "width": 150 + }, + { + "name": 13, + "x": 238, + "y": 138, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "w": [ + { + "name": 4, + "x": 166, + "y": 161, + "locale": "en", + "text": "These blades rotate together", + "width": 150 + }, + { + "name": 13, + "x": 239, + "y": 147, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 125, + "y": 189, + "locale": "de", + "text": "Diese Sägeblätter drehen sich gemeinsam", + "width": 200 + }, + { + "name": 13, + "x": 215, + "y": 177, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 172, + "y": 162, + "locale": "fr", + "text": "Ces lames tournent ensemble", + "width": 140 + }, + { + "name": 13, + "x": 236, + "y": 150, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:23:46.516Z", + "mirroredFrom": "09-02.json" +} diff --git a/cutrope/source/rope-110.json b/cutrope/source/rope-110.json new file mode 100644 index 0000000000000000000000000000000000000000..bbde5de2e2a91c3e5ce1c1814694984e94541b6e --- /dev/null +++ b/cutrope/source/rope-110.json @@ -0,0 +1,166 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 217, + "y": 413 + }, + { + "name": 100, + "x": 50, + "y": 56, + "length": 55, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 157, + "y": 58, + "length": 130, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 47, + "y": 150 + }, + { + "name": 3, + "x": 151, + "y": 384, + "timeout": -1 + }, + { + "name": 3, + "x": 121, + "y": 217, + "timeout": -1 + }, + { + "name": 3, + "x": 51, + "y": 217, + "timeout": -1 + }, + { + "name": 56, + "x": 127, + "y": 388, + "group": 0, + "angle": 0 + }, + { + "name": 56, + "x": 194, + "y": 218, + "group": 0, + "angle": -180 + }, + { + "name": 4, + "x": 51, + "y": 247, + "locale": "en", + "text": "Drop the candy into the sock and it will fall out from the other one", + "width": 220 + }, + { + "name": 8, + "x": 160, + "y": 236, + "locale": "en", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 8, + "x": 160, + "y": 237, + "locale": "fr", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 52, + "y": 246, + "locale": "fr", + "text": "Dépose le bonbon dans la chaussette et il sortira de l'autre chaussette", + "width": 160 + } + ], + "de": [ + { + "name": 8, + "x": 161, + "y": 237, + "locale": "de", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 54, + "y": 245, + "locale": "de", + "text": "Wirf die Süßigkeiten in den Strumpf und sie kommt aus dem anderen wieder heraus", + "width": 200 + } + ], + "ru": [ + { + "name": 8, + "x": 160, + "y": 236, + "locale": "ru", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 52, + "y": 242, + "locale": "ru", + "text": "Киньте леденец в один из носков, и он вылетит из другого", + "width": 160 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T05:23:54.654Z" +} diff --git a/cutrope/source/rope-111.json b/cutrope/source/rope-111.json new file mode 100644 index 0000000000000000000000000000000000000000..fffc72b4be496987f6afcf37ff5ff7b78c887b34 --- /dev/null +++ b/cutrope/source/rope-111.json @@ -0,0 +1,114 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 248, + "y": 65 + }, + { + "name": 100, + "x": 183, + "y": 219, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 32, + "y": 218, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 113, + "y": 317 + }, + { + "name": 3, + "x": 108, + "y": 244, + "timeout": -1 + }, + { + "name": 3, + "x": 254, + "y": 252, + "timeout": -1 + }, + { + "name": 3, + "x": 170, + "y": 122, + "timeout": -1 + }, + { + "name": 54, + "x": 113, + "y": 182 + }, + { + "name": 54, + "x": 109, + "y": 242 + }, + { + "name": 54, + "x": 256, + "y": 310 + }, + { + "name": 55, + "x": 51, + "y": 160, + "angle": 0 + }, + { + "name": 56, + "x": 107, + "y": 408, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 254, + "y": 371, + "group": 0, + "angle": 270 + } + ], + "textCommandSolution": "cut_rope 0,1 \npop_bubble 2 when candy_y < 400\nactivate_pump 0 when candy_y < 350", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T09:36:55.902Z", + "mirroredFrom": "00-11.json" +} diff --git a/cutrope/source/rope-112.json b/cutrope/source/rope-112.json new file mode 100644 index 0000000000000000000000000000000000000000..c71dfa653086e41d9f62f72f84fdb4aca3fc23ab --- /dev/null +++ b/cutrope/source/rope-112.json @@ -0,0 +1,162 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 69, + "y": 203 + }, + { + "name": 100, + "x": 52, + "y": 70, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 162, + "y": 69, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 264, + "y": 419 + }, + { + "name": 3, + "x": 54, + "y": 250, + "timeout": -1 + }, + { + "name": 3, + "x": 53, + "y": 369, + "timeout": -1 + }, + { + "name": 3, + "x": 280, + "y": 250, + "timeout": -1 + }, + { + "name": 100, + "x": 275, + "y": 69, + "length": 320, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 4, + "x": 133, + "y": 285, + "locale": "en", + "text": "Collect as many stars as you can", + "width": 150 + }, + { + "name": 13, + "x": 113, + "y": 321, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 94, + "y": 315, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 103, + "y": 278, + "locale": "ru", + "text": "Старайтесь собирать звезды леденцом", + "width": 210 + } + ], + "fr": [ + { + "name": 4, + "x": 137, + "y": 285, + "locale": "fr", + "text": "Collecte autant d'étoiles que tu le peux", + "width": 200 + }, + { + "name": 13, + "x": 113, + "y": 321, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 126, + "y": 285, + "locale": "de", + "text": "Sammle möglichst viele Sternchen", + "width": 170 + }, + { + "name": 13, + "x": 106, + "y": 321, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 1 when candy_near 700,580,50 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:51:22.171Z" +} diff --git a/cutrope/source/rope-113.json b/cutrope/source/rope-113.json new file mode 100644 index 0000000000000000000000000000000000000000..ac0e76100e44760262433153fab0e8081ae7d28c --- /dev/null +++ b/cutrope/source/rope-113.json @@ -0,0 +1,152 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 248, + "y": 384 + }, + { + "name": 56, + "x": 59, + "y": 367, + "group": 0, + "angle": -90 + }, + { + "name": 56, + "x": 254, + "y": 114, + "group": 0, + "angle": 90 + }, + { + "name": 52, + "x": 55, + "y": 173 + }, + { + "name": 100, + "x": 56, + "y": 69, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": 0, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 4, + "x": 76, + "y": 209, + "locale": "en", + "text": "Drop the candy into the magic hat and it will fall out from the other one", + "width": 160 + }, + { + "name": 8, + "x": 118, + "y": 347, + "locale": "en", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 3, + "x": 56, + "y": 328, + "timeout": -1 + }, + { + "name": 3, + "x": 259, + "y": 177, + "timeout": -1 + }, + { + "name": 3, + "x": 250, + "y": 319, + "timeout": -1 + } + ], + "fr": [ + { + "name": 8, + "x": 118, + "y": 347, + "locale": "fr", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 76, + "y": 201, + "locale": "fr", + "text": "Dépose le bonbon dans le chapeau magique et il tombera de l'autre chapeau", + "width": 160 + } + ], + "de": [ + { + "name": 8, + "x": 118, + "y": 348, + "locale": "de", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 72, + "y": 197, + "locale": "de", + "text": "Wirf den Bonbon in den magischen Hut und er kommt aus einem anderen wieder raus", + "width": 160 + } + ], + "ru": [ + { + "name": 8, + "x": 122, + "y": 354, + "locale": "ru", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 80, + "y": 230, + "locale": "ru", + "text": "Киньте конфету в одну из волшебных шляп, и она вылетит из другой", + "width": 160 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:23:40.902Z" +} diff --git a/cutrope/source/rope-114.json b/cutrope/source/rope-114.json new file mode 100644 index 0000000000000000000000000000000000000000..f4781ffb1042877e10c795408ea69c9546548a2e --- /dev/null +++ b/cutrope/source/rope-114.json @@ -0,0 +1,161 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 256, + "y": 310 + }, + { + "name": 2, + "x": 76, + "y": 77 + }, + { + "name": 100, + "x": 254, + "y": 248, + "length": 60, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 255, + "y": 424 + }, + { + "name": 100, + "x": 177, + "y": 159, + "length": 100, + "wheel": false, + "gun": false, + "radius": 75, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 82, + "y": 211 + }, + { + "name": 3, + "x": 255, + "y": 425, + "timeout": -1 + }, + { + "name": 3, + "x": 257, + "y": 205, + "timeout": -1 + }, + { + "name": 3, + "x": 81, + "y": 211, + "timeout": -1 + }, + { + "name": 4, + "x": 185, + "y": 336, + "locale": "en", + "text": "You can skip the level in the pause menu", + "width": 140 + }, + { + "name": 13, + "x": 120, + "y": 322, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 137, + "y": 312, + "locale": "ru", + "text": "Вы можете пропустить уровень через меню паузы", + "width": 140 + }, + { + "name": 13, + "x": 202, + "y": 297, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 135, + "y": 337, + "locale": "fr", + "text": "Tu peux passer le niveau via le menu Pause", + "width": 140 + }, + { + "name": 13, + "x": 200, + "y": 323, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 141, + "y": 318, + "locale": "de", + "text": "Im Pause-Menü kannst Du den Level überspringen", + "width": 170 + }, + { + "name": 13, + "x": 224, + "y": 303, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_y < 300", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:13:28.866Z", + "mirroredFrom": "01-14.json" +} diff --git a/cutrope/source/rope-115.json b/cutrope/source/rope-115.json new file mode 100644 index 0000000000000000000000000000000000000000..3ce6b7280e279759a09f02b7cda21dd47808b0b2 --- /dev/null +++ b/cutrope/source/rope-115.json @@ -0,0 +1,93 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 280, + "y": 221 + }, + { + "name": 100, + "x": 361, + "y": 281, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 363, + "y": 120, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 253, + "y": 387 + }, + { + "name": 3, + "x": 481, + "y": 318, + "timeout": -1 + }, + { + "name": 3, + "x": 363, + "y": 403, + "timeout": -1 + }, + { + "name": 3, + "x": 415, + "y": 223, + "timeout": -1 + }, + { + "name": 100, + "x": 108, + "y": 169, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "textCommandSolution": "cut_rope 2 \ncut_rope 1 when candy_near 1200,500,40", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:52:21.093Z", + "mirroredFrom": "01-03.json" +} diff --git a/cutrope/source/rope-116.json b/cutrope/source/rope-116.json new file mode 100644 index 0000000000000000000000000000000000000000..f158d37d029a385af734c9e59e7630c6b36655b0 --- /dev/null +++ b/cutrope/source/rope-116.json @@ -0,0 +1,148 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 41, + "y": 333 + }, + { + "name": 52, + "x": 113, + "y": 149 + }, + { + "name": 100, + "x": 194, + "y": 55, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 171, + "y": 234, + "timeout": -1 + }, + { + "name": 3, + "x": 106, + "y": 286, + "timeout": -1 + }, + { + "name": 3, + "x": 264, + "y": 225, + "timeout": -1 + }, + { + "name": 81, + "x": 282, + "y": 261, + "angle": 140, + "size": 1 + } + ], + "w": [ + { + "name": 8, + "x": 56, + "y": 322, + "locale": "en", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 78, + "y": 302, + "locale": "en", + "text": "Candy will bounce away from this platform", + "width": 120 + } + ], + "ru": [ + { + "name": 4, + "x": 81, + "y": 302, + "locale": "ru", + "text": "Леденец отскакивает от таких платформ", + "width": 100 + }, + { + "name": 8, + "x": 56, + "y": 323, + "locale": "ru", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 8, + "x": 65, + "y": 323, + "locale": "de", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 91, + "y": 297, + "locale": "de", + "text": "Von dieser Plattform prallt der Bonbon ab", + "width": 90 + } + ], + "fr": [ + { + "name": 8, + "x": 57, + "y": 323, + "locale": "fr", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 79, + "y": 301, + "locale": "fr", + "text": "Le bonbon rebondira hors de cette plateforme", + "width": 120 + } + ], + "textCommandSolution": "cut_rope 0 when candy_x > 1080", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:10:40.704Z", + "mirroredFrom": "06-01.json" +} diff --git a/cutrope/source/rope-117.json b/cutrope/source/rope-117.json new file mode 100644 index 0000000000000000000000000000000000000000..6ab1e3b658fd125e210fab39a1ab75ba59343819 --- /dev/null +++ b/cutrope/source/rope-117.json @@ -0,0 +1,133 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 2, + "x": 162, + "y": 430 + }, + { + "name": 100, + "x": 101, + "y": 271, + "length": 100, + "wheel": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 36, + "y": 148, + "length": 100, + "wheel": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 291, + "y": 149, + "length": 100, + "wheel": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 227, + "y": 273, + "length": 100, + "wheel": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 52, + "x": 159, + "y": 159 + }, + { + "name": 3, + "x": 96, + "y": 379, + "timeout": -1 + }, + { + "name": 3, + "x": 29, + "y": 246, + "timeout": -1 + }, + { + "name": 3, + "x": 225, + "y": 377, + "timeout": -1 + }, + { + "name": 100, + "x": 98, + "y": 79, + "length": 90, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 226, + "y": 80, + "length": 90, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 162, + "y": 34, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + } + ], + "textCommandSolution": "cut_rope 6,5 \ncut_rope 4 when candy_x < 700\ncut_rope 1 when candy_still for 0.3\ncut_rope 0 when candy_still for 0.3 \ncut_rope 3 when candy_near 1070,870,60 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:07:13.482Z" +} diff --git a/cutrope/source/rope-118.json b/cutrope/source/rope-118.json new file mode 100644 index 0000000000000000000000000000000000000000..d593e38c921e276944dba79d50a12b6a53e86ad2 --- /dev/null +++ b/cutrope/source/rope-118.json @@ -0,0 +1,97 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 158, + "y": 187 + }, + { + "name": 2, + "x": 262, + "y": 362 + }, + { + "name": 100, + "x": 161, + "y": 315, + "length": 93, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 289, + "y": 186, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 162, + "y": 57, + "length": 93, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 33, + "y": 186, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 3, + "x": 159, + "y": 226, + "timeout": -1 + }, + { + "name": 3, + "x": 32, + "y": 312, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 434, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 2\ncut_rope 1 when candy_still for 0.3 \ncut_rope 3 when candy_x < 720", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:54:15.133Z" +} diff --git a/cutrope/source/rope-119.json b/cutrope/source/rope-119.json new file mode 100644 index 0000000000000000000000000000000000000000..b8de690d894fd73d6e688da2255fad1ece04f8b9 --- /dev/null +++ b/cutrope/source/rope-119.json @@ -0,0 +1,85 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 162, + "y": 430 + }, + { + "name": 54, + "x": 159, + "y": 320 + }, + { + "name": 100, + "x": 97, + "y": 122, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 159, + "y": 231 + }, + { + "name": 3, + "x": 161, + "y": 75, + "timeout": -1 + }, + { + "name": 3, + "x": 162, + "y": 170, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 275, + "timeout": -1 + }, + { + "name": 100, + "x": 222, + "y": 122, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "00-15", + "levelEditedAt": "2026-05-05T10:12:06.544Z", + "textCommandSolution": "cut_rope 0,1 \npop_bubble 0 when candy_y < 190", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:12:53.720Z" +} diff --git a/cutrope/source/rope-120.json b/cutrope/source/rope-120.json new file mode 100644 index 0000000000000000000000000000000000000000..2cb834fdbee2fb58472cea27074a38f64d702d71 --- /dev/null +++ b/cutrope/source/rope-120.json @@ -0,0 +1,93 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 55, + "x": 600, + "y": 398, + "angle": 180 + }, + { + "name": 55, + "x": 483, + "y": 98, + "angle": 180 + }, + { + "name": 55, + "x": 316, + "y": 398, + "angle": 180 + }, + { + "name": 52, + "x": 482, + "y": 301 + }, + { + "name": 54, + "x": 479, + "y": 391 + }, + { + "name": 100, + "x": 478, + "y": 164, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 89, + "y": 64 + }, + { + "name": 3, + "x": 354, + "y": 94, + "timeout": -1 + }, + { + "name": 3, + "x": 89, + "y": 166, + "timeout": 20 + }, + { + "name": 3, + "x": 172, + "y": 399, + "timeout": -1 + }, + { + "name": 53, + "x": 261, + "y": 228 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1320,670,60\nactivate_pump 0 when candy_y > 880\nactivate_pump 0 when candy_y > 890\ntoggle_gravity when candy_x < 1080\ntoggle_gravity when candy_x < 1060\nactivate_pump 1 when candy_y < 240\nactivate_pump 1\ntoggle_gravity when candy_y < 50\nactivate_pump 2 when candy_y > 850\nactivate_pump 2 when candy_y > 910\ntoggle_gravity when candy_y > 1000", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:02:46.931Z", + "mirroredFrom": "08-05.json" +} diff --git a/cutrope/source/rope-121.json b/cutrope/source/rope-121.json new file mode 100644 index 0000000000000000000000000000000000000000..97747ebcbfd096eb328d4f1384d07605152b6529 --- /dev/null +++ b/cutrope/source/rope-121.json @@ -0,0 +1,159 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 303, + "y": 214 + }, + { + "name": 100, + "x": 383, + "y": 175, + "length": 65, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 215, + "y": 175, + "length": 65, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 395, + "y": 386 + }, + { + "name": 3, + "x": 431, + "y": 81, + "timeout": -1 + }, + { + "name": 3, + "x": 302, + "y": 85, + "timeout": -1 + }, + { + "name": 53, + "x": 150, + "y": 392 + }, + { + "name": 4, + "x": 215, + "y": 331, + "locale": "en", + "text": "Toggle the gravity with this button", + "width": 140 + }, + { + "name": 8, + "x": 222, + "y": 429, + "locale": "en", + "angle": 35, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 3, + "x": 302, + "y": 273, + "timeout": -1 + } + ], + "ru": [ + { + "name": 8, + "x": 219, + "y": 417, + "locale": "ru", + "angle": 40, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 229, + "y": 328, + "locale": "ru", + "text": "Переключайте гравитацию с помощью этой кнопки", + "width": 140 + } + ], + "fr": [ + { + "name": 4, + "x": 180, + "y": 338, + "locale": "fr", + "text": "Active et désactive la gravité avec ce bouton", + "width": 200 + }, + { + "name": 8, + "x": 211, + "y": 407, + "locale": "fr", + "angle": 35, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 8, + "x": 207, + "y": 425, + "locale": "de", + "angle": 55, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 208, + "y": 342, + "locale": "de", + "text": "Hier kannst Du die Schwerkraft ein oder aus schalten", + "width": 140 + } + ], + "levelId": "08-01", + "levelEditedAt": "2026-05-05T17:53:03.499Z", + "textCommandSolution": "toggle_gravity \ncut_rope 1 when candy_still for 0.3 \ntoggle_gravity when candy_near 1200,190,60\ncut_rope 0 when candy_near 1050,650,60 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:53:13.567Z" +} diff --git a/cutrope/source/rope-122.json b/cutrope/source/rope-122.json new file mode 100644 index 0000000000000000000000000000000000000000..f233b2d887f5a017ee9749ce6079ff53b8ce9e51 --- /dev/null +++ b/cutrope/source/rope-122.json @@ -0,0 +1,125 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 275, + "y": 76 + }, + { + "name": 55, + "x": 48, + "y": 329, + "angle": 270 + }, + { + "name": 56, + "x": 50, + "y": 102, + "group": 1, + "angle": 90 + }, + { + "name": 56, + "x": 159, + "y": 399, + "group": 0, + "angle": 270 + }, + { + "name": 54, + "x": 164, + "y": 160 + }, + { + "name": 56, + "x": 273, + "y": 398, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 167, + "y": 105, + "group": 1, + "angle": 90 + }, + { + "name": 3, + "x": 280, + "y": 159, + "timeout": -1 + }, + { + "name": 3, + "x": 162, + "y": 161, + "timeout": -1 + }, + { + "name": 3, + "x": 49, + "y": 119, + "timeout": -1 + }, + { + "name": 100, + "x": 80, + "y": 144, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 50, + "y": 182 + }, + { + "name": 54, + "x": 278, + "y": 158 + }, + { + "name": 100, + "x": 19, + "y": 143, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "00-22", + "levelEditedAt": "2026-05-05T10:43:19.434Z", + "textCommandSolution": "cut_rope 0,1 \nactivate_pump 0 until candy_y < 300\npop_bubble 0 when candy_y < 300", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:45:53.636Z", + "mirroredFrom": "00-22.json" +} diff --git a/cutrope/source/rope-123.json b/cutrope/source/rope-123.json new file mode 100644 index 0000000000000000000000000000000000000000..6fa15865c91b605495f169453e78a51d469a8f98 --- /dev/null +++ b/cutrope/source/rope-123.json @@ -0,0 +1,115 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 56, + "x": 35, + "y": 340, + "group": 0, + "angle": 290 + }, + { + "name": 56, + "x": 101, + "y": 373, + "group": 1, + "angle": 290 + }, + { + "name": 56, + "x": 220, + "y": 373, + "group": 0, + "angle": 250 + }, + { + "name": 56, + "x": 290, + "y": 340, + "group": 1, + "angle": 250 + }, + { + "name": 52, + "x": 162, + "y": 164 + }, + { + "name": 100, + "x": 106, + "y": 47, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 228, + "y": 50, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 2, + "x": 86, + "y": 103 + }, + { + "name": 3, + "x": 165, + "y": 329, + "timeout": 15 + }, + { + "name": 3, + "x": 138, + "y": 293, + "timeout": -1 + }, + { + "name": 3, + "x": 261, + "y": 300, + "timeout": -1 + }, + { + "name": 54, + "x": 161, + "y": 332 + } + ], + "levelId": "09-07", + "levelEditedAt": "2026-05-05T18:27:32.492Z", + "textCommandSolution": "cut_rope 1 when candy_still for 0.3 and candy_near 970,380,60\ncut_rope 0 when candy_x < 930", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:27:46.690Z" +} diff --git a/cutrope/source/rope-124.json b/cutrope/source/rope-124.json new file mode 100644 index 0000000000000000000000000000000000000000..6ce156cb16378f6f7525aaaf6a01f56c5b158a34 --- /dev/null +++ b/cutrope/source/rope-124.json @@ -0,0 +1,163 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 251, + "y": 203 + }, + { + "name": 100, + "x": 268, + "y": 70, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 158, + "y": 69, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 56, + "y": 419 + }, + { + "name": 3, + "x": 266, + "y": 250, + "timeout": -1 + }, + { + "name": 3, + "x": 267, + "y": 369, + "timeout": -1 + }, + { + "name": 3, + "x": 40, + "y": 250, + "timeout": -1 + }, + { + "name": 100, + "x": 45, + "y": 69, + "length": 320, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 187, + "y": 285, + "locale": "en", + "text": "Collect as many stars as you can", + "width": 150 + }, + { + "name": 13, + "x": 207, + "y": 321, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 94, + "y": 315, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 103, + "y": 278, + "locale": "ru", + "text": "Старайтесь собирать звезды леденцом", + "width": 210 + } + ], + "fr": [ + { + "name": 4, + "x": 137, + "y": 285, + "locale": "fr", + "text": "Collecte autant d'étoiles que tu le peux", + "width": 200 + }, + { + "name": 13, + "x": 113, + "y": 321, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 126, + "y": 285, + "locale": "de", + "text": "Sammle möglichst viele Sternchen", + "width": 170 + }, + { + "name": 13, + "x": 106, + "y": 321, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 1 when candy_near 1220,580,50 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:51:22.171Z", + "mirroredFrom": "01-02.json" +} diff --git a/cutrope/source/rope-125.json b/cutrope/source/rope-125.json new file mode 100644 index 0000000000000000000000000000000000000000..acabda20ca0c7a02334563c7c5705e3cbe3dc0c9 --- /dev/null +++ b/cutrope/source/rope-125.json @@ -0,0 +1,103 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 159, + "y": 429 + }, + { + "name": 56, + "x": 60, + "y": 343, + "group": 0, + "angle": 290 + }, + { + "name": 56, + "x": 262, + "y": 168, + "group": 0, + "angle": 270 + }, + { + "name": 3, + "x": 259, + "y": 50, + "timeout": -1 + }, + { + "name": 52, + "x": 91, + "y": 200 + }, + { + "name": 3, + "x": 160, + "y": 122, + "timeout": -1 + }, + { + "name": 54, + "x": 250, + "y": 288 + }, + { + "name": 3, + "x": 250, + "y": 289, + "timeout": -1 + }, + { + "name": 100, + "x": 160, + "y": 81, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 158, + "y": 289, + "length": 100, + "wheel": false, + "gun": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 160, + "y": 367 + } + ], + "textCommandSolution": "cut_rope 0 when candy_x > 1090\npop_bubble 0 when candy_y < 100\ncut_rope 1 when candy_still for 0.3\npop_bubble 1 when candy_near 970,250,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:36:45.808Z", + "mirroredFrom": "00-21.json" +} diff --git a/cutrope/source/rope-126.json b/cutrope/source/rope-126.json new file mode 100644 index 0000000000000000000000000000000000000000..fcbcf902d902bea293858b199fa0b088b7d16c64 --- /dev/null +++ b/cutrope/source/rope-126.json @@ -0,0 +1,109 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 112, + "y": 352 + }, + { + "name": 100, + "x": 50, + "y": 275, + "length": 70, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 177, + "y": 278, + "length": 70, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 271, + "y": 90 + }, + { + "name": 56, + "x": 270, + "y": 384, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 49, + "y": 97, + "group": 0, + "angle": 90 + }, + { + "name": 55, + "x": 112, + "y": 418, + "angle": 270 + }, + { + "name": 3, + "x": 115, + "y": 230, + "timeout": -1 + }, + { + "name": 55, + "x": 113, + "y": 305, + "angle": 270 + }, + { + "name": 3, + "x": 48, + "y": 188, + "timeout": -1 + }, + { + "name": 3, + "x": 185, + "y": 359, + "timeout": -1 + }, + { + "name": 54, + "x": 47, + "y": 188 + } + ], + "levelId": "04-06", + "levelEditedAt": "2026-05-05T15:30:05.369Z", + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 850,810,60\nactivate_pump 1 when candy_y < 660\ncut_rope 2\ncut_rope 0 when candy_y > 800\ncut_rope 1 when candy_x > 1110", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:30:18.013Z" +} diff --git a/cutrope/source/rope-127.json b/cutrope/source/rope-127.json new file mode 100644 index 0000000000000000000000000000000000000000..d6be956eebc63e3174981e2ccfa9435aec9b17f4 --- /dev/null +++ b/cutrope/source/rope-127.json @@ -0,0 +1,160 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 337, + "y": 214 + }, + { + "name": 100, + "x": 257, + "y": 175, + "length": 65, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 425, + "y": 175, + "length": 65, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 245, + "y": 386 + }, + { + "name": 3, + "x": 209, + "y": 81, + "timeout": -1 + }, + { + "name": 3, + "x": 338, + "y": 85, + "timeout": -1 + }, + { + "name": 53, + "x": 490, + "y": 392 + }, + { + "name": 4, + "x": 425, + "y": 331, + "locale": "en", + "text": "Toggle the gravity with this button", + "width": 140 + }, + { + "name": 8, + "x": 418, + "y": 429, + "locale": "en", + "angle": 145, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 3, + "x": 338, + "y": 273, + "timeout": -1 + } + ], + "ru": [ + { + "name": 8, + "x": 219, + "y": 417, + "locale": "ru", + "angle": 40, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 229, + "y": 328, + "locale": "ru", + "text": "Переключайте гравитацию с помощью этой кнопки", + "width": 140 + } + ], + "fr": [ + { + "name": 4, + "x": 180, + "y": 338, + "locale": "fr", + "text": "Active et désactive la gravité avec ce bouton", + "width": 200 + }, + { + "name": 8, + "x": 211, + "y": 407, + "locale": "fr", + "angle": 35, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 8, + "x": 207, + "y": 425, + "locale": "de", + "angle": 55, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 208, + "y": 342, + "locale": "de", + "text": "Hier kannst Du die Schwerkraft ein oder aus schalten", + "width": 140 + } + ], + "levelId": "08-01", + "levelEditedAt": "2026-05-05T17:53:03.499Z", + "textCommandSolution": "toggle_gravity \ncut_rope 1 when candy_still for 0.3 \ntoggle_gravity when candy_near 720,190,60\ncut_rope 0 when candy_near 870,650,60 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:53:13.567Z", + "mirroredFrom": "08-01.json" +} diff --git a/cutrope/source/rope-128.json b/cutrope/source/rope-128.json new file mode 100644 index 0000000000000000000000000000000000000000..d66b90e08981d23498bec9dd96fa2af79ebed99a --- /dev/null +++ b/cutrope/source/rope-128.json @@ -0,0 +1,146 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 100, + "x": 259, + "y": 64, + "length": 200, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 158, + "y": 64, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 57, + "y": 63, + "length": 200, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 55, + "y": 384, + "length": 200, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 160, + "y": 385, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 261, + "y": 385, + "length": 200, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 51, + "x": 156, + "y": 302 + }, + { + "name": 50, + "x": 154, + "y": 157 + }, + { + "name": 2, + "x": 161, + "y": 444 + }, + { + "name": 3, + "x": 192, + "y": 335, + "timeout": -1 + }, + { + "name": 3, + "x": 192, + "y": 128, + "timeout": -1 + }, + { + "name": 3, + "x": 163, + "y": 228, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 4 when right_candy_still for 0.3 \ncut_rope 3 when candy_still for 0.3 and candy_near 960,330,60\ncut_rope 1 when candy_still for 0.3 and candy_near 1000,310,60\ncut_rope 2 when candy_still for 0.3 and candy_near 950,620,60\ncut_rope 5 when candy_x > 1370\ncut_rope 0 when candy_near 1120,700,50 times 3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:46:01.088Z", + "mirroredFrom": "09-17.json" +} diff --git a/cutrope/source/rope-129.json b/cutrope/source/rope-129.json new file mode 100644 index 0000000000000000000000000000000000000000..7a6fb2580c60cf3839ec9c950759cdd95b4758ca --- /dev/null +++ b/cutrope/source/rope-129.json @@ -0,0 +1,108 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 2, + "x": 162, + "y": 424 + }, + { + "name": 50, + "x": 117, + "y": 204 + }, + { + "name": 51, + "x": 239, + "y": 207 + }, + { + "name": 3, + "x": 124, + "y": 292, + "timeout": -1 + }, + { + "name": 3, + "x": 254, + "y": 298, + "timeout": -1 + }, + { + "name": 3, + "x": 180, + "y": 360, + "timeout": -1 + }, + { + "name": 100, + "x": 237, + "y": 72, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 110, + "y": 78, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 171, + "y": 140, + "length": 136, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 168, + "y": 143, + "length": 154, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 0,1 \ncut_rope 2 when candy_still for 0.3 and candy_near 1000,700,60\ncut_rope 3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "generatorTemplate": "split_drop", + "textCommandSolutionUpdatedAt": "2026-05-05T19:04:09.649Z" +} diff --git a/cutrope/source/rope-130.json b/cutrope/source/rope-130.json new file mode 100644 index 0000000000000000000000000000000000000000..ec04aeffd009d04740c161da5dbb48d48b66b5cd --- /dev/null +++ b/cutrope/source/rope-130.json @@ -0,0 +1,109 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 160, + "y": 218 + }, + { + "name": 2, + "x": 232, + "y": 382 + }, + { + "name": 53, + "x": 61, + "y": 402 + }, + { + "name": 100, + "x": 281, + "y": 206, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 44, + "y": 204, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 163, + "y": 87, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 162, + "y": 322, + "length": 245, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 157, + "y": 179, + "timeout": -1 + }, + { + "name": 3, + "x": 320, + "y": 330, + "timeout": -1 + }, + { + "name": 3, + "x": 278, + "y": 95, + "timeout": -1 + } + ], + "levelId": "08-12", + "levelEditedAt": "2026-05-05T18:13:11.996Z", + "textCommandSolution": "cut_rope 1,2 \ntoggle_gravity when candy_x < 980\ncut_rope 3 when candy_x < 1030\ntoggle_gravity when candy_x > 1070\ncut_rope 0 when candy_near 1300,760,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:13:17.137Z" +} diff --git a/cutrope/source/rope-131.json b/cutrope/source/rope-131.json new file mode 100644 index 0000000000000000000000000000000000000000..713a95fedcad8948514ffecb81fd8674e90dd652 --- /dev/null +++ b/cutrope/source/rope-131.json @@ -0,0 +1,191 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 257, + "y": 296 + }, + { + "name": 52, + "x": 158, + "y": 292 + }, + { + "name": 100, + "x": 291, + "y": 397, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 26, + "y": 192, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 291, + "y": 192, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 26, + "y": 399, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 159, + "y": 159, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 40, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 359, + "timeout": -1 + }, + { + "name": 56, + "x": 155, + "y": 401, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 72, + "y": 292, + "group": 0, + "angle": 0 + }, + { + "name": 13, + "x": 247, + "y": 97, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 238, + "y": 63, + "locale": "en", + "text": "You can cut several ropes at once", + "width": 200 + } + ], + "ru": [ + { + "name": 13, + "x": 40, + "y": 96, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 60, + "y": 50, + "locale": "ru", + "text": "Вы можете перерезать несколько веревок одновременно", + "width": 240 + } + ], + "fr": [ + { + "name": 13, + "x": 39, + "y": 78, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 58, + "y": 46, + "locale": "fr", + "text": "Vous pouvez couper plusieurs cordes à la fois", + "width": 250 + } + ], + "de": [ + { + "name": 13, + "x": 46, + "y": 83, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 57, + "y": 46, + "locale": "de", + "text": "Du kannst mehrere Seile auf einmal durchschneiden", + "width": 250 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T05:33:53.017Z", + "mirroredFrom": "00-08.json" +} diff --git a/cutrope/source/rope-132.json b/cutrope/source/rope-132.json new file mode 100644 index 0000000000000000000000000000000000000000..3585e0a9aa3100ffe6a95e2c60e775504331cc46 --- /dev/null +++ b/cutrope/source/rope-132.json @@ -0,0 +1,100 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 56, + "x": 334, + "y": 417, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 171, + "y": 189, + "group": 1, + "angle": 350 + }, + { + "name": 2, + "x": 424, + "y": 179 + }, + { + "name": 3, + "x": 258, + "y": 179, + "timeout": -1 + }, + { + "name": 3, + "x": 338, + "y": 336, + "timeout": -1 + }, + { + "name": 3, + "x": 215, + "y": 180, + "timeout": -1 + }, + { + "name": 52, + "x": 345, + "y": 90 + }, + { + "name": 100, + "x": 341, + "y": 213, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 343, + "y": 88 + }, + { + "name": 54, + "x": 338, + "y": 335 + }, + { + "name": 54, + "x": 341, + "y": 254 + }, + { + "name": 54, + "x": 340, + "y": 164 + } + ], + "textCommandSolution": "pop_bubble 0 when candy_still for 0.3 and candy_near 1010,150,60\npop_bubble 3 when candy_y > 310\ncut_rope 0 when candy_y > 370\npop_bubble 2 when candy_y > 570\npop_bubble 1 when candy_y < 180", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:53:54.627Z", + "mirroredFrom": "09-24.json" +} diff --git a/cutrope/source/rope-133.json b/cutrope/source/rope-133.json new file mode 100644 index 0000000000000000000000000000000000000000..afe786644ccb46be6fe4967da58e505453789899 --- /dev/null +++ b/cutrope/source/rope-133.json @@ -0,0 +1,111 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 2, + "x": 272, + "y": 369 + }, + { + "name": 3, + "x": 41, + "y": 400, + "timeout": -1 + }, + { + "name": 3, + "x": 194, + "y": 397, + "timeout": -1 + }, + { + "name": 3, + "x": 118, + "y": 333, + "timeout": -1 + }, + { + "name": 82, + "x": 164, + "y": 440, + "angle": 180, + "size": 2 + }, + { + "name": 82, + "x": 266, + "y": 440, + "angle": 180, + "size": 2 + }, + { + "name": 81, + "x": 37, + "y": 435, + "angle": 188, + "size": 1 + }, + { + "name": 100, + "x": 189, + "y": 35, + "length": 70, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 51, + "x": 188, + "y": 137 + }, + { + "name": 100, + "x": 44, + "y": 36, + "length": 70, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 50, + "x": 42, + "y": 139 + } + ], + "textCommandSolution": "cut_rope 0,1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:32:17.053Z", + "mirroredFrom": "09-10.json" +} diff --git a/cutrope/source/rope-134.json b/cutrope/source/rope-134.json new file mode 100644 index 0000000000000000000000000000000000000000..046a93136c0693748c64e5e79c21684ba3a4e036 --- /dev/null +++ b/cutrope/source/rope-134.json @@ -0,0 +1,97 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 338, + "y": 324 + }, + { + "name": 50, + "x": 403, + "y": 210 + }, + { + "name": 2, + "x": 319, + "y": 397 + }, + { + "name": 100, + "x": 405, + "y": 107, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 344, + "y": 227, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 401, + "y": 390 + }, + { + "name": 55, + "x": 232, + "y": 323, + "angle": 0 + }, + { + "name": 3, + "x": 333, + "y": 153, + "timeout": -1 + }, + { + "name": 3, + "x": 323, + "y": 110, + "timeout": -1 + }, + { + "name": 3, + "x": 400, + "y": 391, + "timeout": -1 + } + ], + "levelId": "05-23", + "levelEditedAt": "2026-05-05T16:49:48.000Z", + "textCommandSolution": "cut_rope 0 \nactivate_pump 0 when left_candy_near 1140,1000,50\ncut_rope 0 when candy_still for 0.3\npop_bubble 0 when candy_still for 0.3 and candy_near 1010,270,60\ncut_rope 1 when candy_y > 290", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:50:45.570Z", + "mirroredFrom": "05-23.json" +} diff --git a/cutrope/source/rope-135.json b/cutrope/source/rope-135.json new file mode 100644 index 0000000000000000000000000000000000000000..a2dbda0424239c6be4b23f0874203cf944f53779 --- /dev/null +++ b/cutrope/source/rope-135.json @@ -0,0 +1,206 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 253, + "y": 420 + }, + { + "name": 52, + "x": 159, + "y": 153 + }, + { + "name": 3, + "x": 158, + "y": 357, + "timeout": -1 + }, + { + "name": 3, + "x": 82, + "y": 358, + "timeout": -1 + }, + { + "name": 3, + "x": 238, + "y": 360, + "timeout": -1 + }, + { + "name": 100, + "x": 79, + "y": 220, + "length": 75, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 246, + "y": 99, + "length": 75, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 74, + "y": 101, + "length": 75, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 243, + "y": 225, + "length": 75, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 160, + "y": 48, + "length": 75, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 160, + "y": 270, + "length": 75, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 4, + "x": 85, + "y": 274, + "locale": "en", + "text": "Collect as many stars as you can", + "width": 200 + }, + { + "name": 13, + "x": 65, + "y": 307, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 60, + "y": 315, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 73, + "y": 278, + "locale": "ru", + "text": "Старайтесь собирать звезды леденцом", + "width": 210 + } + ], + "fr": [ + { + "name": 4, + "x": 97, + "y": 280, + "locale": "fr", + "text": "Recueillez le plus d'étoiles possible", + "width": 150 + }, + { + "name": 13, + "x": 83, + "y": 316, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 13, + "x": 66, + "y": 311, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 86, + "y": 275, + "locale": "de", + "text": "Sammle möglichst viele Sternchen", + "width": 170 + } + ], + "levelId": "00-02", + "levelEditedAt": "2026-05-05T04:09:02.662Z", + "textCommandSolution": "cut_rope 1\ncut_rope 2\ncut_rope 4\ncut_rope 3 \ncut_rope 0 when candy_near 780,780,50\ncut_rope 5 when candy_near 1100,800,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T04:09:11.578Z" +} diff --git a/cutrope/source/rope-136.json b/cutrope/source/rope-136.json new file mode 100644 index 0000000000000000000000000000000000000000..9271d0aea6fbaf050ba6b15da961ff24aa77de1f --- /dev/null +++ b/cutrope/source/rope-136.json @@ -0,0 +1,113 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 214, + "y": 25, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 382, + "y": 26, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 302, + "y": 116 + }, + { + "name": 82, + "x": 299, + "y": 223, + "angle": 210, + "size": 2 + }, + { + "name": 56, + "x": 199, + "y": 141, + "group": 0, + "angle": 0 + }, + { + "name": 56, + "x": 373, + "y": 361, + "group": 0, + "angle": 180 + }, + { + "name": 2, + "x": 414, + "y": 178 + }, + { + "name": 3, + "x": 297, + "y": 362, + "timeout": -1 + }, + { + "name": 3, + "x": 321, + "y": 185, + "timeout": -1 + }, + { + "name": 55, + "x": 207, + "y": 354, + "angle": 0 + }, + { + "name": 54, + "x": 295, + "y": 417 + }, + { + "name": 3, + "x": 300, + "y": 71, + "timeout": -1 + } + ], + "levelId": "06-16", + "levelEditedAt": "2026-05-05T17:30:39.650Z", + "textCommandSolution": "cut_rope 1 \nactivate_pump 0 times 2 when candy_near 820,800,50\npop_bubble 0 when candy_y < 130", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:30:47.382Z", + "mirroredFrom": "06-16.json" +} diff --git a/cutrope/source/rope-137.json b/cutrope/source/rope-137.json new file mode 100644 index 0000000000000000000000000000000000000000..57e5660bd30131bb6c1f653f535d14bd5ad1edf7 --- /dev/null +++ b/cutrope/source/rope-137.json @@ -0,0 +1,159 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 81, + "x": 596, + "y": 315, + "angle": -5, + "size": 1 + }, + { + "name": 81, + "x": 514, + "y": 318, + "angle": -1, + "size": 1 + }, + { + "name": 81, + "x": 432, + "y": 319, + "angle": -1, + "size": 1 + }, + { + "name": 81, + "x": 352, + "y": 320, + "angle": -1, + "size": 1 + }, + { + "name": 81, + "x": 277, + "y": 321, + "angle": -1, + "size": 1 + }, + { + "name": 81, + "x": 199, + "y": 322, + "angle": -1, + "size": 1 + }, + { + "name": 2, + "x": 57, + "y": 289 + }, + { + "name": 52, + "x": 570, + "y": 200 + }, + { + "name": 100, + "x": 574, + "y": 77, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 3, + "x": 196, + "y": 261, + "timeout": 9 + }, + { + "name": 3, + "x": 353, + "y": 255, + "timeout": 7 + }, + { + "name": 3, + "x": 500, + "y": 257, + "timeout": -1 + }, + { + "name": 81, + "x": 125, + "y": 323, + "angle": -1, + "size": 1 + }, + { + "name": 100, + "x": 473, + "y": 344, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 316, + "y": 342, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 162, + "y": 342, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1540,480,60\ncut_rope 1 when candy_x < 1260\ncut_rope 2 when candy_x < 890", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:29:01.485Z" +} diff --git a/cutrope/source/rope-138.json b/cutrope/source/rope-138.json new file mode 100644 index 0000000000000000000000000000000000000000..d01ab591d81113f959325fc3f4dc6de10accc495 --- /dev/null +++ b/cutrope/source/rope-138.json @@ -0,0 +1,163 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 224, + "y": 199 + }, + { + "name": 100, + "x": 223, + "y": 113, + "length": 40, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 2, + "x": 518, + "y": 432 + }, + { + "name": 3, + "x": 483, + "y": 332, + "timeout": 17 + }, + { + "name": 3, + "x": 222, + "y": 64, + "timeout": 4 + }, + { + "name": 3, + "x": 388, + "y": 165, + "timeout": 9 + }, + { + "name": 54, + "x": 222, + "y": 348 + }, + { + "name": 55, + "x": 225, + "y": 442, + "angle": -90 + }, + { + "name": 100, + "x": 304, + "y": 66, + "length": 100, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 4, + "x": 176, + "y": 215, + "locale": "en", + "text": "Some stars require fast actions to be collected", + "width": 250 + }, + { + "name": 13, + "x": 167, + "y": 252, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 65, + "y": 259, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 80, + "y": 213, + "locale": "ru", + "text": "Некоторые звезды пропадают если вы не достаточно быстры", + "width": 200 + } + ], + "fr": [ + { + "name": 4, + "x": 46, + "y": 213, + "locale": "fr", + "text": "Il est nécessaire d'agir rapidement pour collecter certaines étoiles", + "width": 240 + }, + { + "name": 13, + "x": 40, + "y": 256, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 60, + "y": 207, + "locale": "de", + "text": "Bei einigen Sternchen musst Du beim Einsammeln schnell sein", + "width": 250 + }, + { + "name": 13, + "x": 43, + "y": 251, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "levelId": "02-17", + "levelEditedAt": "2026-05-05T14:18:10.989Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 740,420,60\npop_bubble 0 when candy_y < 170\ncut_rope 1 when candy_x > 1160", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:18:22.894Z" +} diff --git a/cutrope/source/rope-139.json b/cutrope/source/rope-139.json new file mode 100644 index 0000000000000000000000000000000000000000..00786487cb5e49230a911ec78cd91dfee46a8dde --- /dev/null +++ b/cutrope/source/rope-139.json @@ -0,0 +1,149 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 390, + "y": 125 + }, + { + "name": 2, + "x": 322, + "y": 431 + }, + { + "name": 100, + "x": 391, + "y": 46, + "length": 40, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 323, + "y": 225, + "length": 70, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 429, + "y": 300, + "locale": "en", + "text": "Cut the rope before the spider reaches the candy", + "width": 240 + }, + { + "name": 13, + "x": 446, + "y": 335, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 3, + "x": 372, + "y": 223, + "timeout": -1 + }, + { + "name": 3, + "x": 230, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 323, + "y": 377, + "timeout": -1 + } + ], + "ru": [ + { + "name": 4, + "x": 48, + "y": 271, + "locale": "ru", + "text": "Перережьте веревку прежде чем паучок доберется до леденца", + "width": 200 + }, + { + "name": 13, + "x": 35, + "y": 317, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 56, + "y": 299, + "locale": "fr", + "text": "Coupe la corde avant que l'araignée n'atteigne le bonbon", + "width": 240 + }, + { + "name": 13, + "x": 39, + "y": 334, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 79, + "y": 287, + "locale": "de", + "text": "Schneide das Seil durch, bevor die Spinne am Bonbon ist", + "width": 170 + }, + { + "name": 13, + "x": 150, + "y": 276, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 \ncut_rope 1 when candy_near 850,780,60 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:52:31.316Z", + "mirroredFrom": "02-09.json" +} diff --git a/cutrope/source/rope-140.json b/cutrope/source/rope-140.json new file mode 100644 index 0000000000000000000000000000000000000000..d376e34fd69142c1c80ef32766b04ed783c79c32 --- /dev/null +++ b/cutrope/source/rope-140.json @@ -0,0 +1,81 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 138, + "y": 108 + }, + { + "name": 52, + "x": 136, + "y": 290 + }, + { + "name": 3, + "x": 129, + "y": 386, + "timeout": -1 + }, + { + "name": 3, + "x": 130, + "y": 201, + "timeout": -1 + }, + { + "name": 3, + "x": 138, + "y": 143, + "timeout": -1 + }, + { + "name": 100, + "x": 183, + "y": 205, + "length": 115, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 89, + "y": 212, + "length": 104, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 53, + "x": 268, + "y": 268 + } + ], + "textCommandSolution": "cut_rope 0,1\ntoggle_gravity when candy_y > 850", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "generatorTemplate": "gravity_lift_2", + "textCommandSolutionUpdatedAt": "2026-05-05T18:59:32.809Z", + "mirroredFrom": "18-01.json" +} diff --git a/cutrope/source/rope-141.json b/cutrope/source/rope-141.json new file mode 100644 index 0000000000000000000000000000000000000000..04d747ea53c7ae4219626f852c497864cc070fa9 --- /dev/null +++ b/cutrope/source/rope-141.json @@ -0,0 +1,102 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 209, + "y": 198 + }, + { + "name": 100, + "x": 99, + "y": 198, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 304, + "y": 197, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 49, + "y": 548 + }, + { + "name": 50, + "x": 54, + "y": 547 + }, + { + "name": 2, + "x": 104, + "y": 42 + }, + { + "name": 3, + "x": 103, + "y": 138, + "timeout": -1 + }, + { + "name": 3, + "x": 79, + "y": 162, + "timeout": -1 + }, + { + "name": 3, + "x": 53, + "y": 188, + "timeout": -1 + }, + { + "name": 100, + "x": 101, + "y": 365, + "length": 60, + "wheel": false, + "gun": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 1 when candy_still for 0.3 and candy_near 0,0,60\ncut_rope 2 when candy_still for 0.3 and candy_near 820,590,60\ncut_rope 0 when candy_still for 0.3 and candy_near 820,300,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:55:39.203Z" +} diff --git a/cutrope/source/rope-142.json b/cutrope/source/rope-142.json new file mode 100644 index 0000000000000000000000000000000000000000..4db61a5a58864770f9ea1365f9ec6802c67f9d53 --- /dev/null +++ b/cutrope/source/rope-142.json @@ -0,0 +1,99 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 56, + "x": 306, + "y": 417, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 469, + "y": 189, + "group": 1, + "angle": 190 + }, + { + "name": 2, + "x": 216, + "y": 179 + }, + { + "name": 3, + "x": 382, + "y": 179, + "timeout": -1 + }, + { + "name": 3, + "x": 302, + "y": 336, + "timeout": -1 + }, + { + "name": 3, + "x": 425, + "y": 180, + "timeout": -1 + }, + { + "name": 52, + "x": 295, + "y": 90 + }, + { + "name": 100, + "x": 299, + "y": 213, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 297, + "y": 88 + }, + { + "name": 54, + "x": 302, + "y": 335 + }, + { + "name": 54, + "x": 299, + "y": 254 + }, + { + "name": 54, + "x": 300, + "y": 164 + } + ], + "textCommandSolution": "pop_bubble 0 when candy_still for 0.3 and candy_near 910,150,60\npop_bubble 3 when candy_y > 310\ncut_rope 0 when candy_y > 370\npop_bubble 2 when candy_y > 570\npop_bubble 1 when candy_y < 180", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:53:54.627Z" +} diff --git a/cutrope/source/rope-143.json b/cutrope/source/rope-143.json new file mode 100644 index 0000000000000000000000000000000000000000..be42ce85f6f2662c367ff3cef25c7587f12ebf19 --- /dev/null +++ b/cutrope/source/rope-143.json @@ -0,0 +1,99 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 2, + "x": 439, + "y": 373 + }, + { + "name": 52, + "x": 108, + "y": 150 + }, + { + "name": 100, + "x": 371, + "y": 94, + "length": 260, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 107, + "y": 71, + "length": 50, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 54, + "x": 370, + "y": 390 + }, + { + "name": 54, + "x": 210, + "y": 343 + }, + { + "name": 54, + "x": 109, + "y": 209 + }, + { + "name": 3, + "x": 108, + "y": 210, + "timeout": -1 + }, + { + "name": 3, + "x": 209, + "y": 343, + "timeout": -1 + }, + { + "name": 3, + "x": 371, + "y": 390, + "timeout": -1 + }, + { + "name": 54, + "x": 149, + "y": 284 + }, + { + "name": 54, + "x": 288, + "y": 381 + } + ], + "textCommandSolution": "cut_rope 1 when candy_x < 500\npop_bubble 2 when candy_x < 480\npop_bubble 3 when candy_y > 610\npop_bubble 1 when candy_y > 740\npop_bubble 4 when candy_y > 830\npop_bubble 0 when candy_x > 1060", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:50:48.146Z", + "mirroredFrom": "07-16.json" +} diff --git a/cutrope/source/rope-144.json b/cutrope/source/rope-144.json new file mode 100644 index 0000000000000000000000000000000000000000..f261fac911ae264d02beb7bee43bcd99bbb60186 --- /dev/null +++ b/cutrope/source/rope-144.json @@ -0,0 +1,82 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "uk": false + } + ], + "objects": [ + { + "name": 2, + "x": 153, + "y": 341 + }, + { + "name": 3, + "x": 159, + "y": 152, + "timeout": -1 + }, + { + "name": 3, + "x": 157, + "y": 195, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 97, + "timeout": -1 + }, + { + "name": 53, + "x": 52, + "y": 413 + }, + { + "name": 100, + "x": 22, + "y": 258, + "length": 75, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 286, + "y": 255, + "length": 75, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 52, + "x": 159, + "y": 256 + } + ], + "levelId": "08-21", + "levelEditedAt": "2026-05-05T18:16:58.220Z", + "textCommandSolution": "cut_rope 0,1\ntoggle_gravity 0\ntoggle_gravity when candy_y < 300", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:17:50.592Z", + "mirroredFrom": "08-21.json" +} diff --git a/cutrope/source/rope-145.json b/cutrope/source/rope-145.json new file mode 100644 index 0000000000000000000000000000000000000000..c774a960c3e98d01cd454397ec6777e17706ac71 --- /dev/null +++ b/cutrope/source/rope-145.json @@ -0,0 +1,179 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 243, + "y": 313 + }, + { + "name": 2, + "x": 230, + "y": 436 + }, + { + "name": 3, + "x": 172, + "y": 139, + "timeout": -1 + }, + { + "name": 3, + "x": 63, + "y": 351, + "timeout": -1 + }, + { + "name": 3, + "x": 198, + "y": 346, + "timeout": -1 + }, + { + "name": 100, + "x": 196, + "y": 191, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 73, + "y": 92, + "length": 150, + "wheel": false, + "gun": false, + "radius": 55, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 132, + "y": 289, + "length": 100, + "wheel": false, + "gun": false, + "radius": 65, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 271, + "y": 381, + "length": 25, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 300, + "y": 98, + "locale": "en", + "text": "Stretched ropes turn red", + "width": 100 + }, + { + "name": 13, + "x": 253, + "y": 85, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 68, + "y": 64, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 21, + "y": 77, + "locale": "ru", + "text": "Натянутые веревки становятся красными", + "width": 100 + } + ], + "fr": [ + { + "name": 13, + "x": 67, + "y": 61, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 20, + "y": 74, + "locale": "fr", + "text": "Les cordes étirées deviennent rouges", + "width": 100 + } + ], + "de": [ + { + "name": 4, + "x": 57, + "y": 33, + "locale": "de", + "text": "Gespannte Seile werden rot", + "width": 140 + }, + { + "name": 13, + "x": 39, + "y": 68, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "levelId": "01-12", + "levelEditedAt": "2026-05-05T13:10:17.063Z", + "textCommandSolution": "cut_rope 3 \ncut_rope 0,1 when candy_still for 0.3 \ncut_rope 2 when candy_near 1070,800,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:10:29.123Z", + "mirroredFrom": "01-12.json" +} diff --git a/cutrope/source/rope-146.json b/cutrope/source/rope-146.json new file mode 100644 index 0000000000000000000000000000000000000000..eae459d2b3326af8c1e4794233e104ea1597a2fc --- /dev/null +++ b/cutrope/source/rope-146.json @@ -0,0 +1,124 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 2, + "x": 22, + "y": 409 + }, + { + "name": 52, + "x": 160, + "y": 149 + }, + { + "name": 3, + "x": 62, + "y": 356, + "timeout": -1 + }, + { + "name": 3, + "x": 254, + "y": 358, + "timeout": -1 + }, + { + "name": 3, + "x": 53, + "y": 196, + "timeout": -1 + }, + { + "name": 100, + "x": 156, + "y": 42, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 54, + "y": 84, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 252, + "y": 85, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 252, + "y": 232, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 156, + "y": 287, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 51, + "y": 229, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + } + ], + "levelId": "01-07", + "levelEditedAt": "2026-05-05T11:29:53.852Z", + "textCommandSolution": "cut_rope 0,2,3 \ncut_rope 1 when candy_near 760,520,40\ncut_rope 5 when candy_y > 820\ncut_rope 4 when candy_near 820,900,40 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T11:30:02.639Z", + "mirroredFrom": "01-07.json" +} diff --git a/cutrope/source/rope-147.json b/cutrope/source/rope-147.json new file mode 100644 index 0000000000000000000000000000000000000000..8a1e8bdf0c7dc792f9bfeb96578ecb7c69fc3c34 --- /dev/null +++ b/cutrope/source/rope-147.json @@ -0,0 +1,102 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 161, + "y": 429 + }, + { + "name": 56, + "x": 260, + "y": 343, + "group": 0, + "angle": 250 + }, + { + "name": 56, + "x": 58, + "y": 168, + "group": 0, + "angle": 270 + }, + { + "name": 3, + "x": 61, + "y": 50, + "timeout": -1 + }, + { + "name": 52, + "x": 229, + "y": 200 + }, + { + "name": 3, + "x": 160, + "y": 122, + "timeout": -1 + }, + { + "name": 54, + "x": 70, + "y": 288 + }, + { + "name": 3, + "x": 70, + "y": 289, + "timeout": -1 + }, + { + "name": 100, + "x": 160, + "y": 81, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 162, + "y": 289, + "length": 100, + "wheel": false, + "gun": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 160, + "y": 367 + } + ], + "textCommandSolution": "cut_rope 0 when candy_x < 830\npop_bubble 0 when candy_y < 100\ncut_rope 1 when candy_still for 0.3\npop_bubble 1 when candy_near 950,250,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:36:45.808Z" +} diff --git a/cutrope/source/rope-148.json b/cutrope/source/rope-148.json new file mode 100644 index 0000000000000000000000000000000000000000..3a69443066c709c4ffdcc052004a0e4bc00092f1 --- /dev/null +++ b/cutrope/source/rope-148.json @@ -0,0 +1,84 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 180, + "y": 165 + }, + { + "name": 56, + "x": 180, + "y": 403, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 73, + "y": 402, + "group": 0, + "angle": 270 + }, + { + "name": 3, + "x": 71, + "y": 53, + "timeout": -1 + }, + { + "name": 3, + "x": 177, + "y": 298, + "timeout": -1 + }, + { + "name": 3, + "x": 69, + "y": 296, + "timeout": -1 + }, + { + "name": 52, + "x": 74, + "y": 131 + }, + { + "name": 100, + "x": 72, + "y": 239, + "length": 80, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 73, + "y": 128 + } + ], + "levelId": "04-13", + "levelEditedAt": "2026-05-05T15:41:29.028Z", + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_y < 140\ncut_rope 0 when candy_y > 570", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:41:57.174Z" +} diff --git a/cutrope/source/rope-149.json b/cutrope/source/rope-149.json new file mode 100644 index 0000000000000000000000000000000000000000..21821fe2e23e789187d76024f449ad2d15755a88 --- /dev/null +++ b/cutrope/source/rope-149.json @@ -0,0 +1,139 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 3, + "x": 161, + "y": 371, + "timeout": -1 + }, + { + "name": 3, + "x": 163, + "y": 293, + "timeout": -1 + }, + { + "name": 2, + "x": 160, + "y": 432 + }, + { + "name": 52, + "x": 160, + "y": 217 + }, + { + "name": 100, + "x": 163, + "y": 152, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 161, + "y": 293 + }, + { + "name": 3, + "x": 161, + "y": 91, + "timeout": -1 + }, + { + "name": 4, + "x": 20, + "y": 80, + "locale": "en", + "text": "Don't let the candy leave the box", + "width": 120 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 20, + "y": 80, + "locale": "ru", + "text": "Не дайте леденцу вылететь за пределы коробки", + "width": 120 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 20, + "y": 80, + "locale": "fr", + "text": "Ne laissez pas le bonbon sortir de la boîte", + "width": 110 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 14, + "y": 80, + "locale": "de", + "text": "Lass den Bonbon nicht aus der Schachtel", + "width": 140 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 \npop_bubble 0 when candy_y < 220", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T19:20:12.068Z" +} diff --git a/cutrope/source/rope-150.json b/cutrope/source/rope-150.json new file mode 100644 index 0000000000000000000000000000000000000000..1ccbaa79018e032ded254fd079857c9ef2bfe5e4 --- /dev/null +++ b/cutrope/source/rope-150.json @@ -0,0 +1,143 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 160, + "y": 52 + }, + { + "name": 52, + "x": 163, + "y": 367 + }, + { + "name": 3, + "x": 159, + "y": 262, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 145, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 203, + "timeout": -1 + }, + { + "name": 100, + "x": 161, + "y": 463, + "length": 65, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 163, + "y": 365 + } + ], + "ru": [ + { + "name": 4, + "x": 166, + "y": 155, + "locale": "ru", + "text": "Эти пилы поворачиваются вместе", + "width": 150 + }, + { + "name": 13, + "x": 238, + "y": 138, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "w": [ + { + "name": 4, + "x": 166, + "y": 161, + "locale": "en", + "text": "These blades rotate together", + "width": 150 + }, + { + "name": 13, + "x": 239, + "y": 147, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 125, + "y": 189, + "locale": "de", + "text": "Diese Sägeblätter drehen sich gemeinsam", + "width": 200 + }, + { + "name": 13, + "x": 215, + "y": 177, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 172, + "y": 162, + "locale": "fr", + "text": "Ces lames tournent ensemble", + "width": 140 + }, + { + "name": 13, + "x": 236, + "y": 150, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:23:46.516Z" +} diff --git a/cutrope/source/rope-151.json b/cutrope/source/rope-151.json new file mode 100644 index 0000000000000000000000000000000000000000..1e7ef55f41b2eb6c32b9688f70fb39e91db18363 --- /dev/null +++ b/cutrope/source/rope-151.json @@ -0,0 +1,103 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 167, + "y": 126 + }, + { + "name": 56, + "x": 164, + "y": 81, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 218, + "y": 424, + "group": 0, + "angle": -180 + }, + { + "name": 52, + "x": 164, + "y": 247 + }, + { + "name": 100, + "x": 245, + "y": 164, + "length": 80, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 83, + "y": 164, + "length": 80, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 165, + "y": 345, + "length": 70, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 242, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 77, + "y": 424, + "timeout": -1 + }, + { + "name": 3, + "x": 76, + "y": 345, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 1 \ncut_rope 0 when candy_x > 1030", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:24:52.148Z" +} diff --git a/cutrope/source/rope-152.json b/cutrope/source/rope-152.json new file mode 100644 index 0000000000000000000000000000000000000000..a39c079c92e1774ff92bfbfaf42d16110340457b --- /dev/null +++ b/cutrope/source/rope-152.json @@ -0,0 +1,196 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 162, + "y": 83 + }, + { + "name": 52, + "x": 163, + "y": 272 + }, + { + "name": 100, + "x": 84, + "y": 348, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 237, + "y": 348, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 161, + "y": 145, + "length": 35, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 46, + "y": 145, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 270, + "y": 144, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 162, + "y": 348, + "timeout": -1 + }, + { + "name": 3, + "x": 179, + "y": 442, + "timeout": -1 + }, + { + "name": 3, + "x": 137, + "y": 442, + "timeout": -1 + }, + { + "name": 54, + "x": 163, + "y": 347 + }, + { + "name": 4, + "x": 114, + "y": 250, + "locale": "en", + "text": "Stretched ropes get red", + "width": 100 + }, + { + "name": 13, + "x": 65, + "y": 237, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 261, + "y": 221, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 214, + "y": 234, + "locale": "ru", + "text": "Натянутые веревки становятся красными", + "width": 100 + } + ], + "fr": [ + { + "name": 13, + "x": 258, + "y": 223, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 211, + "y": 236, + "locale": "fr", + "text": "Les cordes étirées deviennent rouges", + "width": 100 + } + ], + "de": [ + { + "name": 4, + "x": 181, + "y": 240, + "locale": "de", + "text": "Gespannte Seile werden rot", + "width": 140 + }, + { + "name": 13, + "x": 252, + "y": 233, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 2,3,4\ncut_rope 1,0 when candy_still for 1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T07:50:14.067Z", + "mirroredFrom": "00-07.json" +} diff --git a/cutrope/source/rope-153.json b/cutrope/source/rope-153.json new file mode 100644 index 0000000000000000000000000000000000000000..0c8bd2d26f0fb2a9f46107bee26cf4812f15c0d6 --- /dev/null +++ b/cutrope/source/rope-153.json @@ -0,0 +1,106 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 160, + "y": 280, + "length": 75, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 164, + "y": 374 + }, + { + "name": 3, + "x": 160, + "y": 375, + "timeout": -1 + }, + { + "name": 3, + "x": 200, + "y": 355, + "timeout": -1 + }, + { + "name": 3, + "x": 120, + "y": 355, + "timeout": -1 + }, + { + "name": 2, + "x": 160, + "y": 38 + }, + { + "name": 52, + "x": 164, + "y": 177 + }, + { + "name": 100, + "x": 260, + "y": 75, + "length": 105, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 60, + "y": 75, + "length": 105, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "textCommandSolution": "cut_rope 2 when candy_still for 0.3 and candy_near 960,390,60\ncut_rope 1 when candy_still for 0.3 and candy_near 1160,490,60\ncut_rope 0 when candy_still for 0.3 and candy_near 960,380,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:50:29.006Z", + "mirroredFrom": "09-20.json" +} diff --git a/cutrope/source/rope-154.json b/cutrope/source/rope-154.json new file mode 100644 index 0000000000000000000000000000000000000000..4d9d3258b726d4171b77615399b6a3c1dad27f69 --- /dev/null +++ b/cutrope/source/rope-154.json @@ -0,0 +1,179 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 132, + "y": 424 + }, + { + "name": 100, + "x": 416, + "y": 177, + "length": 100, + "wheel": false, + "gun": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 199, + "y": 341, + "length": 100, + "wheel": false, + "gun": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 305, + "y": 256, + "length": 100, + "wheel": false, + "gun": false, + "radius": 45, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 462, + "y": 103 + }, + { + "name": 3, + "x": 418, + "y": 269, + "timeout": -1 + }, + { + "name": 3, + "x": 212, + "y": 426, + "timeout": -1 + }, + { + "name": 3, + "x": 312, + "y": 345, + "timeout": -1 + }, + { + "name": 100, + "x": 460, + "y": 31, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 367, + "y": 39, + "locale": "en", + "text": "Automatic ropes appear when candy gets into their area", + "width": 140 + }, + { + "name": 8, + "x": 324, + "y": 164, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 8, + "x": 325, + "y": 173, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 234, + "y": 68, + "locale": "ru", + "text": "Авто-веревки появляются, когда леденец попадает в их радиус", + "width": 220 + } + ], + "fr": [ + { + "name": 4, + "x": 213, + "y": 41, + "locale": "fr", + "text": "Les cordes automatiques apparaissent lorsqu'un bonbon arrive dans leur zone", + "width": 260 + }, + { + "name": 8, + "x": 298, + "y": 144, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 250, + "y": 47, + "locale": "de", + "text": "Sobald der Bonbon in ihrer Nähe ist, erscheinen automatisch Seile", + "width": 200 + }, + { + "name": 8, + "x": 329, + "y": 152, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "levelId": "01-10", + "levelEditedAt": "2026-05-05T12:58:50.336Z", + "textCommandSolution": "cut_rope 3 \ncut_rope 0 when candy_still for 0.3\ncut_rope 2 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T12:59:09.942Z", + "mirroredFrom": "01-10.json" +} diff --git a/cutrope/source/rope-155.json b/cutrope/source/rope-155.json new file mode 100644 index 0000000000000000000000000000000000000000..17d3f2f0e7c9f43c53baeefa54f51ed4b68c97f3 --- /dev/null +++ b/cutrope/source/rope-155.json @@ -0,0 +1,86 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 321, + "y": 213 + }, + { + "name": 2, + "x": 431, + "y": 386 + }, + { + "name": 100, + "x": 323, + "y": 47, + "length": 130, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 55, + "x": 183, + "y": 224, + "angle": 0 + }, + { + "name": 100, + "x": 323, + "y": 105, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 389, + "y": 344, + "timeout": -1 + }, + { + "name": 3, + "x": 391, + "y": 190, + "timeout": -1 + }, + { + "name": 3, + "x": 322, + "y": 302, + "timeout": -1 + } + ], + "levelId": "02-07", + "levelEditedAt": "2026-05-05T13:50:54.969Z", + "textCommandSolution": "activate_pump 0 \ncut_rope 0 when candy_x < 950\ncut_rope 1 when candy_x > 1120", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:51:03.083Z" +} diff --git a/cutrope/source/rope-156.json b/cutrope/source/rope-156.json new file mode 100644 index 0000000000000000000000000000000000000000..476f7d515ee55d6bb1f4174f8609ef3b13bb2181 --- /dev/null +++ b/cutrope/source/rope-156.json @@ -0,0 +1,116 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 435, + "y": 40 + }, + { + "name": 54, + "x": 321, + "y": 360 + }, + { + "name": 52, + "x": 319, + "y": 360 + }, + { + "name": 100, + "x": 321, + "y": 442, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 328, + "y": 275, + "timeout": -1 + }, + { + "name": 3, + "x": 408, + "y": 148, + "timeout": -1 + }, + { + "name": 3, + "x": 247, + "y": 150, + "timeout": -1 + }, + { + "name": 100, + "x": 251, + "y": 272, + "length": 100, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 399, + "y": 271, + "length": 100, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 323, + "y": 143, + "length": 100, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 402, + "y": 269 + } + ], + "textCommandSolution": "cut_rope 0 \ncut_rope 2 when candy_y < 400\npop_bubble 0 when candy_still for 0.3 and candy_near 810,340,60\ncut_rope 1 when candy_x < 820\ncut_rope 3 when candy_x > 1190", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:20:55.485Z" +} diff --git a/cutrope/source/rope-157.json b/cutrope/source/rope-157.json new file mode 100644 index 0000000000000000000000000000000000000000..ae9325e11e6adf5e0c850f23405a4fefe08b132c --- /dev/null +++ b/cutrope/source/rope-157.json @@ -0,0 +1,154 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 67, + "y": 178 + }, + { + "name": 100, + "x": 163, + "y": 121, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 166, + "y": 213 + }, + { + "name": 3, + "x": 161, + "y": 343, + "timeout": -1 + }, + { + "name": 3, + "x": 235, + "y": 231, + "timeout": -1 + }, + { + "name": 3, + "x": 69, + "y": 125, + "timeout": -1 + }, + { + "name": 54, + "x": 161, + "y": 343 + }, + { + "name": 56, + "x": 157, + "y": 404, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 250, + "y": 261, + "group": 0, + "angle": 240 + }, + { + "name": 4, + "x": 242, + "y": 32, + "locale": "en", + "text": "Candy maintains its speed when teleporting", + "width": 200 + }, + { + "name": 13, + "x": 261, + "y": 70, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 78, + "y": 23, + "locale": "fr", + "text": "Le bonbon garde sa vitesse lors de la téléportation", + "width": 200 + }, + { + "name": 13, + "x": 50, + "y": 73, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 81, + "y": 28, + "locale": "de", + "text": "Die Süßigkeit behält ihre Geschwindigkeit", + "width": 200 + }, + { + "name": 13, + "x": 54, + "y": 72, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 62, + "y": 31, + "locale": "ru", + "text": "Леденец сохраняет свою скорость при телепортации", + "width": 240 + }, + { + "name": 13, + "x": 43, + "y": 69, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0\npop_bubble 0 when candy_y <480", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T07:10:35.964Z", + "mirroredFrom": "00-06.json" +} diff --git a/cutrope/source/rope-158.json b/cutrope/source/rope-158.json new file mode 100644 index 0000000000000000000000000000000000000000..b6d19d625f92e4d8d0a7dc4fc71a9c8746a05de0 --- /dev/null +++ b/cutrope/source/rope-158.json @@ -0,0 +1,91 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 195, + "y": 258, + "length": 100, + "wheel": false, + "gun": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 194, + "y": 371, + "timeout": 10 + }, + { + "name": 54, + "x": 193, + "y": 378 + }, + { + "name": 2, + "x": 196, + "y": 71 + }, + { + "name": 3, + "x": 115, + "y": 83, + "timeout": -1 + }, + { + "name": 55, + "x": 284, + "y": 146, + "angle": 180 + }, + { + "name": 3, + "x": 289, + "y": 76, + "timeout": -1 + }, + { + "name": 52, + "x": 195, + "y": 140 + }, + { + "name": 100, + "x": 194, + "y": 34, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "02-22", + "levelEditedAt": "2026-05-05T14:38:58.835Z", + "textCommandSolution": "activate_pump 0 \ncut_rope 1 when candy_near 1190,250,50 times 2\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:41:38.128Z" +} diff --git a/cutrope/source/rope-159.json b/cutrope/source/rope-159.json new file mode 100644 index 0000000000000000000000000000000000000000..9d5a425e605f914905430af336d7c884c3b6fb78 --- /dev/null +++ b/cutrope/source/rope-159.json @@ -0,0 +1,160 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 64, + "y": 310 + }, + { + "name": 2, + "x": 244, + "y": 77 + }, + { + "name": 100, + "x": 66, + "y": 248, + "length": 60, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 65, + "y": 424 + }, + { + "name": 100, + "x": 143, + "y": 159, + "length": 100, + "wheel": false, + "gun": false, + "radius": 75, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 238, + "y": 211 + }, + { + "name": 3, + "x": 65, + "y": 425, + "timeout": -1 + }, + { + "name": 3, + "x": 63, + "y": 205, + "timeout": -1 + }, + { + "name": 3, + "x": 239, + "y": 211, + "timeout": -1 + }, + { + "name": 4, + "x": 135, + "y": 336, + "locale": "en", + "text": "You can skip the level in the pause menu", + "width": 140 + }, + { + "name": 13, + "x": 200, + "y": 322, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 137, + "y": 312, + "locale": "ru", + "text": "Вы можете пропустить уровень через меню паузы", + "width": 140 + }, + { + "name": 13, + "x": 202, + "y": 297, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 135, + "y": 337, + "locale": "fr", + "text": "Tu peux passer le niveau via le menu Pause", + "width": 140 + }, + { + "name": 13, + "x": 200, + "y": 323, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 141, + "y": 318, + "locale": "de", + "text": "Im Pause-Menü kannst Du den Level überspringen", + "width": 170 + }, + { + "name": 13, + "x": 224, + "y": 303, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_y < 300", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:13:28.866Z" +} diff --git a/cutrope/source/rope-160.json b/cutrope/source/rope-160.json new file mode 100644 index 0000000000000000000000000000000000000000..d47ff5d38cb5388040c6aa1dddb8c37ba39ca1b9 --- /dev/null +++ b/cutrope/source/rope-160.json @@ -0,0 +1,80 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 182, + "y": 108 + }, + { + "name": 52, + "x": 184, + "y": 290 + }, + { + "name": 3, + "x": 191, + "y": 386, + "timeout": -1 + }, + { + "name": 3, + "x": 190, + "y": 201, + "timeout": -1 + }, + { + "name": 3, + "x": 182, + "y": 143, + "timeout": -1 + }, + { + "name": 100, + "x": 137, + "y": 205, + "length": 115, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 231, + "y": 212, + "length": 104, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 53, + "x": 52, + "y": 268 + } + ], + "textCommandSolution": "cut_rope 0,1\ntoggle_gravity when candy_y > 850", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "generatorTemplate": "gravity_lift_2", + "textCommandSolutionUpdatedAt": "2026-05-05T18:59:32.809Z" +} diff --git a/cutrope/source/rope-161.json b/cutrope/source/rope-161.json new file mode 100644 index 0000000000000000000000000000000000000000..d3845367730c25d4eb758da316268421c6ef3075 --- /dev/null +++ b/cutrope/source/rope-161.json @@ -0,0 +1,231 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 101, + "y": 238 + }, + { + "name": 2, + "x": 219, + "y": 431 + }, + { + "name": 3, + "x": 102, + "y": 326, + "timeout": -1 + }, + { + "name": 3, + "x": 217, + "y": 209, + "timeout": -1 + }, + { + "name": 3, + "x": 217, + "y": 74, + "timeout": -1 + }, + { + "name": 100, + "x": 96, + "y": 139, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 99, + "y": 391 + }, + { + "name": 100, + "x": 219, + "y": 252, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 4, + "x": 43, + "y": 45, + "locale": "en", + "text": "Click to pop the bubble", + "width": 120, + "special": 1 + }, + { + "name": 4, + "x": 157, + "y": 293, + "locale": "en", + "text": "The bubble will lift the candy up", + "width": 120 + }, + { + "name": 8, + "x": 167, + "y": 391, + "locale": "en", + "angle": 15, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 9, + "x": 218, + "y": 78, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 10, + "special": 1 + } + ], + "ru": [ + { + "name": 8, + "x": 167, + "y": 391, + "locale": "ru", + "angle": 20, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 138, + "y": 315, + "locale": "ru", + "text": "Пузырь подымет леденец вверх", + "width": 160 + }, + { + "name": 4, + "x": 21, + "y": 44, + "locale": "ru", + "text": "Нажмите, чтобы лопнуть пузырь", + "width": 160, + "special": 1 + }, + { + "name": 9, + "x": 218, + "y": 78, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 1 + } + ], + "fr": [ + { + "name": 4, + "x": 121, + "y": 311, + "locale": "fr", + "text": "La bulle fera monter le bonbon", + "width": 150 + }, + { + "name": 8, + "x": 167, + "y": 386, + "locale": "fr", + "angle": 15, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 33, + "y": 46, + "locale": "fr", + "text": "Clique pour éclater la bulle", + "width": 130, + "special": 1 + }, + { + "name": 9, + "x": 217, + "y": 78, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 1 + } + ], + "de": [ + { + "name": 4, + "x": 17, + "y": 30, + "locale": "de", + "text": "Klicke, um die Seifenblase platzen zu lassen", + "width": 140, + "special": 1 + }, + { + "name": 9, + "x": 217, + "y": 77, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 10, + "special": 1 + }, + { + "name": 4, + "x": 138, + "y": 308, + "locale": "de", + "text": "Die Seifenblase lässt den Bonbon schweben", + "width": 170 + }, + { + "name": 8, + "x": 166, + "y": 390, + "locale": "de", + "angle": 15, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T11:22:17.009Z" +} diff --git a/cutrope/source/rope-162.json b/cutrope/source/rope-162.json new file mode 100644 index 0000000000000000000000000000000000000000..349d0968123a8c7929cab66650e4ac97f9fcdda3 --- /dev/null +++ b/cutrope/source/rope-162.json @@ -0,0 +1,123 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 548, + "y": 117 + }, + { + "name": 52, + "x": 100, + "y": 315 + }, + { + "name": 54, + "x": 100, + "y": 316 + }, + { + "name": 100, + "x": 99, + "y": 442, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 82, + "x": 47, + "y": 213, + "angle": 90, + "size": 2 + }, + { + "name": 55, + "x": 159, + "y": 209, + "angle": 180 + }, + { + "name": 56, + "x": 146, + "y": 51, + "group": 0, + "angle": 90 + }, + { + "name": 82, + "x": 272, + "y": 209, + "angle": 90, + "size": 2 + }, + { + "name": 56, + "x": 322, + "y": 399, + "group": 0, + "angle": 270 + }, + { + "name": 55, + "x": 385, + "y": 206, + "angle": 180 + }, + { + "name": 56, + "x": 544, + "y": 398, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 371, + "y": 54, + "group": 1, + "angle": 90 + }, + { + "name": 3, + "x": 546, + "y": 210, + "timeout": -1 + }, + { + "name": 3, + "x": 96, + "y": 210, + "timeout": -1 + }, + { + "name": 3, + "x": 323, + "y": 207, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0\nactivate_pump 0 when candy_y < 550\nactivate_pump 1 when candy_near 960,470,40", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:23:43.877Z" +} diff --git a/cutrope/source/rope-163.json b/cutrope/source/rope-163.json new file mode 100644 index 0000000000000000000000000000000000000000..225d62a0a69078af8131e5c71e24e5da942de24d --- /dev/null +++ b/cutrope/source/rope-163.json @@ -0,0 +1,119 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 160, + "y": 263 + }, + { + "name": 2, + "x": 161, + "y": 40 + }, + { + "name": 54, + "x": 159, + "y": 262 + }, + { + "name": 54, + "x": 160, + "y": 352 + }, + { + "name": 100, + "x": 285, + "y": 355, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 32, + "y": 356, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 32, + "y": 258, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 285, + "y": 260, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 160, + "y": 109, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 400, + "timeout": -1 + }, + { + "name": 3, + "x": 111, + "y": 182, + "timeout": -1 + } + ], + "levelId": "01-21", + "levelEditedAt": "2026-05-05T13:22:15.639Z", + "textCommandSolution": "cut_rope 0 \ncut_rope 1 when candy_still for 0.3\npop_bubble 0 when candy_still for 0.3 and candy_near 960,310,60\ncut_rope 3 when candy_still for 0.3 and candy_near 960,310,60\ncut_rope 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:23:35.645Z", + "mirroredFrom": "01-21.json" +} diff --git a/cutrope/source/rope-164.json b/cutrope/source/rope-164.json new file mode 100644 index 0000000000000000000000000000000000000000..ebb7cfb39c6e5315124da89d94b16a4d9c355647 --- /dev/null +++ b/cutrope/source/rope-164.json @@ -0,0 +1,124 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 156, + "y": 275 + }, + { + "name": 100, + "x": 153, + "y": 120, + "length": 90, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 155, + "y": 341, + "length": 10, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 281, + "y": 119, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 29, + "y": 116, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 2, + "x": 243, + "y": 416 + }, + { + "name": 3, + "x": 65, + "y": 213, + "timeout": -1 + }, + { + "name": 3, + "x": 150, + "y": 51, + "timeout": -1 + }, + { + "name": 3, + "x": 236, + "y": 333, + "timeout": -1 + }, + { + "name": 100, + "x": 245, + "y": 260, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 69, + "y": 260, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + } + ], + "levelId": "02-14", + "levelEditedAt": "2026-05-05T14:09:30.458Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_y <500\ncut_rope 3,5 when candy_still for 0.3 and candy_near 820,520,60\ncut_rope 0 when candy_near 1070,550,60\ncut_rope 4 when candy_near 1100,780,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:09:39.961Z", + "mirroredFrom": "02-14.json" +} diff --git a/cutrope/source/rope-165.json b/cutrope/source/rope-165.json new file mode 100644 index 0000000000000000000000000000000000000000..7829f4ed069ac0dbf877382bc48c5605aef13ec7 --- /dev/null +++ b/cutrope/source/rope-165.json @@ -0,0 +1,148 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 161, + "y": 239 + }, + { + "name": 52, + "x": 159, + "y": 132 + }, + { + "name": 100, + "x": 40, + "y": 82, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 289, + "y": 81, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 288, + "y": 235, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 39, + "y": 234, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 160, + "y": 187, + "timeout": -1 + }, + { + "name": 3, + "x": 257, + "y": 330, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 331, + "timeout": -1 + }, + { + "name": 56, + "x": 167, + "y": 406, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 253, + "y": 75, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 163, + "y": 74, + "group": 1, + "angle": 90 + }, + { + "name": 56, + "x": 228, + "y": 825, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 323, + "y": 827, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 261, + "y": 405, + "group": 1, + "angle": 270 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3\ncut_rope 1 when candy_still for 0.3\ncut_rope 2,3 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:02:57.854Z" +} diff --git a/cutrope/source/rope-166.json b/cutrope/source/rope-166.json new file mode 100644 index 0000000000000000000000000000000000000000..9b0bf1800b58e11bf1a0215e92a7fc553e75b425 --- /dev/null +++ b/cutrope/source/rope-166.json @@ -0,0 +1,94 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 352, + "y": 318 + }, + { + "name": 2, + "x": 70, + "y": 222 + }, + { + "name": 3, + "x": 207, + "y": 86, + "timeout": -1 + }, + { + "name": 3, + "x": 273, + "y": 142, + "timeout": -1 + }, + { + "name": 3, + "x": 147, + "y": 142, + "timeout": -1 + }, + { + "name": 100, + "x": 468, + "y": 219, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 224, + "y": 233, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 430, + "y": 419, + "length": 65, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "01-24", + "levelEditedAt": "2026-05-05T13:25:26.352Z", + "textCommandSolution": "cut_rope 2 \ncut_rope 0 when candy_y < 500", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:33:34.441Z" +} diff --git a/cutrope/source/rope-167.json b/cutrope/source/rope-167.json new file mode 100644 index 0000000000000000000000000000000000000000..73fd6d1120174d156795ccd7406211a8b9706d6b --- /dev/null +++ b/cutrope/source/rope-167.json @@ -0,0 +1,87 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 319, + "y": 213 + }, + { + "name": 2, + "x": 209, + "y": 386 + }, + { + "name": 100, + "x": 317, + "y": 47, + "length": 130, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 55, + "x": 457, + "y": 224, + "angle": 180 + }, + { + "name": 100, + "x": 317, + "y": 105, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 251, + "y": 344, + "timeout": -1 + }, + { + "name": 3, + "x": 249, + "y": 190, + "timeout": -1 + }, + { + "name": 3, + "x": 318, + "y": 302, + "timeout": -1 + } + ], + "levelId": "02-07", + "levelEditedAt": "2026-05-05T13:50:54.969Z", + "textCommandSolution": "activate_pump 0 \ncut_rope 0 when candy_x > 970\ncut_rope 1 when candy_x < 800", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:51:03.083Z", + "mirroredFrom": "02-07.json" +} diff --git a/cutrope/source/rope-168.json b/cutrope/source/rope-168.json new file mode 100644 index 0000000000000000000000000000000000000000..bb6e326a8fa19bb134ec035e2672535fb7d06aa8 --- /dev/null +++ b/cutrope/source/rope-168.json @@ -0,0 +1,164 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 28, + "y": 122 + }, + { + "name": 100, + "x": 33, + "y": 51, + "length": 40, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 312, + "y": 415 + }, + { + "name": 100, + "x": 95, + "y": 220, + "length": 100, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 289, + "y": 303, + "timeout": -1 + }, + { + "name": 100, + "x": 227, + "y": 221, + "length": 100, + "wheel": false, + "gun": false, + "radius": 65, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 32, + "y": 220, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 285, + "timeout": -1 + }, + { + "name": 4, + "x": 20, + "y": 366, + "locale": "en", + "text": "Cut the rope before the spider reaches the candy", + "width": 140 + }, + { + "name": 10, + "x": 89, + "y": 350, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 10, + "x": 88, + "y": 351, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 19, + "y": 367, + "locale": "ru", + "text": "袠蟹斜械谐邪泄褌械 褝谢械泻褌褉懈褔械褋泻懈褏 懈褋泻褉", + "width": 140 + } + ], + "fr": [ + { + "name": 10, + "x": 89, + "y": 335, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 20, + "y": 351, + "locale": "fr", + "text": "脡vite les 茅tincelles 茅lectriques", + "width": 140 + } + ], + "de": [ + { + "name": 10, + "x": 89, + "y": 359, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 3, + "y": 366, + "locale": "de", + "text": "Schneide das Seil durch, bevor die Spinne am Bonbon ist", + "width": 180 + } + ], + "levelId": "03-14", + "levelEditedAt": "2026-05-05T14:44:56.589Z", + "textCommandSolution": "cut_rope 0\ncut_rope 1 when candy_still for 0.3\ncut_rope 2 when candy_x > 1200", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:45:05.295Z" +} diff --git a/cutrope/source/rope-169.json b/cutrope/source/rope-169.json new file mode 100644 index 0000000000000000000000000000000000000000..4b1246877cd1859f3890ea01c0db24c499488cc7 --- /dev/null +++ b/cutrope/source/rope-169.json @@ -0,0 +1,86 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 158, + "y": 430 + }, + { + "name": 54, + "x": 161, + "y": 320 + }, + { + "name": 100, + "x": 223, + "y": 122, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 161, + "y": 231 + }, + { + "name": 3, + "x": 159, + "y": 75, + "timeout": -1 + }, + { + "name": 3, + "x": 158, + "y": 170, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 275, + "timeout": -1 + }, + { + "name": 100, + "x": 98, + "y": 122, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "00-15", + "levelEditedAt": "2026-05-05T10:12:06.544Z", + "textCommandSolution": "cut_rope 0,1 \npop_bubble 0 when candy_y < 190", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:12:53.720Z", + "mirroredFrom": "00-15.json" +} diff --git a/cutrope/source/rope-170.json b/cutrope/source/rope-170.json new file mode 100644 index 0000000000000000000000000000000000000000..8ab957de7a4723de0a792b53309680fc02dab214 --- /dev/null +++ b/cutrope/source/rope-170.json @@ -0,0 +1,69 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 318, + "y": 41 + }, + { + "name": 82, + "x": 318, + "y": 449, + "angle": 180, + "size": 2 + }, + { + "name": 3, + "x": 302, + "y": 148, + "timeout": -1 + }, + { + "name": 3, + "x": 321, + "y": 121, + "timeout": -1 + }, + { + "name": 54, + "x": 319, + "y": 254 + }, + { + "name": 55, + "x": 320, + "y": 316, + "angle": 90 + }, + { + "name": 3, + "x": 340, + "y": 94, + "timeout": -1 + }, + { + "name": 52, + "x": 319, + "y": 366 + } + ], + "textCommandSolution": "activate_pump 0 when candy_y > 910\nactivate_pump 0 when candy_y > 840", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:26:23.004Z", + "mirroredFrom": "06-14.json" +} diff --git a/cutrope/source/rope-171.json b/cutrope/source/rope-171.json new file mode 100644 index 0000000000000000000000000000000000000000..5284d6cd2f30ca7c164300928bfe6f1bd76a89f5 --- /dev/null +++ b/cutrope/source/rope-171.json @@ -0,0 +1,106 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 315, + "y": 365 + }, + { + "name": 56, + "x": 413, + "y": 62, + "group": 1, + "angle": 180 + }, + { + "name": 52, + "x": 420, + "y": 543 + }, + { + "name": 56, + "x": 413, + "y": 399, + "group": 1, + "angle": 270 + }, + { + "name": 55, + "x": 423, + "y": 188, + "angle": 90 + }, + { + "name": 56, + "x": 227, + "y": 399, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 222, + "y": 56, + "group": 0, + "angle": 0 + }, + { + "name": 54, + "x": 420, + "y": 541 + }, + { + "name": 3, + "x": 228, + "y": 282, + "timeout": -1 + }, + { + "name": 3, + "x": 417, + "y": 341, + "timeout": -1 + }, + { + "name": 3, + "x": 325, + "y": 57, + "timeout": -1 + }, + { + "name": 100, + "x": 312, + "y": 250, + "length": 100, + "wheel": false, + "gun": false, + "radius": 75, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "04-17", + "levelEditedAt": "2026-05-05T15:45:54.272Z", + "textCommandSolution": "pop_bubble 0 when candy_y < 810", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:46:31.627Z", + "mirroredFrom": "04-17.json" +} diff --git a/cutrope/source/rope-172.json b/cutrope/source/rope-172.json new file mode 100644 index 0000000000000000000000000000000000000000..978d1ab7711d451adb4720297dc945f17bf63871 --- /dev/null +++ b/cutrope/source/rope-172.json @@ -0,0 +1,195 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 158, + "y": 83 + }, + { + "name": 52, + "x": 157, + "y": 272 + }, + { + "name": 100, + "x": 236, + "y": 348, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 83, + "y": 348, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 159, + "y": 145, + "length": 35, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 274, + "y": 145, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 50, + "y": 144, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 158, + "y": 348, + "timeout": -1 + }, + { + "name": 3, + "x": 141, + "y": 442, + "timeout": -1 + }, + { + "name": 3, + "x": 183, + "y": 442, + "timeout": -1 + }, + { + "name": 54, + "x": 157, + "y": 347 + }, + { + "name": 4, + "x": 206, + "y": 250, + "locale": "en", + "text": "Stretched ropes get red", + "width": 100 + }, + { + "name": 13, + "x": 255, + "y": 237, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 261, + "y": 221, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 214, + "y": 234, + "locale": "ru", + "text": "Натянутые веревки становятся красными", + "width": 100 + } + ], + "fr": [ + { + "name": 13, + "x": 258, + "y": 223, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 211, + "y": 236, + "locale": "fr", + "text": "Les cordes étirées deviennent rouges", + "width": 100 + } + ], + "de": [ + { + "name": 4, + "x": 181, + "y": 240, + "locale": "de", + "text": "Gespannte Seile werden rot", + "width": 140 + }, + { + "name": 13, + "x": 252, + "y": 233, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 2,3,4\ncut_rope 1,0 when candy_still for 1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T07:50:14.067Z" +} diff --git a/cutrope/source/rope-173.json b/cutrope/source/rope-173.json new file mode 100644 index 0000000000000000000000000000000000000000..74d162e3bba18d717f3eee1af1d744485329c56d --- /dev/null +++ b/cutrope/source/rope-173.json @@ -0,0 +1,147 @@ +{ + "settings": [ + { + "name": 0, + "width": 640, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 492, + "y": 302 + }, + { + "name": 100, + "x": 489, + "y": 189, + "length": 38, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 490, + "y": 420, + "length": 38, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 56, + "x": 491, + "y": 93, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 373, + "y": 413, + "group": 0, + "angle": 270 + }, + { + "name": 100, + "x": 312, + "y": 184, + "length": 50, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 226, + "y": 296 + }, + { + "name": 3, + "x": 231, + "y": 187, + "timeout": -1 + }, + { + "name": 100, + "x": 149, + "y": 187, + "length": 50, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 584, + "y": 407 + }, + { + "name": 3, + "x": 147, + "y": 60, + "timeout": -1 + }, + { + "name": 56, + "x": 143, + "y": 407, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 591, + "y": 94, + "group": 1, + "angle": 90 + }, + { + "name": 3, + "x": 389, + "y": 187, + "timeout": -1 + }, + { + "name": 54, + "x": 589, + "y": 233 + } + ], + "levelId": "00-23", + "levelEditedAt": "2026-05-05T10:46:32.156Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_x < 700\npop_bubble 0 when candy_still for 0.3\ncut_rope 3 when candy_still for 0.3\npop_bubble 1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:49:28.171Z", + "mirroredFrom": "00-23.json" +} diff --git a/cutrope/source/rope-174.json b/cutrope/source/rope-174.json new file mode 100644 index 0000000000000000000000000000000000000000..068ac7d035a0612996b2a910b6a5aca0a77e5ec4 --- /dev/null +++ b/cutrope/source/rope-174.json @@ -0,0 +1,135 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 163, + "y": 200 + }, + { + "name": 56, + "x": 229, + "y": 392, + "group": 0, + "angle": 180 + }, + { + "name": 56, + "x": 93, + "y": 152, + "group": 0, + "angle": 0 + }, + { + "name": 52, + "x": 161, + "y": 136 + }, + { + "name": 100, + "x": 220, + "y": 49, + "length": 76, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 103, + "y": 49, + "length": 76, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 56, + "x": 95, + "y": 400, + "group": 1, + "angle": 0 + }, + { + "name": 56, + "x": 227, + "y": 148, + "group": 1, + "angle": 180 + }, + { + "name": 54, + "x": 160, + "y": 416 + }, + { + "name": 100, + "x": 210, + "y": 298, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 116, + "y": 301, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 200, + "y": 146, + "timeout": -1 + }, + { + "name": 3, + "x": 121, + "y": 148, + "timeout": -1 + }, + { + "name": 3, + "x": 162, + "y": 418, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_near 950,730,80\ncut_rope 2 when candy_still for 0.3 and candy_near 980,900,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:27:55.662Z" +} diff --git a/cutrope/source/rope-175.json b/cutrope/source/rope-175.json new file mode 100644 index 0000000000000000000000000000000000000000..671fd1597ab0479adf3130bc8b5bb1ffdc0f6a90 --- /dev/null +++ b/cutrope/source/rope-175.json @@ -0,0 +1,119 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 527, + "y": 189 + }, + { + "name": 100, + "x": 579, + "y": 187, + "length": 50, + "wheel": false, + "radius": -1, + "moveVertical": true, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 476, + "y": 188, + "length": 50, + "wheel": false, + "radius": -1, + "moveVertical": true, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 95, + "y": 195, + "timeout": -1 + }, + { + "name": 56, + "x": 529, + "y": 401, + "group": 0, + "angle": 270 + }, + { + "name": 2, + "x": 163, + "y": 290 + }, + { + "name": 54, + "x": 371, + "y": 257 + }, + { + "name": 56, + "x": 372, + "y": 98, + "group": 0, + "angle": 90 + }, + { + "name": 3, + "x": 233, + "y": 191, + "timeout": -1 + }, + { + "name": 3, + "x": 165, + "y": 113, + "timeout": -1 + }, + { + "name": 56, + "x": 367, + "y": 403, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 221, + "y": 402, + "group": 1, + "angle": 270 + }, + { + "name": 100, + "x": 163, + "y": 195, + "length": 100, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 \ncut_rope 1\npop_bubble 0 when candy_near 1430,200,40", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:48:29.139Z", + "mirroredFrom": "04-23.json" +} diff --git a/cutrope/source/rope-176.json b/cutrope/source/rope-176.json new file mode 100644 index 0000000000000000000000000000000000000000..4b3cb1a24f9cac0ac978fa22a4f39abb84acb294 --- /dev/null +++ b/cutrope/source/rope-176.json @@ -0,0 +1,124 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 92, + "y": 117 + }, + { + "name": 52, + "x": 540, + "y": 315 + }, + { + "name": 54, + "x": 540, + "y": 316 + }, + { + "name": 100, + "x": 541, + "y": 442, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 82, + "x": 593, + "y": 213, + "angle": 90, + "size": 2 + }, + { + "name": 55, + "x": 481, + "y": 209, + "angle": 0 + }, + { + "name": 56, + "x": 494, + "y": 51, + "group": 0, + "angle": 90 + }, + { + "name": 82, + "x": 368, + "y": 209, + "angle": 90, + "size": 2 + }, + { + "name": 56, + "x": 318, + "y": 399, + "group": 0, + "angle": 270 + }, + { + "name": 55, + "x": 255, + "y": 206, + "angle": 0 + }, + { + "name": 56, + "x": 96, + "y": 398, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 269, + "y": 54, + "group": 1, + "angle": 90 + }, + { + "name": 3, + "x": 94, + "y": 210, + "timeout": -1 + }, + { + "name": 3, + "x": 544, + "y": 210, + "timeout": -1 + }, + { + "name": 3, + "x": 317, + "y": 207, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0\nactivate_pump 0 when candy_y < 550\nactivate_pump 1 when candy_near 960,470,40", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:23:43.877Z", + "mirroredFrom": "06-11.json" +} diff --git a/cutrope/source/rope-177.json b/cutrope/source/rope-177.json new file mode 100644 index 0000000000000000000000000000000000000000..5e86431748683e92e25f498300ad7858b298f1ca --- /dev/null +++ b/cutrope/source/rope-177.json @@ -0,0 +1,130 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 105, + "y": 337 + }, + { + "name": 54, + "x": 97, + "y": 335 + }, + { + "name": 100, + "x": 98, + "y": 439, + "length": 75, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 51, + "x": 221, + "y": 338 + }, + { + "name": 54, + "x": 218, + "y": 334 + }, + { + "name": 100, + "x": 218, + "y": 439, + "length": 75, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 160, + "y": 298, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 159, + "y": 193, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 162, + "y": 56 + }, + { + "name": 55, + "x": 292, + "y": 327, + "angle": 180 + }, + { + "name": 3, + "x": 164, + "y": 255, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 345, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 128, + "timeout": -1 + }, + { + "name": 55, + "x": 27, + "y": 329, + "angle": 0 + } + ], + "levelId": "05-21", + "levelEditedAt": "2026-05-05T16:44:18.975Z", + "textCommandSolution": "activate_pump 0\nactivate_pump 1\ncut_rope 0 when candy_still for 0.3 and candy_near 960,780,60\ncut_rope 1\ncut_rope 2 when candy_still for 0.3 and candy_near 960,470,60\ncut_rope 3 when candy_still for 0.3 and candy_near 960,230,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:45:48.752Z" +} diff --git a/cutrope/source/rope-178.json b/cutrope/source/rope-178.json new file mode 100644 index 0000000000000000000000000000000000000000..0de74e025467be2eb798a8b45c7388b12243d72b --- /dev/null +++ b/cutrope/source/rope-178.json @@ -0,0 +1,112 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 426, + "y": 25, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 258, + "y": 26, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 338, + "y": 116 + }, + { + "name": 82, + "x": 341, + "y": 223, + "angle": -30, + "size": 2 + }, + { + "name": 56, + "x": 441, + "y": 141, + "group": 0, + "angle": 180 + }, + { + "name": 56, + "x": 267, + "y": 361, + "group": 0, + "angle": 0 + }, + { + "name": 2, + "x": 226, + "y": 178 + }, + { + "name": 3, + "x": 343, + "y": 362, + "timeout": -1 + }, + { + "name": 3, + "x": 319, + "y": 185, + "timeout": -1 + }, + { + "name": 55, + "x": 433, + "y": 354, + "angle": 180 + }, + { + "name": 54, + "x": 345, + "y": 417 + }, + { + "name": 3, + "x": 340, + "y": 71, + "timeout": -1 + } + ], + "levelId": "06-16", + "levelEditedAt": "2026-05-05T17:30:39.650Z", + "textCommandSolution": "cut_rope 1 \nactivate_pump 0 times 2 when candy_near 1100,800,50\npop_bubble 0 when candy_y < 130", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:30:47.382Z" +} diff --git a/cutrope/source/rope-179.json b/cutrope/source/rope-179.json new file mode 100644 index 0000000000000000000000000000000000000000..53de5c9db628a5becf5466fd22fb2cec9a20e8be --- /dev/null +++ b/cutrope/source/rope-179.json @@ -0,0 +1,143 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 35, + "y": 188 + }, + { + "name": 51, + "x": 292, + "y": 188 + }, + { + "name": 100, + "x": 33, + "y": 95, + "length": 50, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 290, + "y": 95, + "length": 50, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 33, + "y": 384, + "length": 110, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 290, + "y": 384, + "length": 110, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 160, + "y": 435 + }, + { + "name": 3, + "x": 293, + "y": 143, + "timeout": -1 + }, + { + "name": 3, + "x": 34, + "y": 146, + "timeout": -1 + }, + { + "name": 81, + "x": 290, + "y": 440, + "angle": -15, + "size": 1 + }, + { + "name": 3, + "x": 160, + "y": 157, + "timeout": -1 + }, + { + "name": 54, + "x": 160, + "y": 329 + }, + { + "name": 81, + "x": 34, + "y": 436, + "angle": 15, + "size": 1 + } + ], + "levelId": "09-14", + "levelEditedAt": "2026-05-05T18:39:38.480Z", + "textCommandSolution": "cut_rope 2,3 \ncut_rope 0,1 \npop_bubble 0 when candy_y < 300", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:39:48.755Z" +} diff --git a/cutrope/source/rope-180.json b/cutrope/source/rope-180.json new file mode 100644 index 0000000000000000000000000000000000000000..536be84bbb6d614911ef195a03ffafc0ac683473 --- /dev/null +++ b/cutrope/source/rope-180.json @@ -0,0 +1,124 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 134, + "y": 226, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 76, + "y": 109 + }, + { + "name": 54, + "x": 78, + "y": 109 + }, + { + "name": 100, + "x": 25, + "y": 229, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 78, + "y": 337, + "timeout": -1 + }, + { + "name": 56, + "x": 79, + "y": 414, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 264, + "y": 415, + "group": 0, + "angle": 270 + }, + { + "name": 2, + "x": 173, + "y": 419 + }, + { + "name": 54, + "x": 78, + "y": 336 + }, + { + "name": 3, + "x": 252, + "y": 265, + "timeout": -1 + }, + { + "name": 3, + "x": 197, + "y": 98, + "timeout": -1 + }, + { + "name": 82, + "x": 292, + "y": 264, + "angle": 90, + "size": 2 + }, + { + "name": 55, + "x": 197, + "y": 267, + "angle": 0 + }, + { + "name": 54, + "x": 77, + "y": 242 + } + ], + "textCommandSolution": "pop_bubble 0 \ncut_rope 0,1\npop_bubble 2 when candy_y < 100\nactivate_pump 0 when candy_near 1170,590,50\npop_bubble 1 when candy_y < 180", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:42:13.860Z" +} diff --git a/cutrope/source/rope-181.json b/cutrope/source/rope-181.json new file mode 100644 index 0000000000000000000000000000000000000000..71baca5a80cddd80c3691db0c4ad396ef4968972 --- /dev/null +++ b/cutrope/source/rope-181.json @@ -0,0 +1,123 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 164, + "y": 275 + }, + { + "name": 100, + "x": 167, + "y": 120, + "length": 90, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 165, + "y": 341, + "length": 10, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 39, + "y": 119, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 291, + "y": 116, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 2, + "x": 77, + "y": 416 + }, + { + "name": 3, + "x": 255, + "y": 213, + "timeout": -1 + }, + { + "name": 3, + "x": 170, + "y": 51, + "timeout": -1 + }, + { + "name": 3, + "x": 84, + "y": 333, + "timeout": -1 + }, + { + "name": 100, + "x": 75, + "y": 260, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 251, + "y": 260, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + } + ], + "levelId": "02-14", + "levelEditedAt": "2026-05-05T14:09:30.458Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_y <500\ncut_rope 3,5 when candy_still for 0.3 and candy_near 1100,520,60\ncut_rope 0 when candy_near 850,550,60\ncut_rope 4 when candy_near 820,780,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:09:39.961Z" +} diff --git a/cutrope/source/rope-182.json b/cutrope/source/rope-182.json new file mode 100644 index 0000000000000000000000000000000000000000..0bae6002954e9da3f4d9c65974b47d3f5634f942 --- /dev/null +++ b/cutrope/source/rope-182.json @@ -0,0 +1,164 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 416, + "y": 199 + }, + { + "name": 100, + "x": 417, + "y": 113, + "length": 40, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 2, + "x": 122, + "y": 432 + }, + { + "name": 3, + "x": 157, + "y": 332, + "timeout": 17 + }, + { + "name": 3, + "x": 418, + "y": 64, + "timeout": 4 + }, + { + "name": 3, + "x": 252, + "y": 165, + "timeout": 9 + }, + { + "name": 54, + "x": 418, + "y": 348 + }, + { + "name": 55, + "x": 415, + "y": 442, + "angle": 270 + }, + { + "name": 100, + "x": 336, + "y": 66, + "length": 100, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 4, + "x": 464, + "y": 215, + "locale": "en", + "text": "Some stars require fast actions to be collected", + "width": 250 + }, + { + "name": 13, + "x": 473, + "y": 252, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 13, + "x": 65, + "y": 259, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 80, + "y": 213, + "locale": "ru", + "text": "Некоторые звезды пропадают если вы не достаточно быстры", + "width": 200 + } + ], + "fr": [ + { + "name": 4, + "x": 46, + "y": 213, + "locale": "fr", + "text": "Il est nécessaire d'agir rapidement pour collecter certaines étoiles", + "width": 240 + }, + { + "name": 13, + "x": 40, + "y": 256, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 60, + "y": 207, + "locale": "de", + "text": "Bei einigen Sternchen musst Du beim Einsammeln schnell sein", + "width": 250 + }, + { + "name": 13, + "x": 43, + "y": 251, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "levelId": "02-17", + "levelEditedAt": "2026-05-05T14:18:10.989Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1180,420,60\npop_bubble 0 when candy_y < 170\ncut_rope 1 when candy_x < 760", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:18:22.894Z", + "mirroredFrom": "02-17.json" +} diff --git a/cutrope/source/rope-183.json b/cutrope/source/rope-183.json new file mode 100644 index 0000000000000000000000000000000000000000..09695397f3e2a1822fd6bfa6520b7ebd58b02674 --- /dev/null +++ b/cutrope/source/rope-183.json @@ -0,0 +1,133 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 160, + "y": 115 + }, + { + "name": 100, + "x": 69, + "y": 45, + "length": 85, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 257, + "y": 45, + "length": 85, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 161, + "y": 58, + "timeout": -1 + }, + { + "name": 100, + "x": 75, + "y": 200, + "length": 40, + "wheel": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 247, + "y": 197, + "length": 40, + "wheel": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 109, + "y": 296, + "length": 40, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 218, + "y": 297, + "length": 40, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 161, + "y": 297, + "timeout": -1 + }, + { + "name": 3, + "x": 163, + "y": 193, + "timeout": -1 + }, + { + "name": 2, + "x": 160, + "y": 433 + }, + { + "name": 54, + "x": 161, + "y": 196 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 970,270,60\ncut_rope 1\ncut_rope 2 when candy_still for 0.3 and candy_near 960,230,60\ncut_rope 3\npop_bubble 0 when candy_y < 140\ncut_rope 4 when candy_still for 0.3 and candy_near 970,850,60\ncut_rope 5", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:34:12.853Z" +} diff --git a/cutrope/source/rope-184.json b/cutrope/source/rope-184.json new file mode 100644 index 0000000000000000000000000000000000000000..ea8eda9a2cb3aa656bad85def2dfc25f56f022a6 --- /dev/null +++ b/cutrope/source/rope-184.json @@ -0,0 +1,149 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 159, + "y": 239 + }, + { + "name": 52, + "x": 161, + "y": 132 + }, + { + "name": 100, + "x": 280, + "y": 82, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 31, + "y": 81, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 32, + "y": 235, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 281, + "y": 234, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 160, + "y": 187, + "timeout": -1 + }, + { + "name": 3, + "x": 63, + "y": 330, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 331, + "timeout": -1 + }, + { + "name": 56, + "x": 153, + "y": 406, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 67, + "y": 75, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 157, + "y": 74, + "group": 1, + "angle": 90 + }, + { + "name": 56, + "x": 92, + "y": 825, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": -3, + "y": 827, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 59, + "y": 405, + "group": 1, + "angle": 270 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3\ncut_rope 1 when candy_still for 0.3\ncut_rope 2,3 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:02:57.854Z", + "mirroredFrom": "00-13.json" +} diff --git a/cutrope/source/rope-185.json b/cutrope/source/rope-185.json new file mode 100644 index 0000000000000000000000000000000000000000..a9064806b9942341b7f02ff585edbc506c5d1207 --- /dev/null +++ b/cutrope/source/rope-185.json @@ -0,0 +1,82 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 218, + "y": 183 + }, + { + "name": 100, + "x": 214, + "y": 70, + "length": 80, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 82, + "x": 242, + "y": 384, + "angle": 180, + "size": 2 + }, + { + "name": 3, + "x": 196, + "y": 338, + "timeout": -1 + }, + { + "name": 3, + "x": 70, + "y": 300, + "timeout": -1 + }, + { + "name": 2, + "x": 37, + "y": 364 + }, + { + "name": 55, + "x": 145, + "y": 183, + "angle": 0 + }, + { + "name": 3, + "x": 141, + "y": 306, + "timeout": -1 + } + ], + "levelId": "06-19", + "levelEditedAt": "2026-05-05T17:34:53.600Z", + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 1080,420,60\ncut_rope 0 when candy_near 1270,340,40 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:36:01.965Z", + "mirroredFrom": "06-19.json" +} diff --git a/cutrope/source/rope-186.json b/cutrope/source/rope-186.json new file mode 100644 index 0000000000000000000000000000000000000000..fef343c291feeba917758bbe215cfb1b5417d71c --- /dev/null +++ b/cutrope/source/rope-186.json @@ -0,0 +1,134 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 160, + "y": 115 + }, + { + "name": 100, + "x": 251, + "y": 45, + "length": 85, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 63, + "y": 45, + "length": 85, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 159, + "y": 58, + "timeout": -1 + }, + { + "name": 100, + "x": 245, + "y": 200, + "length": 40, + "wheel": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 73, + "y": 197, + "length": 40, + "wheel": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 211, + "y": 296, + "length": 40, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 102, + "y": 297, + "length": 40, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 159, + "y": 297, + "timeout": -1 + }, + { + "name": 3, + "x": 157, + "y": 193, + "timeout": -1 + }, + { + "name": 2, + "x": 160, + "y": 433 + }, + { + "name": 54, + "x": 159, + "y": 196 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 950,270,60\ncut_rope 1\ncut_rope 2 when candy_still for 0.3 and candy_near 960,230,60\ncut_rope 3\npop_bubble 0 when candy_y < 140\ncut_rope 4 when candy_still for 0.3 and candy_near 950,850,60\ncut_rope 5", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:34:12.853Z", + "mirroredFrom": "01-25.json" +} diff --git a/cutrope/source/rope-187.json b/cutrope/source/rope-187.json new file mode 100644 index 0000000000000000000000000000000000000000..699fc33160a58ff4ea1f9c373e3194c8933aca33 --- /dev/null +++ b/cutrope/source/rope-187.json @@ -0,0 +1,140 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 3, + "x": 159, + "y": 371, + "timeout": -1 + }, + { + "name": 3, + "x": 157, + "y": 293, + "timeout": -1 + }, + { + "name": 2, + "x": 160, + "y": 432 + }, + { + "name": 52, + "x": 160, + "y": 217 + }, + { + "name": 100, + "x": 157, + "y": 152, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 159, + "y": 293 + }, + { + "name": 3, + "x": 159, + "y": 91, + "timeout": -1 + }, + { + "name": 4, + "x": 300, + "y": 80, + "locale": "en", + "text": "Don't let the candy leave the box", + "width": 120 + }, + { + "name": 13, + "x": 241, + "y": 65, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 20, + "y": 80, + "locale": "ru", + "text": "Не дайте леденцу вылететь за пределы коробки", + "width": 120 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 20, + "y": 80, + "locale": "fr", + "text": "Ne laissez pas le bonbon sortir de la boîte", + "width": 110 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 14, + "y": 80, + "locale": "de", + "text": "Lass den Bonbon nicht aus der Schachtel", + "width": 140 + }, + { + "name": 13, + "x": 79, + "y": 65, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 \npop_bubble 0 when candy_y < 220", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T19:20:12.068Z", + "mirroredFrom": "01-06.json" +} diff --git a/cutrope/source/rope-188.json b/cutrope/source/rope-188.json new file mode 100644 index 0000000000000000000000000000000000000000..8ee6ce3a093c2e4374ff5ec36d44edc123beaff3 --- /dev/null +++ b/cutrope/source/rope-188.json @@ -0,0 +1,105 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 441, + "y": 226 + }, + { + "name": 50, + "x": 230, + "y": 75 + }, + { + "name": 2, + "x": 335, + "y": 74 + }, + { + "name": 81, + "x": 454, + "y": 323, + "angle": 150, + "size": 1 + }, + { + "name": 81, + "x": 230, + "y": 24, + "angle": 0, + "size": 1 + }, + { + "name": 81, + "x": 447, + "y": 176, + "angle": 0, + "size": 1 + }, + { + "name": 81, + "x": 226, + "y": 320, + "angle": 210, + "size": 1 + }, + { + "name": 54, + "x": 445, + "y": 224 + }, + { + "name": 3, + "x": 335, + "y": 293, + "timeout": -1 + }, + { + "name": 3, + "x": 333, + "y": 413, + "timeout": -1 + }, + { + "name": 3, + "x": 334, + "y": 161, + "timeout": 8 + }, + { + "name": 54, + "x": 233, + "y": 72 + }, + { + "name": 54, + "x": 334, + "y": 409 + }, + { + "name": 55, + "x": 543, + "y": 245, + "angle": 180 + } + ], + "textCommandSolution": "pop_bubble 1 \npop_bubble 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:35:11.236Z", + "mirroredFrom": "09-12.json" +} diff --git a/cutrope/source/rope-189.json b/cutrope/source/rope-189.json new file mode 100644 index 0000000000000000000000000000000000000000..ef18a2b608c141fd875dd01c3e2208843ae2edb2 --- /dev/null +++ b/cutrope/source/rope-189.json @@ -0,0 +1,106 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 252, + "y": 133 + }, + { + "name": 2, + "x": 367, + "y": 41 + }, + { + "name": 81, + "x": 242, + "y": 189, + "angle": 210, + "size": 1 + }, + { + "name": 81, + "x": 449, + "y": 229, + "angle": 140, + "size": 1 + }, + { + "name": 81, + "x": 236, + "y": 310, + "angle": 210, + "size": 1 + }, + { + "name": 81, + "x": 437, + "y": 372, + "angle": 150, + "size": 1 + }, + { + "name": 81, + "x": 243, + "y": 448, + "angle": 210, + "size": 1 + }, + { + "name": 3, + "x": 237, + "y": 307, + "timeout": -1 + }, + { + "name": 100, + "x": 252, + "y": 27, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 332, + "y": 398 + }, + { + "name": 3, + "x": 436, + "y": 367, + "timeout": -1 + }, + { + "name": 3, + "x": 420, + "y": 196, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:17:13.134Z", + "mirroredFrom": "06-05.json" +} diff --git a/cutrope/source/rope-190.json b/cutrope/source/rope-190.json new file mode 100644 index 0000000000000000000000000000000000000000..8411af3dde1ee06a29a4b5198b6979bf9e888b8b --- /dev/null +++ b/cutrope/source/rope-190.json @@ -0,0 +1,101 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 84, + "y": 326 + }, + { + "name": 51, + "x": 255, + "y": 167 + }, + { + "name": 2, + "x": 164, + "y": 378 + }, + { + "name": 100, + "x": 254, + "y": 86, + "length": 50, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 80, + "y": 240, + "length": 60, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 165, + "y": 169, + "length": 60, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 78, + "y": 386 + }, + { + "name": 3, + "x": 162, + "y": 86, + "timeout": -1 + }, + { + "name": 3, + "x": 163, + "y": 260, + "timeout": -1 + }, + { + "name": 3, + "x": 104, + "y": 177, + "timeout": -1 + } + ], + "levelId": "05-13", + "levelEditedAt": "2026-05-05T16:37:51.905Z", + "textCommandSolution": "cut_rope 0,1 \npop_bubble 0 when candy_still for 0.3 \ncut_rope 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:38:05.560Z" +} diff --git a/cutrope/source/rope-191.json b/cutrope/source/rope-191.json new file mode 100644 index 0000000000000000000000000000000000000000..c5b9e0809953c09f50081f47d189f894d8159f6e --- /dev/null +++ b/cutrope/source/rope-191.json @@ -0,0 +1,148 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 250, + "y": 125 + }, + { + "name": 2, + "x": 318, + "y": 431 + }, + { + "name": 100, + "x": 249, + "y": 46, + "length": 40, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 317, + "y": 225, + "length": 70, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 4, + "x": 211, + "y": 300, + "locale": "en", + "text": "Cut the rope before the spider reaches the candy", + "width": 240 + }, + { + "name": 13, + "x": 194, + "y": 335, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 3, + "x": 268, + "y": 223, + "timeout": -1 + }, + { + "name": 3, + "x": 410, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 317, + "y": 377, + "timeout": -1 + } + ], + "ru": [ + { + "name": 4, + "x": 48, + "y": 271, + "locale": "ru", + "text": "Перережьте веревку прежде чем паучок доберется до леденца", + "width": 200 + }, + { + "name": 13, + "x": 35, + "y": 317, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 56, + "y": 299, + "locale": "fr", + "text": "Coupe la corde avant que l'araignée n'atteigne le bonbon", + "width": 240 + }, + { + "name": 13, + "x": 39, + "y": 334, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 79, + "y": 287, + "locale": "de", + "text": "Schneide das Seil durch, bevor die Spinne am Bonbon ist", + "width": 170 + }, + { + "name": 13, + "x": 150, + "y": 276, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0 \ncut_rope 1 when candy_near 1070,780,60 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:52:31.316Z" +} diff --git a/cutrope/source/rope-192.json b/cutrope/source/rope-192.json new file mode 100644 index 0000000000000000000000000000000000000000..baf1e1a852dc2e0825e401de0a52c8d86d41c6ba --- /dev/null +++ b/cutrope/source/rope-192.json @@ -0,0 +1,78 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 53, + "x": 262, + "y": 210 + }, + { + "name": 2, + "x": 77, + "y": 293 + }, + { + "name": 82, + "x": 160, + "y": 95, + "angle": 180, + "size": 2 + }, + { + "name": 82, + "x": 161, + "y": 366, + "angle": 180, + "size": 2 + }, + { + "name": 3, + "x": 160, + "y": 186, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 209, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 209, + "timeout": -1 + }, + { + "name": 55, + "x": 262, + "y": 313, + "angle": 180 + }, + { + "name": 52, + "x": 165, + "y": 299 + } + ], + "levelId": "09-06", + "levelEditedAt": "2026-05-05T18:24:38.008Z", + "textCommandSolution": "toggle_gravity when candy_y > 740\ntoggle_gravity when candy_y < 410\nactivate_pump 0 when candy_y > 660", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:25:25.062Z", + "mirroredFrom": "09-06.json" +} diff --git a/cutrope/source/rope-193.json b/cutrope/source/rope-193.json new file mode 100644 index 0000000000000000000000000000000000000000..83d3b690ed41d35ac7289fd00afdf9a6e8dda6a4 --- /dev/null +++ b/cutrope/source/rope-193.json @@ -0,0 +1,131 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 215, + "y": 337 + }, + { + "name": 54, + "x": 223, + "y": 335 + }, + { + "name": 100, + "x": 222, + "y": 439, + "length": 75, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 50, + "x": 99, + "y": 338 + }, + { + "name": 54, + "x": 102, + "y": 334 + }, + { + "name": 100, + "x": 102, + "y": 439, + "length": 75, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 160, + "y": 298, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 161, + "y": 193, + "length": 100, + "wheel": false, + "radius": 40, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 158, + "y": 56 + }, + { + "name": 55, + "x": 28, + "y": 327, + "angle": 0 + }, + { + "name": 3, + "x": 156, + "y": 255, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 345, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 128, + "timeout": -1 + }, + { + "name": 55, + "x": 293, + "y": 329, + "angle": 180 + } + ], + "levelId": "05-21", + "levelEditedAt": "2026-05-05T16:44:18.975Z", + "textCommandSolution": "activate_pump 0\nactivate_pump 1\ncut_rope 0 when candy_still for 0.3 and candy_near 960,780,60\ncut_rope 1\ncut_rope 2 when candy_still for 0.3 and candy_near 960,470,60\ncut_rope 3 when candy_still for 0.3 and candy_near 960,230,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:45:48.752Z", + "mirroredFrom": "05-21.json" +} diff --git a/cutrope/source/rope-194.json b/cutrope/source/rope-194.json new file mode 100644 index 0000000000000000000000000000000000000000..5737a90244946625d9f6056b87f99ca3fe3da0ae --- /dev/null +++ b/cutrope/source/rope-194.json @@ -0,0 +1,72 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 161, + "y": 42 + }, + { + "name": 100, + "x": 160, + "y": 470, + "length": 50, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 158, + "y": 394 + }, + { + "name": 54, + "x": 159, + "y": 392 + }, + { + "name": 3, + "x": 150, + "y": 255, + "timeout": -1 + }, + { + "name": 3, + "x": 188, + "y": 224, + "timeout": -1 + }, + { + "name": 3, + "x": 145, + "y": 206, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:24:02.386Z", + "mirroredFrom": "09-04.json" +} diff --git a/cutrope/source/rope-195.json b/cutrope/source/rope-195.json new file mode 100644 index 0000000000000000000000000000000000000000..0f5c578a790392261b89b1eba7b7fdd2086762a9 --- /dev/null +++ b/cutrope/source/rope-195.json @@ -0,0 +1,104 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 199, + "y": 226 + }, + { + "name": 51, + "x": 410, + "y": 75 + }, + { + "name": 2, + "x": 305, + "y": 74 + }, + { + "name": 81, + "x": 186, + "y": 323, + "angle": 30, + "size": 1 + }, + { + "name": 81, + "x": 410, + "y": 24, + "angle": 180, + "size": 1 + }, + { + "name": 81, + "x": 193, + "y": 176, + "angle": 180, + "size": 1 + }, + { + "name": 81, + "x": 414, + "y": 320, + "angle": -30, + "size": 1 + }, + { + "name": 54, + "x": 195, + "y": 224 + }, + { + "name": 3, + "x": 305, + "y": 293, + "timeout": -1 + }, + { + "name": 3, + "x": 307, + "y": 413, + "timeout": -1 + }, + { + "name": 3, + "x": 306, + "y": 161, + "timeout": 8 + }, + { + "name": 54, + "x": 407, + "y": 72 + }, + { + "name": 54, + "x": 306, + "y": 409 + }, + { + "name": 55, + "x": 97, + "y": 245, + "angle": 0 + } + ], + "textCommandSolution": "pop_bubble 1 \npop_bubble 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:35:11.236Z" +} diff --git a/cutrope/source/rope-196.json b/cutrope/source/rope-196.json new file mode 100644 index 0000000000000000000000000000000000000000..80dee6b26e8f65f7010310e92cc45eda1ceacad2 --- /dev/null +++ b/cutrope/source/rope-196.json @@ -0,0 +1,96 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 238, + "y": 351 + }, + { + "name": 2, + "x": 406, + "y": 61 + }, + { + "name": 54, + "x": 393, + "y": 410 + }, + { + "name": 100, + "x": 310, + "y": 128, + "length": 210, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 416, + "y": 126, + "length": 275, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 315, + "y": 418 + }, + { + "name": 54, + "x": 237, + "y": 412 + }, + { + "name": 3, + "x": 236, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 405, + "y": 193, + "timeout": -1 + }, + { + "name": 3, + "x": 314, + "y": 418, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 2 when candy_y < 400", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:12:36.555Z", + "mirroredFrom": "01-13.json" +} diff --git a/lamp/data/lamp-000.json b/lamp/data/lamp-000.json new file mode 100644 index 0000000000000000000000000000000000000000..580a131ad17c53ff5b1ba65411096d9decf0fb99 --- /dev/null +++ b/lamp/data/lamp-000.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-000", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -4.12, + "y": -52.09 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -60 + }, + { + "joint": 2, + "angle": -135 + }, + { + "joint": 3, + "angle": 140 + }, + { + "joint": 4, + "angle": -15 + }, + { + "joint": 5, + "angle": 165 + } + ] + }, + "legacy_answer": [ + -60, + -135, + 140, + -15, + 165 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-000\n- segment_count: 5\n- arm_base: (40.0, 40.0)\n- target: (-4.12, -52.09)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=90\n- joint 4: length=90\n- joint 5: length=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=80, width=80, height=80\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=40\n part 2: x=120, y=120, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-001.json b/lamp/data/lamp-001.json new file mode 100644 index 0000000000000000000000000000000000000000..8165a33ded3f4441ba6843dfd362e352daf1a076 --- /dev/null +++ b/lamp/data/lamp-001.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-001", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -36.41, + "y": 62.5 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 180 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": -135 + } + ] + }, + "legacy_answer": [ + 180, + 40, + -135 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-001\n- segment_count: 3\n- arm_base: (40.0, 40.0)\n- target: (-36.41, 62.5)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=80, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=40\n part 2: x=40, y=160, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-002.json b/lamp/data/lamp-002.json new file mode 100644 index 0000000000000000000000000000000000000000..2f61adce0ac8acfaa0a5695dd388228ddcacc1e8 --- /dev/null +++ b/lamp/data/lamp-002.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-002", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 4.48, + "y": 285.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 120 + }, + { + "joint": 3, + "angle": 70 + } + ] + }, + "legacy_answer": [ + 110, + 120, + 70 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-002\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (4.48, 285.61)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=110\n- joint 3: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=160, width=80, height=40\n part 2: x=80, y=200, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-003.json b/lamp/data/lamp-003.json new file mode 100644 index 0000000000000000000000000000000000000000..f1087ea068349774646566c4d2085f49526f9baa --- /dev/null +++ b/lamp/data/lamp-003.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-003", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 179.33, + "y": 55.86 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": -35 + }, + { + "joint": 3, + "angle": -180 + }, + { + "joint": 4, + "angle": -55 + }, + { + "joint": 5, + "angle": 35 + } + ] + }, + "legacy_answer": [ + 75, + -35, + -180, + -55, + 35 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-003\n- segment_count: 5\n- arm_base: (40.0, 80.0)\n- target: (179.33, 55.86)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=110\n- joint 3: length=50\n- joint 4: length=70\n- joint 5: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=0, width=120, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-004.json b/lamp/data/lamp-004.json new file mode 100644 index 0000000000000000000000000000000000000000..85c18056985f05f4ece201c800b424e6441c5bab --- /dev/null +++ b/lamp/data/lamp-004.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-004", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 149.53, + "y": -12.7 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -100 + }, + { + "joint": 2, + "angle": 10 + } + ] + }, + "legacy_answer": [ + -100, + 10 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-004\n- segment_count: 2\n- arm_base: (80.0, 80.0)\n- target: (149.53, -12.7)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-005.json b/lamp/data/lamp-005.json new file mode 100644 index 0000000000000000000000000000000000000000..d487bb3521615a1a7749df85677a388c4682fd59 --- /dev/null +++ b/lamp/data/lamp-005.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-005", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 27.14, + "y": -6.49 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -155 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": 45 + }, + { + "joint": 4, + "angle": -105 + } + ] + }, + "legacy_answer": [ + -155, + -95, + 45, + -105 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-005\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (27.14, -6.49)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=70\n- joint 4: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=40\n part 2: x=80, y=40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-006.json b/lamp/data/lamp-006.json new file mode 100644 index 0000000000000000000000000000000000000000..c640b755d9853f552a42cf0b9ddf2a5dafe09b4f --- /dev/null +++ b/lamp/data/lamp-006.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-006", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 20.48, + "y": -64.27 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -145 + }, + { + "joint": 2, + "angle": -110 + }, + { + "joint": 3, + "angle": 40 + }, + { + "joint": 4, + "angle": -175 + } + ] + }, + "legacy_answer": [ + -145, + -110, + 40, + -175 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-006\n- segment_count: 4\n- arm_base: (120.0, 0.0)\n- target: (20.48, -64.27)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=40, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-007.json b/lamp/data/lamp-007.json new file mode 100644 index 0000000000000000000000000000000000000000..fdfffbe4eb57605b66bdce2b95d047eb476ad764 --- /dev/null +++ b/lamp/data/lamp-007.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-007", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": 273.19, + "y": -85.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 0, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 15 + }, + { + "joint": 2, + "angle": -15 + } + ] + }, + "legacy_answer": [ + 15, + -15 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-007\n- segment_count: 2\n- arm_base: (80.0, -80.0)\n- target: (273.19, -85.18)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=160, y=-40, width=80, height=40\n part 2: x=200, y=0, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=-40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-008.json b/lamp/data/lamp-008.json new file mode 100644 index 0000000000000000000000000000000000000000..9c0cedfcfdbf2c60509e365e34cb59b3162b44ac --- /dev/null +++ b/lamp/data/lamp-008.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-008", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 67.6, + "y": 47.31 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 120 + }, + { + "joint": 2, + "angle": 160 + }, + { + "joint": 3, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 120, + 160, + 5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-008\n- segment_count: 3\n- arm_base: (40.0, -40.0)\n- target: (67.6, 47.31)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- joint 3: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-009.json b/lamp/data/lamp-009.json new file mode 100644 index 0000000000000000000000000000000000000000..30cc2b4de1a5ffc4e85c8e754b87be72df5511b7 --- /dev/null +++ b/lamp/data/lamp-009.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-009", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -80 + }, + "target": { + "x": 214.55, + "y": -9.86 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -130 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": 40 + }, + { + "joint": 4, + "angle": 25 + }, + { + "joint": 5, + "angle": 80 + } + ] + }, + "legacy_answer": [ + -130, + -95, + 40, + 25, + 80 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-009\n- segment_count: 5\n- arm_base: (120.0, -80.0)\n- target: (214.55, -9.86)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=50\n- joint 3: length=90\n- joint 4: length=90\n- joint 5: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=120, y=-40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-010.json b/lamp/data/lamp-010.json new file mode 100644 index 0000000000000000000000000000000000000000..c9451e09fa4442f4c31562528f9ef3255600b417 --- /dev/null +++ b/lamp/data/lamp-010.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-010", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 59.93, + "y": 226.73 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 45, + 130 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-010\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (59.93, 226.73)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=160, width=80, height=40\n part 2: x=0, y=160, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-011.json b/lamp/data/lamp-011.json new file mode 100644 index 0000000000000000000000000000000000000000..e059014cc8895f25358678c67876e61a81076b37 --- /dev/null +++ b/lamp/data/lamp-011.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-011", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 32.19, + "y": -19.05 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 155 + }, + { + "joint": 2, + "angle": -80 + } + ] + }, + "legacy_answer": [ + 155, + -80 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-011\n- segment_count: 2\n- arm_base: (80.0, 40.0)\n- target: (32.19, -19.05)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=80, width=80, height=40\n part 2: x=0, y=80, width=40, height=120\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-012.json b/lamp/data/lamp-012.json new file mode 100644 index 0000000000000000000000000000000000000000..5acf40eed7bb1c52f1af094e8e3e806fa11480cc --- /dev/null +++ b/lamp/data/lamp-012.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-012", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": -57.73, + "y": 56.34 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 80 + }, + { + "joint": 2, + "angle": 165 + }, + { + "joint": 3, + "angle": -130 + }, + { + "joint": 4, + "angle": -140 + }, + { + "joint": 5, + "angle": 55 + } + ] + }, + "legacy_answer": [ + 80, + 165, + -130, + -140, + 55 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-012\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (-57.73, 56.34)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=50\n- joint 3: length=90\n- joint 4: length=90\n- joint 5: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=-40, width=80, height=40\n part 2: x=0, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-013.json b/lamp/data/lamp-013.json new file mode 100644 index 0000000000000000000000000000000000000000..2a1d2ffa909b0a501a19e996ae166ba7d428d6ab --- /dev/null +++ b/lamp/data/lamp-013.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-013", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -102.61, + "y": 8.47 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 160 + }, + { + "joint": 2, + "angle": -100 + } + ] + }, + "legacy_answer": [ + 160, + -100 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-013\n- segment_count: 2\n- arm_base: (-40.0, 80.0)\n- target: (-102.61, 8.47)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-80, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-014.json b/lamp/data/lamp-014.json new file mode 100644 index 0000000000000000000000000000000000000000..f4d04ad6755d98ee93a01899affaab7cc189b47d --- /dev/null +++ b/lamp/data/lamp-014.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-014", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 237.25, + "y": -21.14 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -100 + }, + { + "joint": 2, + "angle": -105 + }, + { + "joint": 3, + "angle": 30 + }, + { + "joint": 4, + "angle": -5 + } + ] + }, + "legacy_answer": [ + -100, + -105, + 30, + -5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-014\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (237.25, -21.14)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=90\n- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-015.json b/lamp/data/lamp-015.json new file mode 100644 index 0000000000000000000000000000000000000000..189b1d381a8e70aaa3f87fa55e8c08cc31ab5ef0 --- /dev/null +++ b/lamp/data/lamp-015.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-015", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -42.25, + "y": 23.22 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -105 + }, + { + "joint": 2, + "angle": -155 + }, + { + "joint": 3, + "angle": -175 + }, + { + "joint": 4, + "angle": -40 + }, + { + "joint": 5, + "angle": 30 + } + ] + }, + "legacy_answer": [ + -105, + -155, + -175, + -40, + 30 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-015\n- segment_count: 5\n- arm_base: (0.0, 120.0)\n- target: (-42.25, 23.22)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=70\n- joint 5: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-40, y=-40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-016.json b/lamp/data/lamp-016.json new file mode 100644 index 0000000000000000000000000000000000000000..36508e3411b5da1b8c95954d25e88e28430251c1 --- /dev/null +++ b/lamp/data/lamp-016.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-016", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 219.46, + "y": 62.11 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -10 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": -25 + }, + { + "joint": 4, + "angle": 165 + }, + { + "joint": 5, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -10, + 75, + -25, + 165, + -20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-016\n- segment_count: 5\n- arm_base: (80.0, 0.0)\n- target: (219.46, 62.11)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=50\n- joint 4: length=90\n- joint 5: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=40, y=40, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=120, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-017.json b/lamp/data/lamp-017.json new file mode 100644 index 0000000000000000000000000000000000000000..a34e458a996946d7ec08e3a0f247cf58b9d299de --- /dev/null +++ b/lamp/data/lamp-017.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-017", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 36.98, + "y": 11.98 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -55 + }, + { + "joint": 2, + "angle": 15 + } + ] + }, + "legacy_answer": [ + -55, + 15 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-017\n- segment_count: 2\n- arm_base: (-40.0, 40.0)\n- target: (36.98, 11.98)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=80, width=80, height=40\n part 2: x=0, y=80, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-018.json b/lamp/data/lamp-018.json new file mode 100644 index 0000000000000000000000000000000000000000..3cc61fd861b54db8fec777e57b9c641be0d0b998 --- /dev/null +++ b/lamp/data/lamp-018.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-018", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": -98.66, + "y": -11.96 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -140 + }, + { + "joint": 2, + "angle": 125 + }, + { + "joint": 3, + "angle": 125 + }, + { + "joint": 4, + "angle": -60 + } + ] + }, + "legacy_answer": [ + -140, + 125, + 125, + -60 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-018\n- segment_count: 4\n- arm_base: (40.0, -40.0)\n- target: (-98.66, -11.96)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=110\n- joint 4: length=90\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-019.json b/lamp/data/lamp-019.json new file mode 100644 index 0000000000000000000000000000000000000000..4fb4e8aee39fbbb2a817c7ced77270449b40e277 --- /dev/null +++ b/lamp/data/lamp-019.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-019", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 155, + "y": 53.62 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 50 + }, + { + "joint": 2, + "angle": 0 + } + ] + }, + "legacy_answer": [ + 50, + 0 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-019\n- segment_count: 2\n- arm_base: (0.0, 0.0)\n- target: (155.0, 53.62)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=80, width=80, height=40\n part 2: x=40, y=120, width=80, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=120, y=80, width=80, height=40\n part 2: x=120, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-020.json b/lamp/data/lamp-020.json new file mode 100644 index 0000000000000000000000000000000000000000..e23c699e44c0d473981f1d23dfba4083d924e863 --- /dev/null +++ b/lamp/data/lamp-020.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-020", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 157.11, + "y": -31.38 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 15 + }, + { + "joint": 2, + "angle": -45 + } + ] + }, + "legacy_answer": [ + 15, + -45 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-020\n- segment_count: 2\n- arm_base: (40.0, 0.0)\n- target: (157.11, -31.38)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=40, width=120, height=40\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-021.json b/lamp/data/lamp-021.json new file mode 100644 index 0000000000000000000000000000000000000000..efd4aa01914a7f9b2c2b2d833df5e8c45dddd72c --- /dev/null +++ b/lamp/data/lamp-021.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-021", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 132.41, + "y": 123.75 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -80 + }, + { + "joint": 2, + "angle": 155 + }, + { + "joint": 3, + "angle": 75 + }, + { + "joint": 4, + "angle": 90 + }, + { + "joint": 5, + "angle": -40 + } + ] + }, + "legacy_answer": [ + -80, + 155, + 75, + 90, + -40 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-021\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (132.41, 123.75)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- joint 3: length=110\n- joint 4: length=50\n- joint 5: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=0, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=160, y=120, width=80, height=40\n part 2: x=200, y=160, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-022.json b/lamp/data/lamp-022.json new file mode 100644 index 0000000000000000000000000000000000000000..0810a7fa73f32f2d66cbf560d3adc4cf0d921706 --- /dev/null +++ b/lamp/data/lamp-022.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-022", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 56.39, + "y": 203.49 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -115 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": 30 + }, + { + "joint": 4, + "angle": 150 + } + ] + }, + "legacy_answer": [ + -115, + 75, + 30, + 150 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-022\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (56.39, 203.49)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=90\n- joint 3: length=90\n- joint 4: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=40\n part 2: x=0, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-023.json b/lamp/data/lamp-023.json new file mode 100644 index 0000000000000000000000000000000000000000..b52036ac6e34e45bb690d44d9f678c626d4e3399 --- /dev/null +++ b/lamp/data/lamp-023.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-023", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 69.28, + "y": 182.42 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -70 + }, + { + "joint": 2, + "angle": 160 + }, + { + "joint": 3, + "angle": 105 + }, + { + "joint": 4, + "angle": 95 + }, + { + "joint": 5, + "angle": 70 + } + ] + }, + "legacy_answer": [ + -70, + 160, + 105, + 95, + 70 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-023\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (69.28, 182.42)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=50\n- joint 5: length=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=80, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-024.json b/lamp/data/lamp-024.json new file mode 100644 index 0000000000000000000000000000000000000000..c7d3a8d4e23351723ab8c8ceeab183828b46b9bc --- /dev/null +++ b/lamp/data/lamp-024.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-024", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 97.12, + "y": 59.27 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": 130 + }, + { + "joint": 3, + "angle": 160 + }, + { + "joint": 4, + "angle": -100 + } + ] + }, + "legacy_answer": [ + 45, + 130, + 160, + -100 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-024\n- segment_count: 4\n- arm_base: (120.0, -40.0)\n- target: (97.12, 59.27)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=-40, width=80, height=40\n part 2: x=40, y=0, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-025.json b/lamp/data/lamp-025.json new file mode 100644 index 0000000000000000000000000000000000000000..0230ba2300349f661b4942eaf2053e39213ee77c --- /dev/null +++ b/lamp/data/lamp-025.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-025", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 244.61, + "y": 224.15 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 200, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 200, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": 35 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": 35 + } + ] + }, + "legacy_answer": [ + -35, + 35, + 25, + 35 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-025\n- segment_count: 4\n- arm_base: (-40.0, 120.0)\n- target: (244.61, 224.15)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=110\n- joint 3: length=70\n- joint 4: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=160, width=80, height=40\n part 2: x=80, y=200, width=80, height=40\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=160, y=200, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-026.json b/lamp/data/lamp-026.json new file mode 100644 index 0000000000000000000000000000000000000000..3e91b8755313468980dc7f4e99d9d90f012f56b6 --- /dev/null +++ b/lamp/data/lamp-026.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-026", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -96.03, + "y": 154.97 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 65 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": -85 + }, + { + "joint": 4, + "angle": 170 + }, + { + "joint": 5, + "angle": -20 + } + ] + }, + "legacy_answer": [ + 65, + 150, + -85, + 170, + -20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-026\n- segment_count: 5\n- arm_base: (-40.0, 80.0)\n- target: (-96.03, 154.97)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=50\n- joint 4: length=70\n- joint 5: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=120, width=40, height=120\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=-80, y=-40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-027.json b/lamp/data/lamp-027.json new file mode 100644 index 0000000000000000000000000000000000000000..aa46863b5ad0b692c8ea1cce9f45729012255136 --- /dev/null +++ b/lamp/data/lamp-027.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-027", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": -83.59, + "y": 190.87 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 175 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": 90 + }, + { + "joint": 4, + "angle": 70 + }, + { + "joint": 5, + "angle": -65 + } + ] + }, + "legacy_answer": [ + 175, + 105, + 90, + 70, + -65 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-027\n- segment_count: 5\n- arm_base: (-40.0, 0.0)\n- target: (-83.59, 190.87)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=110\n- joint 5: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-80, y=40, width=80, height=80\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-028.json b/lamp/data/lamp-028.json new file mode 100644 index 0000000000000000000000000000000000000000..72845e31f95d4314a4217758cb5dc34a31c24a84 --- /dev/null +++ b/lamp/data/lamp-028.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-028", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -17.45, + "y": 227.88 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 50 + }, + { + "joint": 2, + "angle": 95 + } + ] + }, + "legacy_answer": [ + 50, + 95 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-028\n- segment_count: 2\n- arm_base: (-40.0, 80.0)\n- target: (-17.45, 227.88)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=40\n part 2: x=40, y=160, width=80, height=40\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-029.json b/lamp/data/lamp-029.json new file mode 100644 index 0000000000000000000000000000000000000000..f55457372ba1473f30cbd984eadb076ebd3ab0ea --- /dev/null +++ b/lamp/data/lamp-029.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-029", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 151.74, + "y": 122.52 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 15 + }, + { + "joint": 2, + "angle": 25 + } + ] + }, + "legacy_answer": [ + 15, + 25 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-029\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (151.74, 122.52)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=40\n part 2: x=40, y=160, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-030.json b/lamp/data/lamp-030.json new file mode 100644 index 0000000000000000000000000000000000000000..b7016c55a3c347b0f66e17403ea6fdee76af1b46 --- /dev/null +++ b/lamp/data/lamp-030.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-030", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 182.54, + "y": 79.08 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 125 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -110 + } + ] + }, + "legacy_answer": [ + 125, + 40, + 20, + -110 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-030\n- segment_count: 4\n- arm_base: (80.0, 40.0)\n- target: (182.54, 79.08)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=90\n- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=-40, width=120, height=40\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-031.json b/lamp/data/lamp-031.json new file mode 100644 index 0000000000000000000000000000000000000000..3b81f9214f959c15d05a71150b7750dfc0ec85a4 --- /dev/null +++ b/lamp/data/lamp-031.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-031", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -74.33, + "y": -5.38 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -45 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": -50 + }, + { + "joint": 4, + "angle": -125 + }, + { + "joint": 5, + "angle": 95 + } + ] + }, + "legacy_answer": [ + -45, + -165, + -50, + -125, + 95 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-031\n- segment_count: 5\n- arm_base: (-40.0, 80.0)\n- target: (-74.33, -5.38)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=70\n- joint 4: length=90\n- joint 5: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=120, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=0, y=-40, width=80, height=40\n part 2: x=40, y=0, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-032.json b/lamp/data/lamp-032.json new file mode 100644 index 0000000000000000000000000000000000000000..717bfade56a9e59a4b582951fe1f945db6754043 --- /dev/null +++ b/lamp/data/lamp-032.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-032", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 55.46, + "y": 213.94 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 80 + } + ] + }, + "legacy_answer": [ + 30, + 80 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-032\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (55.46, 213.94)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-40, y=160, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-033.json b/lamp/data/lamp-033.json new file mode 100644 index 0000000000000000000000000000000000000000..1914fe5cfe448136ad8d37467627d81b7e97e8a3 --- /dev/null +++ b/lamp/data/lamp-033.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-033", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 100.04, + "y": -41.2 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 50 + }, + { + "joint": 3, + "angle": -145 + }, + { + "joint": 4, + "angle": -105 + } + ] + }, + "legacy_answer": [ + -40, + 50, + -145, + -105 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-033\n- segment_count: 4\n- arm_base: (40.0, 40.0)\n- target: (100.04, -41.2)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=-80, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-034.json b/lamp/data/lamp-034.json new file mode 100644 index 0000000000000000000000000000000000000000..f29a34cb19726db3760f48a131f93217a08a371f --- /dev/null +++ b/lamp/data/lamp-034.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-034", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 58.47, + "y": 215.04 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 95 + }, + { + "joint": 2, + "angle": 60 + }, + { + "joint": 3, + "angle": 145 + }, + { + "joint": 4, + "angle": -75 + } + ] + }, + "legacy_answer": [ + 95, + 60, + 145, + -75 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-034\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (58.47, 215.04)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=90\n- joint 4: length=90\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=120, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=160, width=80, height=40\n part 2: x=120, y=200, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-035.json b/lamp/data/lamp-035.json new file mode 100644 index 0000000000000000000000000000000000000000..09838e0f01f88206ed9c73d98bd32f738da3f6fc --- /dev/null +++ b/lamp/data/lamp-035.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-035", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": 93.05, + "y": -2.14 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": -25 + }, + { + "joint": 3, + "angle": 100 + }, + { + "joint": 4, + "angle": -30 + }, + { + "joint": 5, + "angle": 10 + } + ] + }, + "legacy_answer": [ + -160, + -25, + 100, + -30, + 10 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-035\n- segment_count: 5\n- arm_base: (-40.0, 0.0)\n- target: (93.05, -2.14)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=50\n- joint 3: length=70\n- joint 4: length=90\n- joint 5: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=40, width=80, height=40\n part 2: x=-40, y=40, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=80, y=80, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-036.json b/lamp/data/lamp-036.json new file mode 100644 index 0000000000000000000000000000000000000000..f32f1a19e6dcb508d8afdc0427a8a6de522572d3 --- /dev/null +++ b/lamp/data/lamp-036.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-036", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 120 + }, + "target": { + "x": -42.88, + "y": 57.02 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": -80, + "y": 160, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -125 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": -115 + } + ] + }, + "legacy_answer": [ + -125, + 15, + -115 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-036\n- segment_count: 3\n- arm_base: (-80.0, 120.0)\n- target: (-42.88, 57.02)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- joint 3: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-80, y=160, width=80, height=40\n part 2: x=-80, y=160, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=-40, y=0, width=80, height=40\n part 2: x=0, y=40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-037.json b/lamp/data/lamp-037.json new file mode 100644 index 0000000000000000000000000000000000000000..3675aec493d5c07efcac52fe3a4c7c1313e2118c --- /dev/null +++ b/lamp/data/lamp-037.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-037", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": -52.05, + "y": -36.66 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 125 + }, + { + "joint": 2, + "angle": -160 + } + ] + }, + "legacy_answer": [ + 125, + -160 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-037\n- segment_count: 2\n- arm_base: (80.0, -40.0)\n- target: (-52.05, -36.66)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-40, y=0, width=80, height=80\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-038.json b/lamp/data/lamp-038.json new file mode 100644 index 0000000000000000000000000000000000000000..bdc89f6a9ead3e3d07543b070a565b34da959455 --- /dev/null +++ b/lamp/data/lamp-038.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-038", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": -32.06, + "y": -50.54 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -70 + }, + { + "joint": 2, + "angle": -130 + }, + { + "joint": 3, + "angle": 130 + } + ] + }, + "legacy_answer": [ + -70, + -130, + 130 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-038\n- segment_count: 3\n- arm_base: (40.0, 80.0)\n- target: (-32.06, -50.54)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=40\n part 2: x=40, y=160, width=80, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=80, y=-40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-039.json b/lamp/data/lamp-039.json new file mode 100644 index 0000000000000000000000000000000000000000..c255ea5fc245963ba1551878ad0c229253425e6f --- /dev/null +++ b/lamp/data/lamp-039.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-039", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": -18.87, + "y": 38.42 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 160, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 15 + }, + { + "joint": 2, + "angle": -115 + } + ] + }, + "legacy_answer": [ + 15, + -115 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-039\n- segment_count: 2\n- arm_base: (-40.0, 120.0)\n- target: (-18.87, 38.42)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=160, width=80, height=40\n part 2: x=-40, y=160, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=0, y=0, width=80, height=40\n part 2: x=40, y=40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-040.json b/lamp/data/lamp-040.json new file mode 100644 index 0000000000000000000000000000000000000000..23791c0b5ac0d1fa2f7b10fb32f85b532da63859 --- /dev/null +++ b/lamp/data/lamp-040.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-040", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 84.16, + "y": 24.72 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 90 + }, + { + "joint": 2, + "angle": -90 + }, + { + "joint": 3, + "angle": -105 + }, + { + "joint": 4, + "angle": -70 + } + ] + }, + "legacy_answer": [ + 90, + -90, + -105, + -70 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-040\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (84.16, 24.72)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-041.json b/lamp/data/lamp-041.json new file mode 100644 index 0000000000000000000000000000000000000000..953ebf88b2eae2be81352d2072308f3f1b91b640 --- /dev/null +++ b/lamp/data/lamp-041.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-041", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 237.71, + "y": 21.75 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -20 + }, + { + "joint": 2, + "angle": 45 + }, + { + "joint": 3, + "angle": -50 + } + ] + }, + "legacy_answer": [ + -20, + 45, + -50 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-041\n- segment_count: 3\n- arm_base: (0.0, 80.0)\n- target: (237.71, 21.75)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=120, y=-40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-042.json b/lamp/data/lamp-042.json new file mode 100644 index 0000000000000000000000000000000000000000..1a16afee7c1e38f146db9ff6bc3aa3ce0acbb3b5 --- /dev/null +++ b/lamp/data/lamp-042.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-042", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 202.78, + "y": 65.72 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -90 + }, + { + "joint": 2, + "angle": 45 + }, + { + "joint": 3, + "angle": 60 + } + ] + }, + "legacy_answer": [ + -90, + 45, + 60 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-042\n- segment_count: 3\n- arm_base: (80.0, 0.0)\n- target: (202.78, 65.72)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-043.json b/lamp/data/lamp-043.json new file mode 100644 index 0000000000000000000000000000000000000000..cb9747afb115f464a542225381b1328ca06a4a26 --- /dev/null +++ b/lamp/data/lamp-043.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-043", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 18.79, + "y": 93.76 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 130 + }, + { + "joint": 2, + "angle": 45 + } + ] + }, + "legacy_answer": [ + 130, + 45 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-043\n- segment_count: 2\n- arm_base: (40.0, -40.0)\n- target: (18.79, 93.76)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=80\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=40, y=80, width=80, height=40\n part 2: x=80, y=120, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-044.json b/lamp/data/lamp-044.json new file mode 100644 index 0000000000000000000000000000000000000000..d266809b16721838594a26c2ea4dcb6e21a9bbe5 --- /dev/null +++ b/lamp/data/lamp-044.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-044", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": -68.6, + "y": 87.83 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -90 + }, + { + "joint": 2, + "angle": 100 + }, + { + "joint": 3, + "angle": 135 + } + ] + }, + "legacy_answer": [ + -90, + 100, + 135 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-044\n- segment_count: 3\n- arm_base: (0.0, 40.0)\n- target: (-68.6, 87.83)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=110\n- joint 3: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=80, width=80, height=40\n part 2: x=-40, y=80, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-045.json b/lamp/data/lamp-045.json new file mode 100644 index 0000000000000000000000000000000000000000..9da3cf70faf88e46a2135980c614e152baec9952 --- /dev/null +++ b/lamp/data/lamp-045.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-045", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 40 + }, + "target": { + "x": -14.99, + "y": 95.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": -40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": -5 + } + ] + }, + "legacy_answer": [ + 110, + 20, + -165, + -5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-045\n- segment_count: 4\n- arm_base: (-80.0, 40.0)\n- target: (-14.99, 95.18)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- joint 3: length=70\n- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-80, y=-40, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=120, width=80, height=40\n part 2: x=-40, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-046.json b/lamp/data/lamp-046.json new file mode 100644 index 0000000000000000000000000000000000000000..775c3d559e4e1e5b39f9b676ae692a6adeec28e1 --- /dev/null +++ b/lamp/data/lamp-046.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-046", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 1.25, + "y": -53.49 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -80, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 175 + }, + { + "joint": 2, + "angle": -140 + } + ] + }, + "legacy_answer": [ + 175, + -140 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-046\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (1.25, -53.49)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=-80, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=0, width=80, height=40\n part 2: x=-40, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-047.json b/lamp/data/lamp-047.json new file mode 100644 index 0000000000000000000000000000000000000000..bf892c0776919f55e2a4f8c96914962df022e192 --- /dev/null +++ b/lamp/data/lamp-047.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-047", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": -70.55, + "y": 143.89 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -175 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": 140 + }, + { + "joint": 4, + "angle": 45 + }, + { + "joint": 5, + "angle": 175 + } + ] + }, + "legacy_answer": [ + -175, + 90, + 140, + 45, + 175 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-047\n- segment_count: 5\n- arm_base: (80.0, -80.0)\n- target: (-70.55, 143.89)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=90\n- joint 4: length=110\n- joint 5: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=-40, width=80, height=40\n part 2: x=40, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-048.json b/lamp/data/lamp-048.json new file mode 100644 index 0000000000000000000000000000000000000000..83c67c29c3c5e149c4098c65201816aeb9ba455b --- /dev/null +++ b/lamp/data/lamp-048.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-048", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 108.77, + "y": -117.06 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -105 + }, + { + "joint": 2, + "angle": -55 + }, + { + "joint": 3, + "angle": 15 + }, + { + "joint": 4, + "angle": -115 + } + ] + }, + "legacy_answer": [ + -105, + -55, + 15, + -115 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-048\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (108.77, -117.06)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=90\n- joint 4: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=40\n part 2: x=80, y=40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-049.json b/lamp/data/lamp-049.json new file mode 100644 index 0000000000000000000000000000000000000000..d47ca5f2121511dc3a555861a451aac3cbc831fa --- /dev/null +++ b/lamp/data/lamp-049.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-049", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 22.95, + "y": 26.86 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": 120 + }, + { + "joint": 3, + "angle": -45 + }, + { + "joint": 4, + "angle": -105 + } + ] + }, + "legacy_answer": [ + -170, + 120, + -45, + -105 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-049\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (22.95, 26.86)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-050.json b/lamp/data/lamp-050.json new file mode 100644 index 0000000000000000000000000000000000000000..4514ef30931fb293e74923849533efeb54d019fc --- /dev/null +++ b/lamp/data/lamp-050.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-050", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -32.84, + "y": 202.96 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 240, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 280, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 35 + }, + { + "joint": 2, + "angle": 120 + }, + { + "joint": 3, + "angle": -90 + }, + { + "joint": 4, + "angle": 155 + } + ] + }, + "legacy_answer": [ + 35, + 120, + -90, + 155 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-050\n- segment_count: 4\n- arm_base: (0.0, 120.0)\n- target: (-32.84, 202.96)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- joint 3: length=50\n- joint 4: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-40, y=240, width=80, height=40\n part 2: x=0, y=280, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-051.json b/lamp/data/lamp-051.json new file mode 100644 index 0000000000000000000000000000000000000000..359cde62e98df35c0a9b33fc0136253b6a552bb3 --- /dev/null +++ b/lamp/data/lamp-051.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-051", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": -55.19, + "y": 175.2 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": 155 + }, + { + "joint": 3, + "angle": -155 + }, + { + "joint": 4, + "angle": 165 + } + ] + }, + "legacy_answer": [ + 75, + 155, + -155, + 165 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-051\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (-55.19, 175.2)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- joint 3: length=110\n- joint 4: length=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=40, y=40, width=40, height=120\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=-40, y=80, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-052.json b/lamp/data/lamp-052.json new file mode 100644 index 0000000000000000000000000000000000000000..36d6c47fb8504085784db6fbae4a3b73997b71cd --- /dev/null +++ b/lamp/data/lamp-052.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-052", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": -95.61, + "y": 74.01 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": -80, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 145 + }, + { + "joint": 2, + "angle": -75 + }, + { + "joint": 3, + "angle": 90 + } + ] + }, + "legacy_answer": [ + 145, + -75, + 90 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-052\n- segment_count: 3\n- arm_base: (-40.0, 40.0)\n- target: (-95.61, 74.01)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-80, y=80, width=80, height=40\n part 2: x=-80, y=80, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-80, y=-40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-153.json b/lamp/data/lamp-153.json new file mode 100644 index 0000000000000000000000000000000000000000..9e75636d85b4b75cf73a11e4f86b4e543ae4d738 --- /dev/null +++ b/lamp/data/lamp-153.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-153", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -5.63, + "y": 58.63 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -135 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": -135 + }, + { + "joint": 4, + "angle": -180 + } + ] + }, + "legacy_answer": [ + -135, + 20, + -135, + -180 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-153\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (-5.63, 58.63)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=110\n- joint 3: length=70\n- joint 4: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=-40, width=80, height=80\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=0, y=160, width=80, height=40\n part 2: x=40, y=200, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-154.json b/lamp/data/lamp-154.json new file mode 100644 index 0000000000000000000000000000000000000000..45b3b62244c97b401f6b05bfbf9f1a3120d1346a --- /dev/null +++ b/lamp/data/lamp-154.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-154", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 185.16, + "y": 32.38 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -35 + }, + { + "joint": 4, + "angle": -150 + } + ] + }, + "legacy_answer": [ + 60, + 25, + -35, + -150 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-154\n- segment_count: 4\n- arm_base: (80.0, 0.0)\n- target: (185.16, 32.38)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=70\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=80, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=240, y=80, width=80, height=40\n part 2: x=240, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-155.json b/lamp/data/lamp-155.json new file mode 100644 index 0000000000000000000000000000000000000000..b11bb98097896e8c149264a28d6fa725783dbfe7 --- /dev/null +++ b/lamp/data/lamp-155.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-155", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 168.88, + "y": -97.85 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -80, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": -40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -105 + }, + { + "joint": 2, + "angle": 50 + }, + { + "joint": 3, + "angle": -55 + }, + { + "joint": 4, + "angle": -120 + }, + { + "joint": 5, + "angle": -55 + } + ] + }, + "legacy_answer": [ + -105, + 50, + -55, + -120, + -55 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-155\n- segment_count: 5\n- arm_base: (120.0, 80.0)\n- target: (168.88, -97.85)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=50\n- joint 5: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=160, y=-80, width=80, height=40\n part 2: x=200, y=-40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-156.json b/lamp/data/lamp-156.json new file mode 100644 index 0000000000000000000000000000000000000000..cae0c1b90cbb6a50c105540d4512648c81b76005 --- /dev/null +++ b/lamp/data/lamp-156.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-156", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -41.13, + "y": 262.38 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 160, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 120 + }, + { + "joint": 2, + "angle": 135 + }, + { + "joint": 3, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 120, + 135, + 20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-156\n- segment_count: 3\n- arm_base: (-40.0, 80.0)\n- target: (-41.13, 262.38)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-80, y=160, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-157.json b/lamp/data/lamp-157.json new file mode 100644 index 0000000000000000000000000000000000000000..f029e10ed281da136f1c92d4947ea6a8312f4f1e --- /dev/null +++ b/lamp/data/lamp-157.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-157", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 78.92, + "y": -48.08 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -120 + }, + { + "joint": 2, + "angle": -90 + }, + { + "joint": 3, + "angle": -160 + }, + { + "joint": 4, + "angle": 25 + } + ] + }, + "legacy_answer": [ + -120, + -90, + -160, + 25 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-157\n- segment_count: 4\n- arm_base: (80.0, 40.0)\n- target: (78.92, -48.08)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- joint 3: length=70\n- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=-40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-158.json b/lamp/data/lamp-158.json new file mode 100644 index 0000000000000000000000000000000000000000..f44e26fbbd28bb4d2b7b833898a352346e8d26e7 --- /dev/null +++ b/lamp/data/lamp-158.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-158", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 153.66, + "y": 157.74 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 35 + }, + { + "joint": 3, + "angle": 0 + }, + { + "joint": 4, + "angle": -70 + } + ] + }, + "legacy_answer": [ + 110, + 35, + 0, + -70 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-158\n- segment_count: 4\n- arm_base: (40.0, 80.0)\n- target: (153.66, 157.74)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=70\n- joint 4: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=160, y=120, width=80, height=40\n part 2: x=200, y=160, width=80, height=40\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-159.json b/lamp/data/lamp-159.json new file mode 100644 index 0000000000000000000000000000000000000000..f6afc0d61d0b9c9bb7af9e4499a9204cf52cddb8 --- /dev/null +++ b/lamp/data/lamp-159.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-159", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 107.97, + "y": 149.25 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -175 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 80 + }, + { + "joint": 4, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -175, + 40, + 80, + 90 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-159\n- segment_count: 4\n- arm_base: (120.0, 0.0)\n- target: (107.97, 149.25)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=80\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=40, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-160.json b/lamp/data/lamp-160.json new file mode 100644 index 0000000000000000000000000000000000000000..8a5c32b11745b741064ab1f5784a2b487e28655c --- /dev/null +++ b/lamp/data/lamp-160.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-160", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 421.82, + "y": 3.83 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": -20 + }, + { + "joint": 4, + "angle": -15 + }, + { + "joint": 5, + "angle": 40 + } + ] + }, + "legacy_answer": [ + -15, + -95, + -20, + -15, + 40 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-160\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (421.82, 3.83)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- joint 3: length=110\n- joint 4: length=110\n- joint 5: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=200, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-161.json b/lamp/data/lamp-161.json new file mode 100644 index 0000000000000000000000000000000000000000..cd92767e8f8630393dd28bbeac980f1cee6a6110 --- /dev/null +++ b/lamp/data/lamp-161.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-161", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 1.24, + "y": 108.39 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -30 + }, + { + "joint": 2, + "angle": 110 + }, + { + "joint": 3, + "angle": 105 + } + ] + }, + "legacy_answer": [ + -30, + 110, + 105 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-161\n- segment_count: 3\n- arm_base: (0.0, 0.0)\n- target: (1.24, 108.39)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=80\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=-40, y=120, width=80, height=40\n part 2: x=0, y=160, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-162.json b/lamp/data/lamp-162.json new file mode 100644 index 0000000000000000000000000000000000000000..5244560487101fefad53c74956dc11dfe9c71cb4 --- /dev/null +++ b/lamp/data/lamp-162.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-162", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 71.49, + "y": 315.97 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": 155 + }, + { + "joint": 4, + "angle": 65 + } + ] + }, + "legacy_answer": [ + 60, + 25, + 155, + 65 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-162\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (71.49, 315.97)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=110\n- joint 4: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=160, width=80, height=40\n part 2: x=-40, y=160, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-163.json b/lamp/data/lamp-163.json new file mode 100644 index 0000000000000000000000000000000000000000..482097e66f823e8e618c545be62089a7ab569bdf --- /dev/null +++ b/lamp/data/lamp-163.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-163", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 56.37, + "y": 238.88 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 135 + }, + { + "joint": 2, + "angle": -25 + }, + { + "joint": 3, + "angle": 140 + }, + { + "joint": 4, + "angle": 20 + }, + { + "joint": 5, + "angle": -5 + } + ] + }, + "legacy_answer": [ + 135, + -25, + 140, + 20, + -5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-163\n- segment_count: 5\n- arm_base: (0.0, 80.0)\n- target: (56.37, 238.88)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=50\n- joint 3: length=110\n- joint 4: length=110\n- joint 5: length=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-164.json b/lamp/data/lamp-164.json new file mode 100644 index 0000000000000000000000000000000000000000..ea1a8fd919029ebcc6589cba0a0ade4a55dc92bc --- /dev/null +++ b/lamp/data/lamp-164.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-164", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 57.15, + "y": 89.57 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 60, + 130 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-164\n- segment_count: 2\n- arm_base: (80.0, -40.0)\n- target: (57.15, 89.57)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-40, y=-40, width=80, height=40\n part 2: x=0, y=0, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-165.json b/lamp/data/lamp-165.json new file mode 100644 index 0000000000000000000000000000000000000000..9e6aa26333b4327efe6734aaf4cfd4fdb6780125 --- /dev/null +++ b/lamp/data/lamp-165.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-165", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -21.08, + "y": 146.15 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": 130 + } + ] + }, + "legacy_answer": [ + -170, + 130 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-165\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (-21.08, 146.15)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=160, width=80, height=80\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-166.json b/lamp/data/lamp-166.json new file mode 100644 index 0000000000000000000000000000000000000000..6316d2391acabf7ada4e8aecc99e019fc08c88ec --- /dev/null +++ b/lamp/data/lamp-166.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-166", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -33.83, + "y": -34.04 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -165 + }, + { + "joint": 2, + "angle": -150 + }, + { + "joint": 3, + "angle": -5 + } + ] + }, + "legacy_answer": [ + -165, + -150, + -5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-166\n- segment_count: 3\n- arm_base: (40.0, 40.0)\n- target: (-33.83, -34.04)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=80, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-167.json b/lamp/data/lamp-167.json new file mode 100644 index 0000000000000000000000000000000000000000..f6402fac184d52063a8902e68566f82fa3923504 --- /dev/null +++ b/lamp/data/lamp-167.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-167", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": -40.48, + "y": 30.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 170 + }, + { + "joint": 2, + "angle": -100 + } + ] + }, + "legacy_answer": [ + 170, + -100 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-167\n- segment_count: 2\n- arm_base: (80.0, 80.0)\n- target: (-40.48, 30.16)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-168.json b/lamp/data/lamp-168.json new file mode 100644 index 0000000000000000000000000000000000000000..0ae04df025a01314a4a370979acfd980cf8e6ceb --- /dev/null +++ b/lamp/data/lamp-168.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-168", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 376.44, + "y": -91.33 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": -60 + } + ] + }, + "legacy_answer": [ + -40, + 25, + 25, + -60 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-168\n- segment_count: 4\n- arm_base: (120.0, -40.0)\n- target: (376.44, -91.33)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=200, y=0, width=80, height=80\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=120, y=0, width=80, height=40\n part 2: x=120, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-169.json b/lamp/data/lamp-169.json new file mode 100644 index 0000000000000000000000000000000000000000..0da5ab1a85b27c24658ee7b8ab4efe0b59a1445d --- /dev/null +++ b/lamp/data/lamp-169.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-169", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": -20, + "y": 57.32 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -120 + }, + { + "joint": 2, + "angle": 120 + } + ] + }, + "legacy_answer": [ + -120, + 120 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-169\n- segment_count: 2\n- arm_base: (80.0, 40.0)\n- target: (-20.0, 57.32)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-170.json b/lamp/data/lamp-170.json new file mode 100644 index 0000000000000000000000000000000000000000..8225dca366a2be538c811217c49b8e3c3a7c2f49 --- /dev/null +++ b/lamp/data/lamp-170.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-170", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 137.31, + "y": -1.68 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 105 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -85 + } + ] + }, + "legacy_answer": [ + 105, + 20, + 20, + -85 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-170\n- segment_count: 4\n- arm_base: (40.0, -40.0)\n- target: (137.31, -1.68)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- joint 3: length=70\n- joint 4: length=90\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=160, y=0, width=80, height=80\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-171.json b/lamp/data/lamp-171.json new file mode 100644 index 0000000000000000000000000000000000000000..7b8ea88b0cdd1670cd0eabeea1902bbd48e6fecf --- /dev/null +++ b/lamp/data/lamp-171.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-171", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -44.57, + "y": 199.22 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -160, + 90 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-171\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (-44.57, 199.22)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=160, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-172.json b/lamp/data/lamp-172.json new file mode 100644 index 0000000000000000000000000000000000000000..fc9bfbef6af9d70af2f31e3222ab09a308e75516 --- /dev/null +++ b/lamp/data/lamp-172.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-172", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 40 + }, + "target": { + "x": 64.1, + "y": 104.86 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -80, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": 75 + }, + { + "joint": 4, + "angle": -70 + } + ] + }, + "legacy_answer": [ + -40, + 65, + 75, + -70 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-172\n- segment_count: 4\n- arm_base: (-80.0, 40.0)\n- target: (64.1, 104.86)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-80, y=120, width=80, height=40\n part 2: x=-80, y=120, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=-40, y=160, width=80, height=40\n part 2: x=0, y=200, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-173.json b/lamp/data/lamp-173.json new file mode 100644 index 0000000000000000000000000000000000000000..80e99da29af875b38fa629e94d0ee0b7f4f8445e --- /dev/null +++ b/lamp/data/lamp-173.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-173", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 10.42, + "y": 103.44 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 175 + }, + { + "joint": 2, + "angle": 55 + } + ] + }, + "legacy_answer": [ + 175, + 55 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-173\n- segment_count: 2\n- arm_base: (40.0, 40.0)\n- target: (10.42, 103.44)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=120, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=40\n part 2: x=120, y=120, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-174.json b/lamp/data/lamp-174.json new file mode 100644 index 0000000000000000000000000000000000000000..fc878b4e9111e9dbd86a4de50b2ff4d4d38bc0c7 --- /dev/null +++ b/lamp/data/lamp-174.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-174", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": -3.76, + "y": 152.03 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 125 + }, + { + "joint": 2, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 125, + 130 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-174\n- segment_count: 2\n- arm_base: (80.0, 40.0)\n- target: (-3.76, 152.03)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=40\n part 2: x=80, y=80, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=0, y=160, width=80, height=40\n part 2: x=40, y=200, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-175.json b/lamp/data/lamp-175.json new file mode 100644 index 0000000000000000000000000000000000000000..f1eaaf8f04023c39a11736552d1369ca8835a9c4 --- /dev/null +++ b/lamp/data/lamp-175.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-175", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": -77.1, + "y": 340.01 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 280, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 280, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 85 + }, + { + "joint": 2, + "angle": 115 + }, + { + "joint": 3, + "angle": 110 + } + ] + }, + "legacy_answer": [ + 85, + 115, + 110 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-175\n- segment_count: 3\n- arm_base: (-40.0, 120.0)\n- target: (-77.1, 340.01)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=280, width=80, height=40\n part 2: x=-40, y=280, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=160, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-176.json b/lamp/data/lamp-176.json new file mode 100644 index 0000000000000000000000000000000000000000..baf4ca8138559afc3fc4a1294d2e6c8648e1a8c0 --- /dev/null +++ b/lamp/data/lamp-176.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-176", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 84.88, + "y": 35.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -80 + }, + { + "joint": 2, + "angle": 20 + } + ] + }, + "legacy_answer": [ + -80, + 20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-176\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (84.88, 35.61)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-177.json b/lamp/data/lamp-177.json new file mode 100644 index 0000000000000000000000000000000000000000..cc9f3164557ec854b4a63561e05cac8a5e7e9bd1 --- /dev/null +++ b/lamp/data/lamp-177.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-177", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 180.62, + "y": 75 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 135 + }, + { + "joint": 3, + "angle": -45 + } + ] + }, + "legacy_answer": [ + 30, + 135, + -45 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-177\n- segment_count: 3\n- arm_base: (120.0, 40.0)\n- target: (180.62, 75.0)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=110\n- joint 3: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=80, width=80, height=40\n part 2: x=40, y=80, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=160, y=120, width=80, height=40\n part 2: x=200, y=160, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-178.json b/lamp/data/lamp-178.json new file mode 100644 index 0000000000000000000000000000000000000000..cba4e9d5ed42c7903cddbe916451d74d6547749b --- /dev/null +++ b/lamp/data/lamp-178.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-178", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 186.91, + "y": -77.57 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -110 + }, + { + "joint": 2, + "angle": 10 + }, + { + "joint": 3, + "angle": -75 + }, + { + "joint": 4, + "angle": 45 + } + ] + }, + "legacy_answer": [ + -110, + 10, + -75, + 45 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-178\n- segment_count: 4\n- arm_base: (40.0, 0.0)\n- target: (186.91, -77.57)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=70\n- joint 4: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=40, width=80, height=40\n part 2: x=80, y=40, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=160, y=40, width=80, height=40\n part 2: x=200, y=80, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-179.json b/lamp/data/lamp-179.json new file mode 100644 index 0000000000000000000000000000000000000000..eedc67e62ecf67b70d04d0a4cd2f5d573a3234a9 --- /dev/null +++ b/lamp/data/lamp-179.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-179", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": 23.33, + "y": -12.48 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 170 + }, + { + "joint": 2, + "angle": 35 + }, + { + "joint": 3, + "angle": 170 + }, + { + "joint": 4, + "angle": -165 + } + ] + }, + "legacy_answer": [ + 170, + 35, + 170, + -165 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-179\n- segment_count: 4\n- arm_base: (80.0, -80.0)\n- target: (23.33, -12.48)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=0, width=80, height=40\n part 2: x=80, y=0, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-180.json b/lamp/data/lamp-180.json new file mode 100644 index 0000000000000000000000000000000000000000..fe0ae53c392ba51b86da4b418bf21c2c7f5f26b6 --- /dev/null +++ b/lamp/data/lamp-180.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-180", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 71.5, + "y": -90.49 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -155 + }, + { + "joint": 2, + "angle": -15 + }, + { + "joint": 3, + "angle": -40 + }, + { + "joint": 4, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -155, + -15, + -40, + 90 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-180\n- segment_count: 4\n- arm_base: (0.0, 0.0)\n- target: (71.5, -90.49)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=110\n- joint 4: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=-80, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-181.json b/lamp/data/lamp-181.json new file mode 100644 index 0000000000000000000000000000000000000000..3abee07357355f28e665418d090aeaa4273f065a --- /dev/null +++ b/lamp/data/lamp-181.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-181", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 231.74, + "y": -26.03 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 25 + }, + { + "joint": 2, + "angle": -45 + }, + { + "joint": 3, + "angle": -60 + }, + { + "joint": 4, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 25, + -45, + -60, + -30 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-181\n- segment_count: 4\n- arm_base: (0.0, 120.0)\n- target: (231.74, -26.03)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- joint 3: length=110\n- joint 4: length=90\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=0, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-182.json b/lamp/data/lamp-182.json new file mode 100644 index 0000000000000000000000000000000000000000..b2b63add41ae3cf9a7cc7acff5ab2972e5885968 --- /dev/null +++ b/lamp/data/lamp-182.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-182", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 65.21, + "y": 141.6 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 50 + }, + { + "joint": 2, + "angle": 165 + } + ] + }, + "legacy_answer": [ + 50, + 165 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-182\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (65.21, 141.6)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=80\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=160, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-183.json b/lamp/data/lamp-183.json new file mode 100644 index 0000000000000000000000000000000000000000..f49874c40ccb883cd36633d0a9ec90c3a54d38f6 --- /dev/null +++ b/lamp/data/lamp-183.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-183", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 41.88, + "y": 173.86 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 160, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": -75 + } + ] + }, + "legacy_answer": [ + 10, + 90, + -75 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-183\n- segment_count: 3\n- arm_base: (-40.0, 120.0)\n- target: (41.88, 173.86)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=90\n- joint 3: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-80, y=160, width=80, height=80\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-184.json b/lamp/data/lamp-184.json new file mode 100644 index 0000000000000000000000000000000000000000..f1f4d41e4e2ae0371600255c8742a0a9712a4fc4 --- /dev/null +++ b/lamp/data/lamp-184.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-184", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": -25.22, + "y": -99.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 80, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -80 + }, + { + "joint": 2, + "angle": -90 + }, + { + "joint": 3, + "angle": 160 + }, + { + "joint": 4, + "angle": 40 + }, + { + "joint": 5, + "angle": 85 + } + ] + }, + "legacy_answer": [ + -80, + -90, + 160, + 40, + 85 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-184\n- segment_count: 5\n- arm_base: (-40.0, 0.0)\n- target: (-25.22, -99.28)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=50\n- joint 4: length=50\n- joint 5: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=40\n part 2: x=40, y=80, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=-80, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-185.json b/lamp/data/lamp-185.json new file mode 100644 index 0000000000000000000000000000000000000000..2609ee3c05197f87324cd4482072a785924aea36 --- /dev/null +++ b/lamp/data/lamp-185.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-185", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 199.39, + "y": 147.8 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 200, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 5 + }, + { + "joint": 2, + "angle": 65 + } + ] + }, + "legacy_answer": [ + 5, + 65 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-185\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (199.39, 147.8)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=160, width=80, height=40\n part 2: x=160, y=200, width=80, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=120, width=80, height=40\n part 2: x=80, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-186.json b/lamp/data/lamp-186.json new file mode 100644 index 0000000000000000000000000000000000000000..3903872291b5b7ed08071cb30ed8301ba212142c --- /dev/null +++ b/lamp/data/lamp-186.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-186", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 176.57, + "y": 207.92 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 120 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -15 + } + ] + }, + "legacy_answer": [ + 120, + 25, + -15 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-186\n- segment_count: 3\n- arm_base: (80.0, 120.0)\n- target: (176.57, 207.92)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=50\n- joint 3: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=160, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-187.json b/lamp/data/lamp-187.json new file mode 100644 index 0000000000000000000000000000000000000000..9e75d1866d2b3fd4351b101e1fee7a793bb0ca1a --- /dev/null +++ b/lamp/data/lamp-187.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-187", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 119.46, + "y": 22.55 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 80, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -80 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -180 + }, + { + "joint": 4, + "angle": 115 + }, + { + "joint": 5, + "angle": -30 + } + ] + }, + "legacy_answer": [ + -80, + 25, + -180, + 115, + -30 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-187\n- segment_count: 5\n- arm_base: (40.0, 0.0)\n- target: (119.46, 22.55)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=50\n- joint 4: length=110\n- joint 5: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-40, y=40, width=80, height=40\n part 2: x=0, y=80, width=80, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=40\n part 2: x=120, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-188.json b/lamp/data/lamp-188.json new file mode 100644 index 0000000000000000000000000000000000000000..e899f92f663e40e6f8eb5b9af74ca789263c46a4 --- /dev/null +++ b/lamp/data/lamp-188.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-188", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -76.57, + "y": 200.54 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 115 + }, + { + "joint": 2, + "angle": 160 + } + ] + }, + "legacy_answer": [ + 115, + 160 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-188\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (-76.57, 200.54)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=160, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-189.json b/lamp/data/lamp-189.json new file mode 100644 index 0000000000000000000000000000000000000000..df21b20932494071f15aaf82c95d4793511f06cd --- /dev/null +++ b/lamp/data/lamp-189.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-189", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 23.9, + "y": 10.27 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -95 + }, + { + "joint": 2, + "angle": -180 + } + ] + }, + "legacy_answer": [ + -95, + -180 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-189\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (23.9, 10.27)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=40\n part 2: x=0, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-190.json b/lamp/data/lamp-190.json new file mode 100644 index 0000000000000000000000000000000000000000..c18738e57bac2fe7e1c69d31621d06d8151d6ab7 --- /dev/null +++ b/lamp/data/lamp-190.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-190", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -30.14, + "y": 174.58 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 80, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 155 + }, + { + "joint": 3, + "angle": -180 + } + ] + }, + "legacy_answer": [ + 30, + 155, + -180 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-190\n- segment_count: 3\n- arm_base: (80.0, 120.0)\n- target: (-30.14, 174.58)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=90\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-80, y=80, width=80, height=80\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=40\n part 2: x=0, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-191.json b/lamp/data/lamp-191.json new file mode 100644 index 0000000000000000000000000000000000000000..f60aa42b031e993351fbeb1407163239f5d57ebf --- /dev/null +++ b/lamp/data/lamp-191.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-191", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": 30.48, + "y": 84.94 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 170 + }, + { + "joint": 2, + "angle": -50 + }, + { + "joint": 3, + "angle": 10 + }, + { + "joint": 4, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 170, + -50, + 10, + 20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-191\n- segment_count: 4\n- arm_base: (-40.0, 80.0)\n- target: (30.48, 84.94)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=40\n part 2: x=40, y=160, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-192.json b/lamp/data/lamp-192.json new file mode 100644 index 0000000000000000000000000000000000000000..e42fc745f601786c499ada55543cecf097ce5a51 --- /dev/null +++ b/lamp/data/lamp-192.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-192", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": -12.1, + "y": 244.93 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 240, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 60 + } + ] + }, + "legacy_answer": [ + 110, + 60 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-192\n- segment_count: 2\n- arm_base: (-40.0, 120.0)\n- target: (-12.1, 244.93)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=160, width=80, height=40\n part 2: x=0, y=160, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=40, y=200, width=80, height=40\n part 2: x=80, y=240, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-193.json b/lamp/data/lamp-193.json new file mode 100644 index 0000000000000000000000000000000000000000..b2da10ee21d03b603da1aaa3d561c0ba9faa282f --- /dev/null +++ b/lamp/data/lamp-193.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-193", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 113.09, + "y": 42.03 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 100 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": 5 + }, + { + "joint": 4, + "angle": -180 + }, + { + "joint": 5, + "angle": 15 + } + ] + }, + "legacy_answer": [ + 100, + -95, + 5, + -180, + 15 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-193\n- segment_count: 5\n- arm_base: (40.0, 40.0)\n- target: (113.09, 42.03)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=70\n- joint 5: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=40\n part 2: x=80, y=80, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-194.json b/lamp/data/lamp-194.json new file mode 100644 index 0000000000000000000000000000000000000000..fdb2d15fcee27d13fbd8f5658edfd7bb670ea1cf --- /dev/null +++ b/lamp/data/lamp-194.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-194", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 284.84, + "y": 165.41 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 200, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -5 + }, + { + "joint": 2, + "angle": 30 + } + ] + }, + "legacy_answer": [ + -5, + 30 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-194\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (284.84, 165.41)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=160, y=160, width=80, height=40\n part 2: x=200, y=200, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-195.json b/lamp/data/lamp-195.json new file mode 100644 index 0000000000000000000000000000000000000000..3be2678b6e22a407161c43d4734109d0fc93a0ec --- /dev/null +++ b/lamp/data/lamp-195.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-195", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 44.57, + "y": 45.1 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -25 + }, + { + "joint": 2, + "angle": -65 + } + ] + }, + "legacy_answer": [ + -25, + -65 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-195\n- segment_count: 2\n- arm_base: (-40.0, 120.0)\n- target: (44.57, 45.1)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=-40, width=40, height=120\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=0, y=-40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-196.json b/lamp/data/lamp-196.json new file mode 100644 index 0000000000000000000000000000000000000000..416dbb75367c2bd0a243e2f0341270aed22b2ac7 --- /dev/null +++ b/lamp/data/lamp-196.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-196", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 153.49, + "y": 41.79 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -65 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": 20 + } + ] + }, + "legacy_answer": [ + -65, + 75, + 20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-196\n- segment_count: 3\n- arm_base: (40.0, 0.0)\n- target: (153.49, 41.79)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=80, y=80, width=80, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=80, width=80, height=40\n part 2: x=0, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-197.json b/lamp/data/lamp-197.json new file mode 100644 index 0000000000000000000000000000000000000000..5f82416bf51bb8bdd6817f8e39dd46b35a6afe6d --- /dev/null +++ b/lamp/data/lamp-197.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-197", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 172.56, + "y": 123.4 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 65 + }, + { + "joint": 2, + "angle": 0 + }, + { + "joint": 3, + "angle": 55 + }, + { + "joint": 4, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 65, + 0, + 55, + 5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-197\n- segment_count: 4\n- arm_base: (0.0, 0.0)\n- target: (172.56, 123.4)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=50\n- joint 3: length=90\n- joint 4: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=160, y=40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-198.json b/lamp/data/lamp-198.json new file mode 100644 index 0000000000000000000000000000000000000000..e2db6ec15f56710fec03cfcc091c927fb0984a1e --- /dev/null +++ b/lamp/data/lamp-198.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-198", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": -40 + }, + "target": { + "x": 101.14, + "y": 137.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 85 + }, + { + "joint": 2, + "angle": 70 + }, + { + "joint": 3, + "angle": 0 + }, + { + "joint": 4, + "angle": 10 + }, + { + "joint": 5, + "angle": 175 + } + ] + }, + "legacy_answer": [ + 85, + 70, + 0, + 10, + 175 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-198\n- segment_count: 5\n- arm_base: (0.0, -40.0)\n- target: (101.14, 137.18)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=110\n- joint 4: length=70\n- joint 5: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=40\n part 2: x=80, y=40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-199.json b/lamp/data/lamp-199.json new file mode 100644 index 0000000000000000000000000000000000000000..0ed16051c40d4386516317add3f577fa8d8b0e43 --- /dev/null +++ b/lamp/data/lamp-199.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-199", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 2.22, + "y": 12.22 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -135 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -135, + 90 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-199\n- segment_count: 2\n- arm_base: (80.0, 0.0)\n- target: (2.22, 12.22)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=40\n part 2: x=0, y=40, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=40, width=80, height=40\n part 2: x=120, y=80, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-200.json b/lamp/data/lamp-200.json new file mode 100644 index 0000000000000000000000000000000000000000..0e720e900c0543a7b1a391a7ccfade54e22ab131 --- /dev/null +++ b/lamp/data/lamp-200.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-200", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 101.67, + "y": -17.64 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -75 + }, + { + "joint": 2, + "angle": -55 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": 60 + }, + { + "joint": 5, + "angle": 175 + } + ] + }, + "legacy_answer": [ + -75, + -55, + 25, + 60, + 175 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-200\n- segment_count: 5\n- arm_base: (-40.0, 40.0)\n- target: (101.67, -17.64)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=90\n- joint 4: length=70\n- joint 5: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-40, y=80, width=80, height=40\n part 2: x=0, y=120, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=80, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-201.json b/lamp/data/lamp-201.json new file mode 100644 index 0000000000000000000000000000000000000000..d82111f4e49fc6cdbc1e1a01e0e4c96c83c8eb17 --- /dev/null +++ b/lamp/data/lamp-201.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-201", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": -8.3, + "y": -32.14 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -180 + }, + { + "joint": 2, + "angle": -140 + } + ] + }, + "legacy_answer": [ + -180, + -140 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-201\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (-8.3, -32.14)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=40, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=40, width=80, height=40\n part 2: x=120, y=80, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-202.json b/lamp/data/lamp-202.json new file mode 100644 index 0000000000000000000000000000000000000000..22b27e56fbd57d1b6153caebc674de3d199953ec --- /dev/null +++ b/lamp/data/lamp-202.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-202", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 253.48, + "y": 194.72 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -55 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": 85 + }, + { + "joint": 4, + "angle": 85 + }, + { + "joint": 5, + "angle": 45 + } + ] + }, + "legacy_answer": [ + -55, + 65, + 85, + 85, + 45 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-202\n- segment_count: 5\n- arm_base: (80.0, 40.0)\n- target: (253.48, 194.72)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=50\n- joint 4: length=50\n- joint 5: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=40\n part 2: x=80, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-203.json b/lamp/data/lamp-203.json new file mode 100644 index 0000000000000000000000000000000000000000..dcefd40fa1de29d5223c1c5af5273a99b8cf302a --- /dev/null +++ b/lamp/data/lamp-203.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-203", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 274.9, + "y": 131.54 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 200, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 25 + }, + { + "joint": 2, + "angle": -5 + } + ] + }, + "legacy_answer": [ + 25, + -5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-203\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (274.9, 131.54)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=160, y=160, width=80, height=40\n part 2: x=200, y=200, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-204.json b/lamp/data/lamp-204.json new file mode 100644 index 0000000000000000000000000000000000000000..9d169569552cfabdcf520534c2cf485cc13c8239 --- /dev/null +++ b/lamp/data/lamp-204.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-204", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 193.48, + "y": 24.44 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -105 + }, + { + "joint": 3, + "angle": 30 + } + ] + }, + "legacy_answer": [ + -15, + -105, + 30 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-204\n- segment_count: 3\n- arm_base: (120.0, 80.0)\n- target: (193.48, 24.44)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, y=120, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=40\n part 2: x=40, y=0, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-205.json b/lamp/data/lamp-205.json new file mode 100644 index 0000000000000000000000000000000000000000..81aeda3d7a14ddd0cbc235de5490cc54b8eadb58 --- /dev/null +++ b/lamp/data/lamp-205.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-205", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -15.34, + "y": 9.9 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 180 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": -60 + } + ] + }, + "legacy_answer": [ + 180, + 5, + -60 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-205\n- segment_count: 3\n- arm_base: (-40.0, 80.0)\n- target: (-15.34, 9.9)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-80, y=120, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=120, width=80, height=40\n part 2: x=40, y=120, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-206.json b/lamp/data/lamp-206.json new file mode 100644 index 0000000000000000000000000000000000000000..373147f07807dfea8176cb7f915647e1b6946e83 --- /dev/null +++ b/lamp/data/lamp-206.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-206", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 144.68, + "y": 20.47 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": -30 + }, + { + "joint": 3, + "angle": 35 + } + ] + }, + "legacy_answer": [ + -160, + -30, + 35 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-206\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (144.68, 20.47)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=80, width=80, height=40\n part 2: x=80, y=120, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, y=-40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-207.json b/lamp/data/lamp-207.json new file mode 100644 index 0000000000000000000000000000000000000000..c706684d1292da134ea7e87fec6b594de89ec3af --- /dev/null +++ b/lamp/data/lamp-207.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-207", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 120 + }, + "target": { + "x": 31.85, + "y": 145.42 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 80 + }, + { + "joint": 2, + "angle": -90 + }, + { + "joint": 3, + "angle": 25 + } + ] + }, + "legacy_answer": [ + 80, + -90, + 25 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-207\n- segment_count: 3\n- arm_base: (-80.0, 120.0)\n- target: (31.85, 145.42)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=90\n- joint 3: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-40, y=160, width=80, height=40\n part 2: x=0, y=200, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-80, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-208.json b/lamp/data/lamp-208.json new file mode 100644 index 0000000000000000000000000000000000000000..2b6826ff6055a23fbdf7819532a8fa7412be47d9 --- /dev/null +++ b/lamp/data/lamp-208.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-208", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 163.14, + "y": 119.84 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -105 + }, + { + "joint": 2, + "angle": -15 + }, + { + "joint": 3, + "angle": 75 + } + ] + }, + "legacy_answer": [ + -105, + -15, + 75 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-208\n- segment_count: 3\n- arm_base: (80.0, 80.0)\n- target: (163.14, 119.84)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=120, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=160, width=80, height=40\n part 2: x=80, y=160, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-209.json b/lamp/data/lamp-209.json new file mode 100644 index 0000000000000000000000000000000000000000..5515de3228f00e6feb9ccee1abcec681c3755de8 --- /dev/null +++ b/lamp/data/lamp-209.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-209", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": -25.35, + "y": -27.35 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 80 + }, + { + "joint": 2, + "angle": -85 + }, + { + "joint": 3, + "angle": -175 + }, + { + "joint": 4, + "angle": -145 + } + ] + }, + "legacy_answer": [ + 80, + -85, + -175, + -145 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-209\n- segment_count: 4\n- arm_base: (80.0, 0.0)\n- target: (-25.35, -27.35)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- joint 3: length=70\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=0, width=40, height=120\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-210.json b/lamp/data/lamp-210.json new file mode 100644 index 0000000000000000000000000000000000000000..c0a909e2976b731643192404437b98e21f50ee15 --- /dev/null +++ b/lamp/data/lamp-210.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-210", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 12.38, + "y": -18.11 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 145 + }, + { + "joint": 2, + "angle": -85 + } + ] + }, + "legacy_answer": [ + 145, + -85 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-210\n- segment_count: 2\n- arm_base: (80.0, 0.0)\n- target: (12.38, -18.11)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=0, width=40, height=120\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=40, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-211.json b/lamp/data/lamp-211.json new file mode 100644 index 0000000000000000000000000000000000000000..792dcd275cc79ad37c32e287269129a36f3f59e0 --- /dev/null +++ b/lamp/data/lamp-211.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-211", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -24.76, + "y": 179.3 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 120 + }, + { + "joint": 2, + "angle": 10 + }, + { + "joint": 3, + "angle": -100 + }, + { + "joint": 4, + "angle": 150 + }, + { + "joint": 5, + "angle": -155 + } + ] + }, + "legacy_answer": [ + 120, + 10, + -100, + 150, + -155 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-211\n- segment_count: 5\n- arm_base: (40.0, 120.0)\n- target: (-24.76, 179.3)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=110\n- joint 3: length=70\n- joint 4: length=70\n- joint 5: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-212.json b/lamp/data/lamp-212.json new file mode 100644 index 0000000000000000000000000000000000000000..8d2128a270d282e37f645661db8e5218d9da2a76 --- /dev/null +++ b/lamp/data/lamp-212.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-212", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 249.6, + "y": 106.84 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -30 + }, + { + "joint": 2, + "angle": 45 + }, + { + "joint": 3, + "angle": 115 + }, + { + "joint": 4, + "angle": 105 + }, + { + "joint": 5, + "angle": -70 + } + ] + }, + "legacy_answer": [ + -30, + 45, + 115, + 105, + -70 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-212\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (249.6, 106.84)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=90\n- joint 3: length=50\n- joint 4: length=110\n- joint 5: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=80, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-213.json b/lamp/data/lamp-213.json new file mode 100644 index 0000000000000000000000000000000000000000..f7a29963f29f113702fd26964ee25d758aa7f7f6 --- /dev/null +++ b/lamp/data/lamp-213.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-213", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 16.36, + "y": -37.71 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -115 + }, + { + "joint": 2, + "angle": -135 + }, + { + "joint": 3, + "angle": 20 + } + ] + }, + "legacy_answer": [ + -115, + -135, + 20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-213\n- segment_count: 3\n- arm_base: (40.0, 40.0)\n- target: (16.36, -37.71)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, y=0, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=0, y=80, width=80, height=40\n part 2: x=40, y=120, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-214.json b/lamp/data/lamp-214.json new file mode 100644 index 0000000000000000000000000000000000000000..f7d1c8f0649ad51a0f29db75a2338e58ca17b9d1 --- /dev/null +++ b/lamp/data/lamp-214.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-214", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 183.73, + "y": 57.2 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -145 + }, + { + "joint": 2, + "angle": -15 + }, + { + "joint": 3, + "angle": -150 + }, + { + "joint": 4, + "angle": 80 + }, + { + "joint": 5, + "angle": -5 + } + ] + }, + "legacy_answer": [ + -145, + -15, + -150, + 80, + -5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-214\n- segment_count: 5\n- arm_base: (40.0, 80.0)\n- target: (183.73, 57.2)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=50\n- joint 4: length=70\n- joint 5: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=120, width=80, height=40\n part 2: x=80, y=160, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-215.json b/lamp/data/lamp-215.json new file mode 100644 index 0000000000000000000000000000000000000000..c14bb2c7a38cf90101cab4992d19072e151d4fdb --- /dev/null +++ b/lamp/data/lamp-215.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-215", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 143.38, + "y": 115.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": 130 + }, + { + "joint": 4, + "angle": -25 + } + ] + }, + "legacy_answer": [ + 30, + 65, + 130, + -25 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-215\n- segment_count: 4\n- arm_base: (40.0, 0.0)\n- target: (143.38, 115.61)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=80\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-216.json b/lamp/data/lamp-216.json new file mode 100644 index 0000000000000000000000000000000000000000..0e2d560d7895dbafe02ae45f667033b144c32b4d --- /dev/null +++ b/lamp/data/lamp-216.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-216", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 0 + }, + "target": { + "x": -110.72, + "y": 64.27 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": -80, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -115 + }, + { + "joint": 2, + "angle": 95 + } + ] + }, + "legacy_answer": [ + -115, + 95 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-216\n- segment_count: 2\n- arm_base: (-80.0, 0.0)\n- target: (-110.72, 64.27)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=-80, y=80, width=80, height=40\n part 2: x=-80, y=80, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-80, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-217.json b/lamp/data/lamp-217.json new file mode 100644 index 0000000000000000000000000000000000000000..f7ce7266c5b241f1d0879a285a76466a4bd62ea6 --- /dev/null +++ b/lamp/data/lamp-217.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-217", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 60.15, + "y": 7.43 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -100 + }, + { + "joint": 2, + "angle": -180 + }, + { + "joint": 3, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -100, + -180, + -20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-217\n- segment_count: 3\n- arm_base: (120.0, 120.0)\n- target: (60.15, 7.43)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=40, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-218.json b/lamp/data/lamp-218.json new file mode 100644 index 0000000000000000000000000000000000000000..a8fcfd2797c25da14b9587bbe972868566be3e13 --- /dev/null +++ b/lamp/data/lamp-218.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-218", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 113.94, + "y": -72.78 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -10 + }, + { + "joint": 2, + "angle": -120 + } + ] + }, + "legacy_answer": [ + -10, + -120 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-218\n- segment_count: 2\n- arm_base: (80.0, 0.0)\n- target: (113.94, -72.78)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=40, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-219.json b/lamp/data/lamp-219.json new file mode 100644 index 0000000000000000000000000000000000000000..9a2dd1fe9556e2805c25eaab89f9d40f978291a7 --- /dev/null +++ b/lamp/data/lamp-219.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-219", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 2.53, + "y": 164.39 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 95 + }, + { + "joint": 2, + "angle": -170 + }, + { + "joint": 3, + "angle": 120 + }, + { + "joint": 4, + "angle": 65 + } + ] + }, + "legacy_answer": [ + 95, + -170, + 120, + 65 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-219\n- segment_count: 4\n- arm_base: (80.0, 0.0)\n- target: (2.53, 164.39)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=50\n- joint 3: length=90\n- joint 4: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=80, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-220.json b/lamp/data/lamp-220.json new file mode 100644 index 0000000000000000000000000000000000000000..ed21465962a9f333979922562f4f28a33017c8ce --- /dev/null +++ b/lamp/data/lamp-220.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-220", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": -12.59, + "y": 56.94 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 125 + }, + { + "joint": 2, + "angle": 145 + }, + { + "joint": 3, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 125, + 145, + 5 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-220\n- segment_count: 3\n- arm_base: (40.0, -40.0)\n- target: (-12.59, 56.94)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- joint 3: length=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=40, width=80, height=40\n part 2: x=0, y=40, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-221.json b/lamp/data/lamp-221.json new file mode 100644 index 0000000000000000000000000000000000000000..16cbad352a4334f6fb4b69ac4ea2d2073a7401b7 --- /dev/null +++ b/lamp/data/lamp-221.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-221", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 130.56, + "y": 108.57 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -75 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": 55 + }, + { + "joint": 4, + "angle": 105 + } + ] + }, + "legacy_answer": [ + -75, + 105, + 55, + 105 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-221\n- segment_count: 4\n- arm_base: (120.0, 0.0)\n- target: (130.56, 108.57)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=80\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=160, y=40, width=80, height=40\n part 2: x=160, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-222.json b/lamp/data/lamp-222.json new file mode 100644 index 0000000000000000000000000000000000000000..75da979f6f62d4f02291fdfb6ed09bc3000e8258 --- /dev/null +++ b/lamp/data/lamp-222.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-222", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 20.93, + "y": 90.32 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 80, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": 115 + } + ] + }, + "legacy_answer": [ + 150, + 115 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-222\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (20.93, 90.32)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=40, width=80, height=40\n part 2: x=120, y=80, width=80, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=80, width=80, height=40\n part 2: x=40, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-223.json b/lamp/data/lamp-223.json new file mode 100644 index 0000000000000000000000000000000000000000..97a969f888397e0f842347707dcb4c77bb2f270d --- /dev/null +++ b/lamp/data/lamp-223.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-223", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 10.52, + "y": 58.09 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 145 + }, + { + "joint": 2, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 145, + 30 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-223\n- segment_count: 2\n- arm_base: (40.0, -40.0)\n- target: (10.52, 58.09)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=0, width=80, height=40\n part 2: x=40, y=40, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-224.json b/lamp/data/lamp-224.json new file mode 100644 index 0000000000000000000000000000000000000000..22e037a907ad227d2d1a69dba320e8d1ac834798 --- /dev/null +++ b/lamp/data/lamp-224.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-224", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -26.83, + "y": 110.37 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 115 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": 105 + }, + { + "joint": 4, + "angle": -115 + }, + { + "joint": 5, + "angle": -145 + } + ] + }, + "legacy_answer": [ + 115, + 15, + 105, + -115, + -145 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-224\n- segment_count: 5\n- arm_base: (40.0, 120.0)\n- target: (-26.83, 110.37)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=90\n- joint 3: length=50\n- joint 4: length=70\n- joint 5: length=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=40, y=0, width=80, height=80\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-225.json b/lamp/data/lamp-225.json new file mode 100644 index 0000000000000000000000000000000000000000..3df79d25bdd9ac2eb4a1e1bf4415ced577a1afc7 --- /dev/null +++ b/lamp/data/lamp-225.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-225", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 124.16, + "y": -60.36 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 0, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -180 + }, + { + "joint": 2, + "angle": -85 + }, + { + "joint": 3, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -180, + -85, + -20 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-225\n- segment_count: 3\n- arm_base: (120.0, 80.0)\n- target: (124.16, -60.36)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=110\n- joint 3: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=-40, width=80, height=40\n part 2: x=120, y=0, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-226.json b/lamp/data/lamp-226.json new file mode 100644 index 0000000000000000000000000000000000000000..2cd1653887eb0d2e524a47d14fa4b9242ae48fcd --- /dev/null +++ b/lamp/data/lamp-226.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-226", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 19.32, + "y": 137.99 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 20 + }, + { + "joint": 2, + "angle": 125 + }, + { + "joint": 3, + "angle": 160 + } + ] + }, + "legacy_answer": [ + 20, + 125, + 160 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-226\n- segment_count: 3\n- arm_base: (120.0, 0.0)\n- target: (19.32, 137.99)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=50\n- joint 2: length=110\n- joint 3: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=40, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=80, width=80, height=40\n part 2: x=-40, y=80, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-227.json b/lamp/data/lamp-227.json new file mode 100644 index 0000000000000000000000000000000000000000..fcca7512729c58cf4b16ca71c0e22019de0547a7 --- /dev/null +++ b/lamp/data/lamp-227.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-227", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 79.68, + "y": 31.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 115 + }, + { + "joint": 2, + "angle": 130 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": 10 + }, + { + "joint": 5, + "angle": -40 + } + ] + }, + "legacy_answer": [ + 115, + 130, + -165, + 10, + -40 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-227\n- segment_count: 5\n- arm_base: (80.0, -40.0)\n- target: (79.68, 31.28)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=50\n- joint 4: length=70\n- joint 5: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=40, width=80, height=40\n part 2: x=80, y=40, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=0, width=120, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-228.json b/lamp/data/lamp-228.json new file mode 100644 index 0000000000000000000000000000000000000000..5faf2b526579068e4a17704e17fc100e5e97fc4a --- /dev/null +++ b/lamp/data/lamp-228.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-228", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 21.81, + "y": 193.84 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 110, + 30, + 130 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-228\n- segment_count: 3\n- arm_base: (80.0, 0.0)\n- target: (21.81, 193.84)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=90\n- joint 2: length=50\n- joint 3: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-229.json b/lamp/data/lamp-229.json new file mode 100644 index 0000000000000000000000000000000000000000..1184c9136e15cf131c9019e5ec8e60a9d90a44e3 --- /dev/null +++ b/lamp/data/lamp-229.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-229", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 128.61, + "y": 223.15 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": -100 + } + ] + }, + "legacy_answer": [ + 75, + 65, + 70, + -100 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-229\n- segment_count: 4\n- arm_base: (40.0, 0.0)\n- target: (128.61, 223.15)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=110\n- joint 2: length=90\n- joint 3: length=90\n- joint 4: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=80, width=80, height=40\n part 2: x=120, y=120, width=80, height=40\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/lamp/data/lamp-230.json b/lamp/data/lamp-230.json new file mode 100644 index 0000000000000000000000000000000000000000..c505111fdfaeff698067338fa3973a9d02be9498 --- /dev/null +++ b/lamp/data/lamp-230.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-230", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 85.42, + "y": -67.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -60 + }, + { + "joint": 2, + "angle": 115 + }, + { + "joint": 3, + "angle": -90 + } + ] + }, + "legacy_answer": [ + -60, + 115, + -90 + ], + "prompt": { + "system": "You are a mechanical-arm lamp targeting solver. Given a multi-segment robotic arm anchored at a fixed base, choose one absolute angle for every joint so that the bulb at the arm's tip illuminates the target point.\n\nYou will receive: (a) one rendered image of the workspace showing the arm base, joints, segments, target, and any striped wall obstacles, and (b) a structured text body containing every numeric parameter (segment count, segment lengths, target coordinates, allowed angle range, allowed angle step, light radius, obstacle rectangles).\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the actions schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf the information is insufficient to choose a confident value for some joint, still output a complete FINAL_JSON line covering every joint (use the closest allowed angle from the allowed range). Never refuse, never return prose only.", + "user": "## 1. TASK\nChoose one absolute angle for every joint of a fixed-base mechanical arm so that the bulb at the tip illuminates the target point.\nThe level is solved when the bulb's light radius covers the target AND no rod segment intersects any obstacle.\n\n## 2. WORLD MODEL\n- Arm base: the fixed mounting point of the arm. It does NOT move regardless of joint choices.\n- Joint: a pivot point connecting consecutive arm segments. There is one joint per segment, indexed 1..segment_count.\n- Segment / rod: a rigid white bar of fixed length attached to its joint.\n- Bulb: the light source rigidly attached to the tip of the last segment. Its position is the cumulative endpoint after applying all joint angles to the segments.\n- Light radius: the radius around the bulb within which the target counts as illuminated.\n- Target: the single point the bulb must illuminate.\n- Obstacle: an axis-aligned rectangle (or set of rectangles) the rods must NOT intersect.\n\n## 3. VISUAL LEGEND\n- Orange diamond: arm base (fixed).\n- White lines: arm segments (rods).\n- Blue small circles: joints.\n- Yellow circle: lamp bulb.\n- Pale yellow translucent disc: the lamp's light coverage radius.\n- Orange circle: target point.\n- Amber rectangles with diagonal stripes: obstacles. Rods may not intersect them.\n- Coordinate system: origin (0,0) marked on the grid; x increases to the right, y increases upward.\n\n## 4. INPUT FIELDS\n- sample_id: lamp-230\n- segment_count: 3\n- arm_base: (80.0, 0.0)\n- target: (85.42, -67.18)\n- light_radius: 24.0\n- angle_min: -180\n- angle_max: 180\n- angle_step: 5\n- segments:\n- joint 1: length=70\n- joint 2: length=70\n- joint 3: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=40, width=80, height=40\n part 2: x=40, y=40, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=0, y=-40, width=40, height=120\n\n## 5. ACTION VOCABULARY\nA complete answer is one list of `action` objects, exactly one per joint:\n- action: {\"joint\": , \"angle\": }\n- `joint` is 1-indexed and identifies which segment this angle controls.\n- `angle` is the absolute angle of that segment measured counterclockwise from the positive x-axis. Positive values rotate counterclockwise; negative values rotate clockwise.\n\n## 6. CONSTRAINTS\n- The actions list must contain exactly `segment_count` items, one per joint, with no duplicates.\n- Each `angle` is an integer in `[angle_min, angle_max]` that is also a multiple of `angle_step` offset from `angle_min`.\n- Angles are NOT cumulative across joints — each joint's angle is independent of the previous joint.\n- The first segment starts at the arm base. Each subsequent segment starts where the previous one ends.\n- No rod segment may intersect any obstacle rectangle.\n- The level is solved iff the final bulb position is within `light_radius` of the target AND no rod intersects any obstacle.\n\n## 7. SOLVING ADVICE\n- Identify a coarse joint configuration that points the tip toward the target, then refine each angle independently.\n- When obstacles are present, prefer paths that route the rod chain around them; an angle that produces a visually shorter path is not always feasible.\n- The light radius can be tight (often 20–30 units), so even a 5° error on a single joint can miss the target.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"actions\":[{\"joint\":1,\"angle\":},{\"joint\":2,\"angle\":}, ...]}\n- actions: list of length `segment_count`, joints `1..segment_count` each appearing exactly once.\n- joint: integer in `1..segment_count`.\n- angle: integer in `[angle_min, angle_max]`, multiple of `angle_step`.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +}