diff --git a/cutrope/source/rope-197.json b/cutrope/source/rope-197.json new file mode 100644 index 0000000000000000000000000000000000000000..27b469bf0ce1900824bda12d580442feeb6019d0 --- /dev/null +++ b/cutrope/source/rope-197.json @@ -0,0 +1,121 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 510, + "y": 421 + }, + { + "name": 52, + "x": 341, + "y": 248 + }, + { + "name": 3, + "x": 340, + "y": 141, + "timeout": -1 + }, + { + "name": 3, + "x": 339, + "y": 70, + "timeout": -1 + }, + { + "name": 3, + "x": 485, + "y": 339, + "timeout": -1 + }, + { + "name": 100, + "x": 406, + "y": 68, + "length": 100, + "wheel": false, + "gun": false, + "radius": 63, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 272, + "y": 68, + "length": 100, + "wheel": false, + "gun": false, + "radius": 63, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 407, + "y": 156, + "length": 85, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 271, + "y": 155, + "length": 85, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 55, + "x": 341, + "y": 198, + "angle": 270 + }, + { + "name": 55, + "x": 340, + "y": 318, + "angle": 270 + } + ], + "levelId": "02-23", + "levelEditedAt": "2026-05-05T14:42:27.880Z", + "textCommandSolution": "activate_pump 1 when candy_still for 0.3 and candy_near 1000,570,60\nactivate_pump 0 when candy_y < 370\ncut_rope 1 when candy_still for 0.3 and candy_near 1000,360,60\ncut_rope 3\ncut_rope 0 when candy_x > 1130\ncut_rope 2 when candy_x > 1200", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:42:37.343Z", + "mirroredFrom": "02-23.json" +} diff --git a/cutrope/source/rope-198.json b/cutrope/source/rope-198.json new file mode 100644 index 0000000000000000000000000000000000000000..0a80173f4c3be0abdca8ccd10907ff972c99d814 --- /dev/null +++ b/cutrope/source/rope-198.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": 288, + "y": 318 + }, + { + "name": 2, + "x": 570, + "y": 222 + }, + { + "name": 3, + "x": 433, + "y": 86, + "timeout": -1 + }, + { + "name": 3, + "x": 367, + "y": 142, + "timeout": -1 + }, + { + "name": 3, + "x": 493, + "y": 142, + "timeout": -1 + }, + { + "name": 100, + "x": 172, + "y": 219, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 416, + "y": 233, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 210, + "y": 419, + "length": 65, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "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", + "mirroredFrom": "01-24.json" +} diff --git a/cutrope/source/rope-199.json b/cutrope/source/rope-199.json new file mode 100644 index 0000000000000000000000000000000000000000..d7d3474dd35f20e202c182d85af5fd033f67769e --- /dev/null +++ b/cutrope/source/rope-199.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": 235, + "y": 112 + }, + { + "name": 2, + "x": 0, + "y": 410 + }, + { + "name": 100, + "x": 157, + "y": 114, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 234, + "y": 46, + "length": 45, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 157, + "y": 45, + "length": 120, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 156, + "y": 192, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 60, + "y": 229, + "timeout": -1 + }, + { + "name": 3, + "x": 262, + "y": 279, + "timeout": -1 + }, + { + "name": 3, + "x": 131, + "y": 416, + "timeout": -1 + } + ], + "levelId": "02-05", + "levelEditedAt": "2026-05-05T13:46:26.528Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_x < 920\ncut_rope 0 when candy_near 1200,630,60\ncut_rope 3 when candy_near 770,920,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:46:35.168Z", + "mirroredFrom": "02-05.json" +} diff --git a/cutrope/source/rope-200.json b/cutrope/source/rope-200.json new file mode 100644 index 0000000000000000000000000000000000000000..a9307d3ff6cc945ab65d939d05bda5f31121f357 --- /dev/null +++ b/cutrope/source/rope-200.json @@ -0,0 +1,127 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 264, + "y": 98, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 119, + "y": 321, + "length": 100, + "wheel": false, + "gun": false, + "radius": 55, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 99, + "y": 54 + }, + { + "name": 52, + "x": 163, + "y": 158 + }, + { + "name": 100, + "x": 69, + "y": 102, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 109, + "y": 232, + "timeout": 5 + }, + { + "name": 3, + "x": 70, + "y": 159, + "timeout": 25 + }, + { + "name": 54, + "x": 63, + "y": 396 + }, + { + "name": 3, + "x": 68, + "y": 320, + "timeout": -1 + }, + { + "name": 100, + "x": 68, + "y": 223, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 264, + "y": 219, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "07-07", + "levelEditedAt": "2026-05-05T17:45:59.558Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 610,370,60\ncut_rope 4\ncut_rope 2 when candy_x < 420\ncut_rope 3 when candy_y > 690\ncut_rope 1 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:47:01.925Z" +} diff --git a/cutrope/source/rope-201.json b/cutrope/source/rope-201.json new file mode 100644 index 0000000000000000000000000000000000000000..62b9354121fdfe455ecce8c02a8ee67aafe6c2cd --- /dev/null +++ b/cutrope/source/rope-201.json @@ -0,0 +1,146 @@ +{ + "settings": [ + { + "name": 0, + "width": 640, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 148, + "y": 302 + }, + { + "name": 100, + "x": 151, + "y": 189, + "length": 38, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 150, + "y": 420, + "length": 38, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 56, + "x": 149, + "y": 93, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 267, + "y": 413, + "group": 0, + "angle": 270 + }, + { + "name": 100, + "x": 328, + "y": 184, + "length": 50, + "wheel": false, + "gun": false, + "radius": 70, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 414, + "y": 296 + }, + { + "name": 3, + "x": 409, + "y": 187, + "timeout": -1 + }, + { + "name": 100, + "x": 491, + "y": 187, + "length": 50, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 2, + "x": 56, + "y": 407 + }, + { + "name": 3, + "x": 493, + "y": 60, + "timeout": -1 + }, + { + "name": 56, + "x": 497, + "y": 407, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 49, + "y": 94, + "group": 1, + "angle": 90 + }, + { + "name": 3, + "x": 251, + "y": 187, + "timeout": -1 + }, + { + "name": 54, + "x": 51, + "y": 233 + } + ], + "levelId": "00-23", + "levelEditedAt": "2026-05-05T10:46:32.156Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_x > 1220\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" +} diff --git a/cutrope/source/rope-202.json b/cutrope/source/rope-202.json new file mode 100644 index 0000000000000000000000000000000000000000..953b7a12e545d4043c1eb2a51fcae5c9442bc6ec --- /dev/null +++ b/cutrope/source/rope-202.json @@ -0,0 +1,125 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 186, + "y": 226, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 244, + "y": 109 + }, + { + "name": 54, + "x": 242, + "y": 109 + }, + { + "name": 100, + "x": 295, + "y": 229, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 242, + "y": 337, + "timeout": -1 + }, + { + "name": 56, + "x": 241, + "y": 414, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 56, + "y": 415, + "group": 0, + "angle": 270 + }, + { + "name": 2, + "x": 147, + "y": 419 + }, + { + "name": 54, + "x": 242, + "y": 336 + }, + { + "name": 3, + "x": 68, + "y": 265, + "timeout": -1 + }, + { + "name": 3, + "x": 123, + "y": 98, + "timeout": -1 + }, + { + "name": 82, + "x": 28, + "y": 264, + "angle": 90, + "size": 2 + }, + { + "name": 55, + "x": 123, + "y": 267, + "angle": 180 + }, + { + "name": 54, + "x": 243, + "y": 242 + } + ], + "textCommandSolution": "pop_bubble 0 \ncut_rope 0,1\npop_bubble 2 when candy_y < 100\nactivate_pump 0 when candy_near 750,590,50\npop_bubble 1 when candy_y < 180", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:42:13.860Z", + "mirroredFrom": "06-24.json" +} diff --git a/cutrope/source/rope-203.json b/cutrope/source/rope-203.json new file mode 100644 index 0000000000000000000000000000000000000000..1d0f8bea12495089026e7fa8e4b1d82f2eef72cd --- /dev/null +++ b/cutrope/source/rope-203.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": 242 + }, + { + "name": 52, + "x": 65, + "y": 171 + }, + { + "name": 3, + "x": 186, + "y": 185, + "timeout": -1 + }, + { + "name": 3, + "x": 131, + "y": 184, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 147, + "timeout": -1 + }, + { + "name": 100, + "x": 244, + "y": 243, + "length": 160, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 65, + "y": 170 + }, + { + "name": 4, + "x": 231, + "y": 288, + "locale": "en", + "text": "You can restart the level by pressing the", + "width": 140 + }, + { + "name": 4, + "x": 194, + "y": 352, + "locale": "en", + "text": "button", + "width": 100 + }, + { + "name": 12, + "x": 191, + "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 + } + ], + "textCommandSolution": "pop_bubble 0 when candy_near 920,200,30", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T07:02:26.102Z", + "mirroredFrom": "00-04.json" +} diff --git a/cutrope/source/rope-204.json b/cutrope/source/rope-204.json new file mode 100644 index 0000000000000000000000000000000000000000..f2925bcd10bab686c153a867e303d950d8cb8d8a --- /dev/null +++ b/cutrope/source/rope-204.json @@ -0,0 +1,110 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 156, + "y": 146 + }, + { + "name": 2, + "x": 49, + "y": 428 + }, + { + "name": 100, + "x": 253, + "y": 46, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 60, + "y": 45, + "length": 105, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 62, + "y": 149, + "length": 145, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 253, + "y": 229, + "length": 165, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 61, + "y": 230, + "length": 165, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 3, + "x": 63, + "y": 183, + "timeout": -1 + }, + { + "name": 3, + "x": 64, + "y": 335, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 419, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 1 when candy_x < 740\ncut_rope 2 when candy_still for 0.3 \ncut_rope 3 when candy_y > 910", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:17:43.380Z", + "mirroredFrom": "01-18.json" +} diff --git a/cutrope/source/rope-205.json b/cutrope/source/rope-205.json new file mode 100644 index 0000000000000000000000000000000000000000..f2692811bf3fbc3cd6cfb79e94efa287613c2d94 --- /dev/null +++ b/cutrope/source/rope-205.json @@ -0,0 +1,355 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 162, + "y": 101 + }, + { + "name": 2, + "x": 162, + "y": 426 + }, + { + "name": 3, + "x": 161, + "y": 216, + "timeout": 0 + }, + { + "name": 3, + "x": 162, + "y": 345, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 284, + "timeout": -1 + }, + { + "name": 100, + "x": 85, + "y": 47, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": 0, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 245, + "y": 47, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": 0, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 236, + "y": 250, + "length": 100, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 88, + "y": 248, + "length": 100, + "wheel": false, + "gun": false, + "radius": 80, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 4, + "x": 9, + "y": 56, + "locale": "en", + "text": "You can cut several ropes at once", + "width": 300 + }, + { + "name": 5, + "x": 56, + "y": 96, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 108, + "y": 96, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 96, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 212, + "y": 95, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 266, + "y": 95, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 19, + "y": 95, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 11, + "x": 304, + "y": 96, + "locale": "en", + "angle": 180, + "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 + } + ], + "textCommandSolution": "cut_rope 0,1 when candy_still for 0.3 \ncut_rope 2,3 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:20:05.630Z" +} diff --git a/cutrope/source/rope-206.json b/cutrope/source/rope-206.json new file mode 100644 index 0000000000000000000000000000000000000000..b66c83904f15eb6752c4599834a61dc7bac7fa1a --- /dev/null +++ b/cutrope/source/rope-206.json @@ -0,0 +1,93 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 341, + "y": 421 + }, + { + "name": 52, + "x": 497, + "y": 135 + }, + { + "name": 3, + "x": 501, + "y": 290, + "timeout": -1 + }, + { + "name": 3, + "x": 501, + "y": 389, + "timeout": -1 + }, + { + "name": 3, + "x": 502, + "y": 340, + "timeout": -1 + }, + { + "name": 100, + "x": 568, + "y": 38, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 411, + "y": 41, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 243, + "y": 44, + "length": 380, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "textCommandSolution": "cut_rope 0,1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:43:10.214Z", + "mirroredFrom": "03-12.json" +} diff --git a/cutrope/source/rope-207.json b/cutrope/source/rope-207.json new file mode 100644 index 0000000000000000000000000000000000000000..58c2b72b70892430ba5c000def526c78aca155f7 --- /dev/null +++ b/cutrope/source/rope-207.json @@ -0,0 +1,153 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 161, + "y": 220 + }, + { + "name": 2, + "x": 320, + "y": 349 + }, + { + "name": 3, + "x": 264, + "y": 182, + "timeout": -1 + }, + { + "name": 3, + "x": 52, + "y": 180, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 171, + "timeout": -1 + }, + { + "name": 55, + "x": 277, + "y": 233, + "angle": 180 + }, + { + "name": 100, + "x": 162, + "y": 88, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 55, + "x": 161, + "y": 334, + "angle": -90 + }, + { + "name": 4, + "x": 22, + "y": 357, + "locale": "en", + "text": "Click the air cushion to blow object", + "width": 180 + }, + { + "name": 8, + "x": 101, + "y": 347, + "locale": "en", + "angle": 180, + "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", + "textCommandSolution": "activate_pump 1\nactivate_pump 0 when candy_still for 0.3 \ncut_rope 0 when candy_x > 1130", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:37:47.230Z" +} diff --git a/cutrope/source/rope-208.json b/cutrope/source/rope-208.json new file mode 100644 index 0000000000000000000000000000000000000000..8891521ad2abd170d738e32e8a641dc0443f71fb --- /dev/null +++ b/cutrope/source/rope-208.json @@ -0,0 +1,91 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 105, + "y": 210 + }, + { + "name": 2, + "x": 130, + "y": 322 + }, + { + "name": 55, + "x": 36, + "y": 208, + "angle": 0 + }, + { + "name": 100, + "x": 98, + "y": 82, + "length": 90, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 219, + "y": 209, + "length": 95, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 3, + "x": 221, + "y": 253, + "timeout": -1 + }, + { + "name": 3, + "x": 222, + "y": 345, + "timeout": -1 + }, + { + "name": 3, + "x": 222, + "y": 82, + "timeout": -1 + }, + { + "name": 55, + "x": 283, + "y": 343, + "angle": 180 + }, + { + "name": 54, + "x": 223, + "y": 144 + } + ], + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 830,470,60\ncut_rope 0 when candy_still for 0.3 and candy_near 1070,180,60\npop_bubble 0 when candy_still for 0.3 and candy_near 1080,180,60\nactivate_pump 1 when candy_y > 760", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:40:36.220Z", + "mirroredFrom": "02-03.json" +} diff --git a/cutrope/source/rope-209.json b/cutrope/source/rope-209.json new file mode 100644 index 0000000000000000000000000000000000000000..c07259c0570a1a292e95bcd23b0114f26c4edcb8 --- /dev/null +++ b/cutrope/source/rope-209.json @@ -0,0 +1,122 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 39, + "y": 358 + }, + { + "name": 51, + "x": 286, + "y": 348 + }, + { + "name": 2, + "x": 163, + "y": 61 + }, + { + "name": 100, + "x": 162, + "y": 275, + "length": 120, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 162, + "y": 275, + "length": 120, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 81, + "y": 417 + }, + { + "name": 100, + "x": 35, + "y": 219, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 283, + "y": 217, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 236, + "y": 416 + }, + { + "name": 54, + "x": 160, + "y": 417 + }, + { + "name": 3, + "x": 160, + "y": 212, + "timeout": -1 + }, + { + "name": 3, + "x": 162, + "y": 417, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 143, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 2,3\npop_bubble 0 when candy_still for 0.3 and candy_near 970,270,60\ncut_rope 0 when candy_still for 0.3 and candy_near 960,270,60\ncut_rope 1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:53:18.737Z" +} diff --git a/cutrope/source/rope-210.json b/cutrope/source/rope-210.json new file mode 100644 index 0000000000000000000000000000000000000000..9cbdd1533450cdbdd8d70a2c4fcb17c8128b24db --- /dev/null +++ b/cutrope/source/rope-210.json @@ -0,0 +1,124 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 45, + "y": 76 + }, + { + "name": 55, + "x": 272, + "y": 329, + "angle": 270 + }, + { + "name": 56, + "x": 270, + "y": 102, + "group": 1, + "angle": 90 + }, + { + "name": 56, + "x": 161, + "y": 399, + "group": 0, + "angle": 270 + }, + { + "name": 54, + "x": 156, + "y": 160 + }, + { + "name": 56, + "x": 47, + "y": 398, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 153, + "y": 105, + "group": 1, + "angle": 90 + }, + { + "name": 3, + "x": 40, + "y": 159, + "timeout": -1 + }, + { + "name": 3, + "x": 158, + "y": 161, + "timeout": -1 + }, + { + "name": 3, + "x": 271, + "y": 119, + "timeout": -1 + }, + { + "name": 100, + "x": 240, + "y": 144, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 270, + "y": 182 + }, + { + "name": 54, + "x": 42, + "y": 158 + }, + { + "name": 100, + "x": 301, + "y": 143, + "length": 30, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "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" +} diff --git a/cutrope/source/rope-211.json b/cutrope/source/rope-211.json new file mode 100644 index 0000000000000000000000000000000000000000..4e1bd8dea299ea7c5bb45b0bbad313d90e66ebb5 --- /dev/null +++ b/cutrope/source/rope-211.json @@ -0,0 +1,116 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 56, + "x": 285, + "y": 340, + "group": 0, + "angle": 250 + }, + { + "name": 56, + "x": 219, + "y": 373, + "group": 1, + "angle": 250 + }, + { + "name": 56, + "x": 100, + "y": 373, + "group": 0, + "angle": 290 + }, + { + "name": 56, + "x": 30, + "y": 340, + "group": 1, + "angle": 290 + }, + { + "name": 52, + "x": 158, + "y": 164 + }, + { + "name": 100, + "x": 214, + "y": 47, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 92, + "y": 50, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 2, + "x": 234, + "y": 103 + }, + { + "name": 3, + "x": 155, + "y": 329, + "timeout": 15 + }, + { + "name": 3, + "x": 182, + "y": 293, + "timeout": -1 + }, + { + "name": 3, + "x": 59, + "y": 300, + "timeout": -1 + }, + { + "name": 54, + "x": 159, + "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 950,380,60\ncut_rope 0 when candy_x > 990", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:27:46.690Z", + "mirroredFrom": "09-07.json" +} diff --git a/cutrope/source/rope-212.json b/cutrope/source/rope-212.json new file mode 100644 index 0000000000000000000000000000000000000000..b6e133883c0c09979ceaf53f24aaa66312594cdb --- /dev/null +++ b/cutrope/source/rope-212.json @@ -0,0 +1,76 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 461, + "y": 427 + }, + { + "name": 52, + "x": 402, + "y": 523 + }, + { + "name": 3, + "x": 402, + "y": 378, + "timeout": -1 + }, + { + "name": 3, + "x": 471, + "y": 282, + "timeout": -1 + }, + { + "name": 3, + "x": 470, + "y": 28, + "timeout": 20 + }, + { + "name": 53, + "x": 586, + "y": 109 + }, + { + "name": 100, + "x": 469, + "y": 105, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 403, + "y": 525 + } + ], + "levelId": "08-02", + "levelEditedAt": "2026-05-05T17:54:26.919Z", + "textCommandSolution": "toggle_gravity when candy_still for 0.3 and candy_near 1300,-10,60\ncut_rope 0 when candy_still for 0.3 and candy_near 1290,480,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:55:27.734Z" +} diff --git a/cutrope/source/rope-213.json b/cutrope/source/rope-213.json new file mode 100644 index 0000000000000000000000000000000000000000..ee03d7c8da04f9b74db64e3104216d81ef294249 --- /dev/null +++ b/cutrope/source/rope-213.json @@ -0,0 +1,105 @@ +{ + "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": "L" + }, + { + "name": 54, + "x": 156, + "y": 374 + }, + { + "name": 3, + "x": 160, + "y": 375, + "timeout": -1 + }, + { + "name": 3, + "x": 120, + "y": 355, + "timeout": -1 + }, + { + "name": 3, + "x": 200, + "y": 355, + "timeout": -1 + }, + { + "name": 2, + "x": 160, + "y": 38 + }, + { + "name": 52, + "x": 156, + "y": 177 + }, + { + "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": "L" + }, + { + "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": "L" + } + ], + "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 760,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" +} diff --git a/cutrope/source/rope-214.json b/cutrope/source/rope-214.json new file mode 100644 index 0000000000000000000000000000000000000000..c2cd1363be441afcc7737a051a0c9b8e52c56e9e --- /dev/null +++ b/cutrope/source/rope-214.json @@ -0,0 +1,122 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 154, + "y": 360 + }, + { + "name": 54, + "x": 157, + "y": 358 + }, + { + "name": 2, + "x": 157, + "y": 439 + }, + { + "name": 81, + "x": 237, + "y": 266, + "angle": 160, + "size": 1 + }, + { + "name": 81, + "x": 65, + "y": 263, + "angle": 200, + "size": 1 + }, + { + "name": 50, + "x": 219, + "y": 176 + }, + { + "name": 3, + "x": 156, + "y": 298, + "timeout": 6 + }, + { + "name": 3, + "x": 153, + "y": 141, + "timeout": 7 + }, + { + "name": 3, + "x": 151, + "y": 79, + "timeout": 8 + }, + { + "name": 82, + "x": 100, + "y": 64, + "angle": 160, + "size": 2 + }, + { + "name": 82, + "x": 200, + "y": 64, + "angle": 200, + "size": 2 + }, + { + "name": 100, + "x": 59, + "y": 446, + "length": 100, + "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": 252, + "y": 444, + "length": 100, + "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 0,1 when candy_still for 0.3\npop_bubble 0 when candy_y < 190", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:42:35.574Z", + "mirroredFrom": "09-16.json" +} diff --git a/cutrope/source/rope-215.json b/cutrope/source/rope-215.json new file mode 100644 index 0000000000000000000000000000000000000000..cd8fb3fd574f352f3fcc5f7ebe64b3a76f96388f --- /dev/null +++ b/cutrope/source/rope-215.json @@ -0,0 +1,118 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 85, + "y": 438 + }, + { + "name": 100, + "x": 48, + "y": 60, + "length": 60, + "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": 134, + "y": 154 + }, + { + "name": 3, + "x": 265, + "y": 245, + "timeout": -1 + }, + { + "name": 3, + "x": 124, + "y": 390, + "timeout": -1 + }, + { + "name": 3, + "x": 192, + "y": 153, + "timeout": -1 + }, + { + "name": 100, + "x": 148, + "y": 354, + "length": 40, + "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": 299, + "y": 63, + "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": 23, + "y": 302, + "length": 60, + "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 3 when candy_still for 0.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-05T18:34:06.240Z", + "mirroredFrom": "09-11.json" +} diff --git a/cutrope/source/rope-216.json b/cutrope/source/rope-216.json new file mode 100644 index 0000000000000000000000000000000000000000..b02876651c9d046386d0d323b3c0add9e301430a --- /dev/null +++ b/cutrope/source/rope-216.json @@ -0,0 +1,112 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 433, + "y": 110 + }, + { + "name": 2, + "x": 163, + "y": 419 + }, + { + "name": 100, + "x": 336, + "y": 41, + "length": 120, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 175, + "y": 38, + "length": 250, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 432, + "y": 39, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 162, + "y": 322 + }, + { + "name": 100, + "x": 162, + "y": 323, + "length": 100, + "wheel": false, + "gun": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 301, + "y": 272, + "timeout": -1 + }, + { + "name": 3, + "x": 163, + "y": 145, + "timeout": -1 + }, + { + "name": 3, + "x": 376, + "y": 217, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 2\ncut_rope 0 when candy_x < 1120\ncut_rope 3 when candy_still for 0.3 and candy_near 610,500,60\npop_bubble 0 when candy_y < 300\ncut_rope 1 when candy_y < 440", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:22:55.434Z", + "mirroredFrom": "03-24.json" +} diff --git a/cutrope/source/rope-217.json b/cutrope/source/rope-217.json new file mode 100644 index 0000000000000000000000000000000000000000..27e729804480f102dca2379b76eaed3e657e5f31 --- /dev/null +++ b/cutrope/source/rope-217.json @@ -0,0 +1,68 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 322, + "y": 41 + }, + { + "name": 82, + "x": 322, + "y": 449, + "angle": 0, + "size": 2 + }, + { + "name": 3, + "x": 338, + "y": 148, + "timeout": -1 + }, + { + "name": 3, + "x": 319, + "y": 121, + "timeout": -1 + }, + { + "name": 54, + "x": 321, + "y": 254 + }, + { + "name": 55, + "x": 320, + "y": 316, + "angle": 90 + }, + { + "name": 3, + "x": 300, + "y": 94, + "timeout": -1 + }, + { + "name": 52, + "x": 321, + "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" +} diff --git a/cutrope/source/rope-218.json b/cutrope/source/rope-218.json new file mode 100644 index 0000000000000000000000000000000000000000..be6b49b1af5c2c67215bfe7018bb80bca2f59c9e --- /dev/null +++ b/cutrope/source/rope-218.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": 162, + "y": 151 + }, + { + "name": 2, + "x": 165, + "y": 46 + }, + { + "name": 3, + "x": 164, + "y": 419, + "timeout": -1 + }, + { + "name": 3, + "x": 64, + "y": 358, + "timeout": -1 + }, + { + "name": 3, + "x": 162, + "y": 256, + "timeout": -1 + }, + { + "name": 100, + "x": 295, + "y": 108, + "length": 115, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 31, + "y": 108, + "length": 115, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 28, + "y": 189, + "length": 150, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 295, + "y": 189, + "length": 150, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 292, + "y": 268, + "length": 190, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 29, + "y": 267, + "length": 190, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 162, + "y": 420 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 970,410,60\ncut_rope 3\ncut_rope 1 when candy_x < 760\ncut_rope 2 when candy_still for 0.3 and candy_near 800,820,60\ncut_rope 5 when candy_still for 0.3 and candy_near 960,190,60\ncut_rope 4", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:25:14.480Z" +} diff --git a/cutrope/source/rope-219.json b/cutrope/source/rope-219.json new file mode 100644 index 0000000000000000000000000000000000000000..7abd99f4ec5ccf1b5ebb6f4390b2418e05d7a86e --- /dev/null +++ b/cutrope/source/rope-219.json @@ -0,0 +1,113 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 240, + "y": 411 + }, + { + "name": 52, + "x": 181, + "y": 172 + }, + { + "name": 100, + "x": 345, + "y": 136, + "length": 100, + "wheel": false, + "gun": false, + "radius": 65, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 185, + "y": 79, + "length": 60, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 250, + "y": 248, + "length": 100, + "wheel": false, + "gun": false, + "radius": 65, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 256, + "y": 127, + "timeout": -1 + }, + { + "name": 3, + "x": 340, + "y": 245, + "timeout": -1 + }, + { + "name": 3, + "x": 257, + "y": 335, + "timeout": -1 + }, + { + "name": 54, + "x": 345, + "y": 307 + }, + { + "name": 100, + "x": 436, + "y": 243, + "length": 100, + "wheel": false, + "gun": false, + "radius": 65, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "02-10", + "levelEditedAt": "2026-05-05T13:56:39.211Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 3 when candy_still for 0.3 and candy_near 1020,390,60\npop_bubble 0 when candy_still for 0.3 and candy_near 830,290,60\ncut_rope 2 when candy_y > 310\ncut_rope 0 when candy_near 1100,500,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:56:54.381Z" +} diff --git a/cutrope/source/rope-220.json b/cutrope/source/rope-220.json new file mode 100644 index 0000000000000000000000000000000000000000..6fc6d71057ce0a498bde9f01437cf23f6ce90bf1 --- /dev/null +++ b/cutrope/source/rope-220.json @@ -0,0 +1,89 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 246, + "y": 361 + }, + { + "name": 100, + "x": 243, + "y": 445, + "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": 3, + "x": 213, + "y": 209, + "timeout": -1 + }, + { + "name": 2, + "x": 63, + "y": 156 + }, + { + "name": 54, + "x": 246, + "y": 361 + }, + { + "name": 3, + "x": 188, + "y": 231, + "timeout": -1 + }, + { + "name": 3, + "x": 240, + "y": 187, + "timeout": -1 + }, + { + "name": 100, + "x": 164, + "y": 93, + "length": 60, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": 70, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1150,810,60\npop_bubble 0 when candy_y < 120", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:40:17.555Z", + "mirroredFrom": "09-15.json" +} diff --git a/cutrope/source/rope-221.json b/cutrope/source/rope-221.json new file mode 100644 index 0000000000000000000000000000000000000000..d44ee960d622777801c49157d3759cc2e37e221f --- /dev/null +++ b/cutrope/source/rope-221.json @@ -0,0 +1,118 @@ +{ + "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": 159, + "y": 40 + }, + { + "name": 54, + "x": 161, + "y": 262 + }, + { + "name": 54, + "x": 160, + "y": 352 + }, + { + "name": 100, + "x": 35, + "y": 355, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 288, + "y": 356, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 288, + "y": 258, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 35, + "y": 260, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 160, + "y": 109, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 400, + "timeout": -1 + }, + { + "name": 3, + "x": 209, + "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" +} diff --git a/cutrope/source/rope-222.json b/cutrope/source/rope-222.json new file mode 100644 index 0000000000000000000000000000000000000000..4a118df21d03197a2dcad5f2f019ee67e7104960 --- /dev/null +++ b/cutrope/source/rope-222.json @@ -0,0 +1,96 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 248, + "y": 53 + }, + { + "name": 52, + "x": 341, + "y": 151 + }, + { + "name": 3, + "x": 339, + "y": 406, + "timeout": -1 + }, + { + "name": 100, + "x": 275, + "y": 64, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 339, + "y": 451, + "timeout": -1 + }, + { + "name": 53, + "x": 342, + "y": 66 + }, + { + "name": 54, + "x": 339, + "y": 302 + }, + { + "name": 100, + "x": 409, + "y": 66, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 55, + "x": 466, + "y": 151, + "angle": 180 + }, + { + "name": 3, + "x": 276, + "y": 131, + "timeout": 11 + } + ], + "levelId": "08-04", + "levelEditedAt": "2026-05-05T17:57:18.026Z", + "textCommandSolution": "cut_rope 0,1 \ntoggle_gravity when candy_y > 720\ntoggle_gravity when candy_y > 1000\nactivate_pump 0 when candy_y < 400", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:58:16.101Z" +} diff --git a/cutrope/source/rope-223.json b/cutrope/source/rope-223.json new file mode 100644 index 0000000000000000000000000000000000000000..7277e50b455824ddafb7452237d0a06944523759 --- /dev/null +++ b/cutrope/source/rope-223.json @@ -0,0 +1,122 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 160, + "y": 214 + }, + { + "name": 100, + "x": 268, + "y": 204, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 52, + "x": 160, + "y": 339 + }, + { + "name": 3, + "x": 104, + "y": 256, + "timeout": -1 + }, + { + "name": 3, + "x": 186, + "y": 188, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 157, + "timeout": -1 + }, + { + "name": 82, + "x": 244, + "y": 335, + "angle": 80, + "size": 2 + }, + { + "name": 100, + "x": 48, + "y": 204, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 158, + "y": 77, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 201, + "y": 352 + }, + { + "name": 54, + "x": 112, + "y": 348 + }, + { + "name": 82, + "x": 65, + "y": 337, + "angle": 280, + "size": 2 + } + ], + "levelId": "06-08", + "levelEditedAt": "2026-05-05T17:19:48.652Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 960,770,60\npop_bubble 1 when candy_y < 70\ncut_rope 2 when candy_near 1020,350,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:20:01.216Z", + "mirroredFrom": "06-08.json" +} diff --git a/cutrope/source/rope-224.json b/cutrope/source/rope-224.json new file mode 100644 index 0000000000000000000000000000000000000000..3ddeb19094915e47bfecca2ae7b69dbab2c64820 --- /dev/null +++ b/cutrope/source/rope-224.json @@ -0,0 +1,222 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 161, + "y": 425 + }, + { + "name": 52, + "x": 257, + "y": 238 + }, + { + "name": 3, + "x": 223, + "y": 311, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 140, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 66, + "timeout": -1 + }, + { + "name": 100, + "x": 257, + "y": 123, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 161, + "y": 245, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 161, + "y": 337 + }, + { + "name": 4, + "x": 125, + "y": 289, + "locale": "en", + "text": "The bubble will lift the candy up", + "width": 110 + }, + { + "name": 8, + "x": 107, + "y": 367, + "locale": "en", + "angle": 130, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 135, + "y": 155, + "locale": "en", + "text": "Click to pop the bubble", + "width": 120 + }, + { + "name": 13, + "x": 79, + "y": 143, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 4, + "x": 169, + "y": 284, + "locale": "ru", + "text": "Пузырь подымет леденец вверх", + "width": 160 + }, + { + "name": 8, + "x": 210, + "y": 350, + "locale": "ru", + "angle": 20, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 162, + "y": 161, + "locale": "ru", + "text": "Нажмите, чтобы лопнуть пузырь", + "width": 160 + }, + { + "name": 13, + "x": 239, + "y": 153, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 166, + "y": 255, + "locale": "fr", + "text": "La bulle va soulever le bonbon dans les airs", + "width": 150 + }, + { + "name": 8, + "x": 210, + "y": 350, + "locale": "fr", + "angle": 15, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 185, + "y": 155, + "locale": "fr", + "text": "Clique pour éclater la bulle", + "width": 160 + }, + { + "name": 13, + "x": 241, + "y": 147, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 194, + "y": 283, + "locale": "de", + "text": "Die Blase lässt die Süßigkeit schweben", + "width": 130 + }, + { + "name": 8, + "x": 212, + "y": 360, + "locale": "de", + "angle": 50, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 175, + "y": 154, + "locale": "de", + "text": "Klicke, um die Seifenblase platzen zu lassen", + "width": 140 + }, + { + "name": 13, + "x": 241, + "y": 146, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 1 when candy_near 970,300,30 for 1\npop_bubble 0 when candy_y<120", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T07:00:41.641Z", + "mirroredFrom": "00-03.json" +} diff --git a/cutrope/source/rope-225.json b/cutrope/source/rope-225.json new file mode 100644 index 0000000000000000000000000000000000000000..03f34340c143be7ea28b9e95ad56c41b11d8a1c0 --- /dev/null +++ b/cutrope/source/rope-225.json @@ -0,0 +1,71 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 159, + "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": "L" + }, + { + "name": 52, + "x": 162, + "y": 394 + }, + { + "name": 54, + "x": 161, + "y": 392 + }, + { + "name": 3, + "x": 170, + "y": 255, + "timeout": -1 + }, + { + "name": 3, + "x": 132, + "y": 224, + "timeout": -1 + }, + { + "name": 3, + "x": 175, + "y": 206, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:24:02.386Z" +} diff --git a/cutrope/source/rope-226.json b/cutrope/source/rope-226.json new file mode 100644 index 0000000000000000000000000000000000000000..3a2e5097cb212796de007cf7577402683afff2ee --- /dev/null +++ b/cutrope/source/rope-226.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": 111, + "y": 345 + }, + { + "name": 3, + "x": 296, + "y": 260, + "timeout": -1 + }, + { + "name": 3, + "x": 222, + "y": 358, + "timeout": -1 + }, + { + "name": 3, + "x": 321, + "y": 89, + "timeout": -1 + }, + { + "name": 100, + "x": 421, + "y": 61, + "length": 60, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 420, + "y": 150 + }, + { + "name": 55, + "x": 521, + "y": 153, + "angle": 180 + }, + { + "name": 100, + "x": 250, + "y": 261, + "length": 100, + "wheel": false, + "gun": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "levelId": "03-19", + "levelEditedAt": "2026-05-05T15:19:29.844Z", + "textCommandSolution": "activate_pump 0\ncut_rope 0 when candy_x < 1000\nactivate_pump 0 when candy_x < 670\ncut_rope 1 when candy_y > 630", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:19:35.838Z" +} diff --git a/cutrope/source/rope-227.json b/cutrope/source/rope-227.json new file mode 100644 index 0000000000000000000000000000000000000000..da61ccd43178823ed48bc73a2051183530af6aad --- /dev/null +++ b/cutrope/source/rope-227.json @@ -0,0 +1,202 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 3, + "x": 134, + "y": 297, + "timeout": -1 + }, + { + "name": 3, + "x": 54, + "y": 417, + "timeout": -1 + }, + { + "name": 3, + "x": 132, + "y": 410, + "timeout": -1 + }, + { + "name": 2, + "x": 61, + "y": 69 + }, + { + "name": 100, + "x": 134, + "y": 158, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 133, + "y": 351, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 226, + "y": 135 + }, + { + "name": 100, + "x": 135, + "y": 253, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 279, + "y": 37, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 172, + "y": 37, + "length": 70, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 315, + "y": 190, + "locale": "en", + "text": "Automatic ropes appear when candy gets into their area", + "width": 130 + }, + { + "name": 8, + "x": 222, + "y": 181, + "locale": "en", + "angle": 0, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 54, + "x": 54, + "y": 417 + } + ], + "ru": [ + { + "name": 8, + "x": 100, + "y": 181, + "locale": "ru", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 6, + "y": 190, + "locale": "ru", + "text": "Авто-веревки появляются, когда леденец попадает в их радиус", + "width": 150 + } + ], + "fr": [ + { + "name": 8, + "x": 98, + "y": 180, + "locale": "fr", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 5, + "y": 190, + "locale": "fr", + "text": "Les cordes automatiques apparaissent lorsqu'un bonbon arrive dans leur zone", + "width": 150 + } + ], + "de": [ + { + "name": 8, + "x": 100, + "y": 180, + "locale": "de", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 5, + "y": 189, + "locale": "de", + "text": "Sobald der Bonbon in ihrer Nähe ist, erscheinen automatisch Seile", + "width": 160 + } + ], + "levelId": "00-17", + "levelEditedAt": "2026-05-05T10:22:43.413Z", + "textCommandSolution": "cut_rope 3 \ncut_rope 4 when candy_x < 1020\ncut_rope 0 when candy_y > 570\ncut_rope 2 when candy_y > 780\ncut_rope 1 when candy_near 740,950,30", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:23:45.888Z", + "mirroredFrom": "00-17.json" +} diff --git a/cutrope/source/rope-228.json b/cutrope/source/rope-228.json new file mode 100644 index 0000000000000000000000000000000000000000..b2665e0cf5806a768a5c3a97d8775062c1c33e97 --- /dev/null +++ b/cutrope/source/rope-228.json @@ -0,0 +1,123 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 281, + "y": 358 + }, + { + "name": 50, + "x": 34, + "y": 348 + }, + { + "name": 2, + "x": 157, + "y": 61 + }, + { + "name": 100, + "x": 158, + "y": 275, + "length": 120, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 158, + "y": 275, + "length": 120, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 239, + "y": 417 + }, + { + "name": 100, + "x": 285, + "y": 219, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 37, + "y": 217, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 84, + "y": 416 + }, + { + "name": 54, + "x": 160, + "y": 417 + }, + { + "name": 3, + "x": 160, + "y": 212, + "timeout": -1 + }, + { + "name": 3, + "x": 158, + "y": 417, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 143, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 2,3\npop_bubble 0 when candy_still for 0.3 and candy_near 950,270,60\ncut_rope 0 when candy_still for 0.3 and candy_near 960,270,60\ncut_rope 1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:53:18.737Z", + "mirroredFrom": "05-02.json" +} diff --git a/cutrope/source/rope-229.json b/cutrope/source/rope-229.json new file mode 100644 index 0000000000000000000000000000000000000000..3bec91fae9db5bfd9b311b221194b7ce82b0db16 --- /dev/null +++ b/cutrope/source/rope-229.json @@ -0,0 +1,123 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 2, + "x": 298, + "y": 409 + }, + { + "name": 52, + "x": 160, + "y": 149 + }, + { + "name": 3, + "x": 258, + "y": 356, + "timeout": -1 + }, + { + "name": 3, + "x": 66, + "y": 358, + "timeout": -1 + }, + { + "name": 3, + "x": 267, + "y": 196, + "timeout": -1 + }, + { + "name": 100, + "x": 164, + "y": 42, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 266, + "y": 84, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 68, + "y": 85, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 68, + "y": 232, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 164, + "y": 287, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 269, + "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 1160,520,40\ncut_rope 5 when candy_y > 820\ncut_rope 4 when candy_near 1100,900,40 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T11:30:02.639Z" +} diff --git a/cutrope/source/rope-230.json b/cutrope/source/rope-230.json new file mode 100644 index 0000000000000000000000000000000000000000..c560f638d677e99a60bd5d142deaef56be6b2e61 --- /dev/null +++ b/cutrope/source/rope-230.json @@ -0,0 +1,107 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 190, + "y": 395 + }, + { + "name": 52, + "x": 394, + "y": 183 + }, + { + "name": 100, + "x": 457, + "y": 67, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 453, + "y": 244, + "length": 180, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 181, + "y": 68, + "length": 320, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 317, + "y": 70, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 278, + "y": 338, + "timeout": -1 + }, + { + "name": 3, + "x": 225, + "y": 221, + "timeout": -1 + }, + { + "name": 3, + "x": 333, + "y": 218, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 3 when candy_x < 820\ncut_rope 1 when candy_y > 870", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:16:32.813Z", + "mirroredFrom": "01-17.json" +} diff --git a/cutrope/source/rope-231.json b/cutrope/source/rope-231.json new file mode 100644 index 0000000000000000000000000000000000000000..9e54fcd5f9ca5ff08f0b2d90c8bbe47c74b875b8 --- /dev/null +++ b/cutrope/source/rope-231.json @@ -0,0 +1,123 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 156, + "y": 266 + }, + { + "name": 2, + "x": 84, + "y": 73 + }, + { + "name": 100, + "x": 166, + "y": 129, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 37, + "y": 269, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 243, + "y": 382, + "timeout": -1 + }, + { + "name": 3, + "x": 62, + "y": 378, + "timeout": -1 + }, + { + "name": 3, + "x": 85, + "y": 163, + "timeout": -1 + }, + { + "name": 82, + "x": 13, + "y": 385, + "angle": 90, + "size": 2 + }, + { + "name": 54, + "x": 243, + "y": 173 + }, + { + "name": 56, + "x": 117, + "y": 382, + "group": 0, + "angle": 180 + }, + { + "name": 56, + "x": 241, + "y": 104, + "group": 0, + "angle": 90 + }, + { + "name": 100, + "x": 286, + "y": 274, + "length": 95, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 240, + "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" +} diff --git a/cutrope/source/rope-232.json b/cutrope/source/rope-232.json new file mode 100644 index 0000000000000000000000000000000000000000..4c1e3180df3543e2d722220a617dd241c5a30952 --- /dev/null +++ b/cutrope/source/rope-232.json @@ -0,0 +1,153 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 72, + "y": 384 + }, + { + "name": 56, + "x": 261, + "y": 367, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 66, + "y": 114, + "group": 0, + "angle": 90 + }, + { + "name": 52, + "x": 265, + "y": 173 + }, + { + "name": 100, + "x": 264, + "y": 69, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": 0, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 4, + "x": 244, + "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": 202, + "y": 347, + "locale": "en", + "angle": 180, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 3, + "x": 264, + "y": 328, + "timeout": -1 + }, + { + "name": 3, + "x": 61, + "y": 177, + "timeout": -1 + }, + { + "name": 3, + "x": 70, + "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", + "mirroredFrom": "04-01.json" +} diff --git a/cutrope/source/rope-233.json b/cutrope/source/rope-233.json new file mode 100644 index 0000000000000000000000000000000000000000..20b06a25ca03730d2cdad90dc1d29625abac5926 --- /dev/null +++ b/cutrope/source/rope-233.json @@ -0,0 +1,363 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 158, + "y": 147 + }, + { + "name": 100, + "x": 159, + "y": 45, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 2, + "x": 161, + "y": 427 + }, + { + "name": 3, + "x": 162, + "y": 230, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 295, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 361, + "timeout": -1 + }, + { + "name": 4, + "x": 174, + "y": 46, + "locale": "en", + "text": "Slide across to cut the rope", + "width": 130 + }, + { + "name": 4, + "x": 182, + "y": 335, + "locale": "en", + "text": "Deliver candy to Om Nom", + "width": 130 + }, + { + "name": 5, + "x": 57, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 8, + "x": 231, + "y": 416, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 109, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 161, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 213, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 265, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 14, + "x": 93, + "y": 149, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 2 + } + ], + "ru": [ + { + "name": 14, + "x": 93, + "y": 156, + "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": 17, + "locale": "ru", + "text": "Проведите или нажмите курсором, чтобы перерезать веревку", + "width": 160 + }, + { + "name": 8, + "x": 231, + "y": 421, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 196, + "y": 314, + "locale": "ru", + "text": "Доставьте леденец Ам Няму", + "width": 80 + } + ], + "fr": [ + { + "name": 14, + "x": 92, + "y": 149, + "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": 31, + "locale": "fr", + "text": "Clique ou fais glisser pour couper la corde", + "width": 130 + }, + { + "name": 8, + "x": 231, + "y": 415, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 196, + "y": 311, + "locale": "fr", + "text": "Donne un bonbon à Om Nom", + "width": 100 + } + ], + "de": [ + { + "name": 14, + "x": 93, + "y": 156, + "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": 175, + "y": 35, + "locale": "de", + "text": "Klicke oder ziehe, um das Seil zu schneiden", + "width": 160 + }, + { + "name": 8, + "x": 231, + "y": 416, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 200, + "y": 317, + "locale": "de", + "text": "Versorg Om Nom mit Bonbons", + "width": 100 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:49:54.156Z" +} diff --git a/cutrope/source/rope-234.json b/cutrope/source/rope-234.json new file mode 100644 index 0000000000000000000000000000000000000000..102035390a78df7630a337ec5a860fb54b0ffbf8 --- /dev/null +++ b/cutrope/source/rope-234.json @@ -0,0 +1,90 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 215, + "y": 210 + }, + { + "name": 2, + "x": 190, + "y": 322 + }, + { + "name": 55, + "x": 284, + "y": 208, + "angle": -180 + }, + { + "name": 100, + "x": 222, + "y": 82, + "length": 90, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 100, + "x": 101, + "y": 209, + "length": 95, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 3, + "x": 99, + "y": 253, + "timeout": -1 + }, + { + "name": 3, + "x": 98, + "y": 345, + "timeout": -1 + }, + { + "name": 3, + "x": 98, + "y": 82, + "timeout": -1 + }, + { + "name": 55, + "x": 37, + "y": 343, + "angle": 0 + }, + { + "name": 54, + "x": 97, + "y": 144 + } + ], + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 1090,470,60\ncut_rope 0 when candy_still for 0.3 and candy_near 850,180,60\npop_bubble 0 when candy_still for 0.3 and candy_near 840,180,60\nactivate_pump 1 when candy_y > 760", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:40:36.220Z" +} diff --git a/cutrope/source/rope-235.json b/cutrope/source/rope-235.json new file mode 100644 index 0000000000000000000000000000000000000000..41c6c7d7a0a2f664c179dc415237447de8140245 --- /dev/null +++ b/cutrope/source/rope-235.json @@ -0,0 +1,112 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 107, + "y": 178 + }, + { + "name": 51, + "x": 224, + "y": 181 + }, + { + "name": 100, + "x": 126, + "y": 127, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 165, + "y": 428 + }, + { + "name": 3, + "x": 304, + "y": 218, + "timeout": -1 + }, + { + "name": 3, + "x": 28, + "y": 213, + "timeout": -1 + }, + { + "name": 3, + "x": 166, + "y": 344, + "timeout": -1 + }, + { + "name": 100, + "x": 277, + "y": 65, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 54, + "y": 64, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 207, + "y": 129, + "length": 100, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 165, + "y": 345 + } + ], + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when right_candy_near 650,490,40\ncut_rope 0,3 when candy_still for 0.3\npop_bubble 0 when candy_y < 470", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:13:11.113Z" +} diff --git a/cutrope/source/rope-236.json b/cutrope/source/rope-236.json new file mode 100644 index 0000000000000000000000000000000000000000..b6759dbb3756c2cef3c091b78c2795a2d24fb66c --- /dev/null +++ b/cutrope/source/rope-236.json @@ -0,0 +1,92 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 52, + "x": 127, + "y": 340 + }, + { + "name": 3, + "x": 253, + "y": 331, + "timeout": -1 + }, + { + "name": 3, + "x": 127, + "y": 169, + "timeout": -1 + }, + { + "name": 3, + "x": 242, + "y": 108, + "timeout": -1 + }, + { + "name": 54, + "x": 128, + "y": 434 + }, + { + "name": 100, + "x": 129, + "y": 262, + "length": 50, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 55, + "x": 44, + "y": 176, + "angle": 0 + }, + { + "name": 55, + "x": 126, + "y": 66, + "angle": 90 + }, + { + "name": 100, + "x": 239, + "y": 161, + "length": 100, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 2, + "x": 250, + "y": 425 + } + ], + "levelId": "03-15", + "levelEditedAt": "2026-05-05T14:46:08.427Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 890,780,60\nactivate_pump 0 when candy_y < 400\npop_bubble 0 when candy_still for 0.3 and candy_near 1140,140,60\ncut_rope 1", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:47:17.677Z" +} diff --git a/cutrope/source/rope-237.json b/cutrope/source/rope-237.json new file mode 100644 index 0000000000000000000000000000000000000000..1657ec319f301a66445282029646da894c6156ca --- /dev/null +++ b/cutrope/source/rope-237.json @@ -0,0 +1,190 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 63, + "y": 296 + }, + { + "name": 52, + "x": 162, + "y": 292 + }, + { + "name": 100, + "x": 29, + "y": 397, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 294, + "y": 192, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 29, + "y": 192, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 294, + "y": 399, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 161, + "y": 159, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 40, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 359, + "timeout": -1 + }, + { + "name": 56, + "x": 165, + "y": 401, + "group": 0, + "angle": 270 + }, + { + "name": 56, + "x": 248, + "y": 292, + "group": 0, + "angle": 180 + }, + { + "name": 13, + "x": 73, + "y": 97, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 82, + "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" +} diff --git a/cutrope/source/rope-238.json b/cutrope/source/rope-238.json new file mode 100644 index 0000000000000000000000000000000000000000..1c300a91670d42d21bbaa017a413b8f7d0f5e769 --- /dev/null +++ b/cutrope/source/rope-238.json @@ -0,0 +1,118 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 113, + "y": 189 + }, + { + "name": 100, + "x": 61, + "y": 187, + "length": 50, + "wheel": false, + "radius": -1, + "moveVertical": true, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 164, + "y": 188, + "length": 50, + "wheel": false, + "radius": -1, + "moveVertical": true, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 545, + "y": 195, + "timeout": -1 + }, + { + "name": 56, + "x": 111, + "y": 401, + "group": 0, + "angle": 270 + }, + { + "name": 2, + "x": 477, + "y": 290 + }, + { + "name": 54, + "x": 269, + "y": 257 + }, + { + "name": 56, + "x": 268, + "y": 98, + "group": 0, + "angle": 90 + }, + { + "name": 3, + "x": 407, + "y": 191, + "timeout": -1 + }, + { + "name": 3, + "x": 475, + "y": 113, + "timeout": -1 + }, + { + "name": 56, + "x": 273, + "y": 403, + "group": 1, + "angle": 270 + }, + { + "name": 56, + "x": 419, + "y": 402, + "group": 1, + "angle": 270 + }, + { + "name": 100, + "x": 477, + "y": 195, + "length": 100, + "wheel": false, + "radius": 50, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 \ncut_rope 1\npop_bubble 0 when candy_near 490,200,40", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:48:29.139Z" +} diff --git a/cutrope/source/rope-239.json b/cutrope/source/rope-239.json new file mode 100644 index 0000000000000000000000000000000000000000..ce175d75f7949917a69420d71d9b01d125cdacc3 --- /dev/null +++ b/cutrope/source/rope-239.json @@ -0,0 +1,91 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 176, + "y": 202 + }, + { + "name": 3, + "x": 211, + "y": 362, + "timeout": -1 + }, + { + "name": 3, + "x": 216, + "y": 310, + "timeout": -1 + }, + { + "name": 2, + "x": 162, + "y": 441 + }, + { + "name": 3, + "x": 216, + "y": 272, + "timeout": -1 + }, + { + "name": 54, + "x": 212, + "y": 367 + }, + { + "name": 55, + "x": 79, + "y": 189, + "angle": 0 + }, + { + "name": 100, + "x": 171, + "y": 296, + "length": 60, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 55, + "x": 264, + "y": 192, + "angle": 180 + }, + { + "name": 54, + "x": 174, + "y": 202 + } + ], + "levelId": "09-18", + "levelEditedAt": "2026-05-05T18:47:46.001Z", + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 980,450,60\npop_bubble 1 when candy_x > 1110\npop_bubble 0 when candy_still for 0.3 and candy_near 980,450,60\ncut_rope 0 when candy_y < 480", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:48:29.602Z", + "mirroredFrom": "09-18.json" +} diff --git a/cutrope/source/rope-240.json b/cutrope/source/rope-240.json new file mode 100644 index 0000000000000000000000000000000000000000..3abc048bc5f07648d3e80d1f4137e76926f1df83 --- /dev/null +++ b/cutrope/source/rope-240.json @@ -0,0 +1,106 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 320, + "y": 303, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 446, + "y": 174, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 198, + "y": 176, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 316, + "y": 224 + }, + { + "name": 2, + "x": 318, + "y": 69 + }, + { + "name": 54, + "x": 402, + "y": 395 + }, + { + "name": 3, + "x": 225, + "y": 299, + "timeout": -1 + }, + { + "name": 3, + "x": 417, + "y": 296, + "timeout": -1 + }, + { + "name": 3, + "x": 313, + "y": 374, + "timeout": -1 + }, + { + "name": 81, + "x": 196, + "y": 397, + "angle": 30, + "size": 1 + } + ], + "levelId": "06-03", + "levelEditedAt": "2026-05-05T17:13:29.998Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_x < 670\ncut_rope 0 when candy_still for 0.3 and candy_near 960,380,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:13:52.716Z" +} diff --git a/cutrope/source/rope-241.json b/cutrope/source/rope-241.json new file mode 100644 index 0000000000000000000000000000000000000000..03d0e39f738c0c800f41f769a6ade4ca593addf9 --- /dev/null +++ b/cutrope/source/rope-241.json @@ -0,0 +1,392 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 159, + "y": 433 + }, + { + "name": 100, + "x": 161, + "y": 42, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 74, + "y": 193, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 282, + "y": 289, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 164, + "y": 139 + }, + { + "name": 3, + "x": 158, + "y": 244, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 332, + "timeout": -1 + }, + { + "name": 3, + "x": 64, + "y": 331, + "timeout": -1 + }, + { + "name": 4, + "x": 143, + "y": 27, + "locale": "en", + "text": "Slide across to cut the rope", + "width": 130 + }, + { + "name": 4, + "x": 138, + "y": 351, + "locale": "en", + "text": "Deliver candy to Om Nom", + "width": 130 + }, + { + "name": 5, + "x": 263, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 8, + "x": 79, + "y": 433, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 211, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 159, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 107, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 55, + "y": 111, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 14, + "x": 240, + "y": 130, + "locale": "en", + "angle": 180, + "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 + } + ], + "textCommandSolution": "cut_rope 0\ncut_rope 1 when candy_near 760,750,20", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T03:26:14.262Z", + "mirroredFrom": "00-01.json" +} diff --git a/cutrope/source/rope-242.json b/cutrope/source/rope-242.json new file mode 100644 index 0000000000000000000000000000000000000000..85cc8accecfa64593111dbd6180f3fc8c1012f9b --- /dev/null +++ b/cutrope/source/rope-242.json @@ -0,0 +1,121 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 50, + "x": 319, + "y": 347 + }, + { + "name": 51, + "x": 322, + "y": 146 + }, + { + "name": 2, + "x": 192, + "y": 159 + }, + { + "name": 100, + "x": 235, + "y": 223, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 170, + "y": 451, + "length": 145, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 314, + "y": 344 + }, + { + "name": 100, + "x": 457, + "y": 449, + "length": 145, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 314, + "y": 399, + "timeout": -1 + }, + { + "name": 100, + "x": 401, + "y": 226, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 318, + "y": 142 + }, + { + "name": 3, + "x": 318, + "y": 242, + "timeout": -1 + }, + { + "name": 3, + "x": 229, + "y": 301, + "timeout": -1 + } + ], + "textCommandSolution": "pop_bubble 1 \ncut_rope 0 when candy_still for 0.3 and candy_near 950,710,60\ncut_rope 3\ncut_rope 2 when candy_y > 850\ncut_rope 1 when candy_y < 620", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:14:21.911Z" +} diff --git a/cutrope/source/rope-243.json b/cutrope/source/rope-243.json new file mode 100644 index 0000000000000000000000000000000000000000..cd39b09ce66b419f64b83f2e06d2ca073ec491de --- /dev/null +++ b/cutrope/source/rope-243.json @@ -0,0 +1,136 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 157, + "y": 200 + }, + { + "name": 56, + "x": 91, + "y": 392, + "group": 0, + "angle": 0 + }, + { + "name": 56, + "x": 227, + "y": 152, + "group": 0, + "angle": 180 + }, + { + "name": 52, + "x": 159, + "y": 136 + }, + { + "name": 100, + "x": 100, + "y": 49, + "length": 76, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 217, + "y": 49, + "length": 76, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 56, + "x": 225, + "y": 400, + "group": 1, + "angle": 180 + }, + { + "name": 56, + "x": 93, + "y": 148, + "group": 1, + "angle": 0 + }, + { + "name": 54, + "x": 160, + "y": 416 + }, + { + "name": 100, + "x": 110, + "y": 298, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 204, + "y": 301, + "length": 100, + "wheel": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 120, + "y": 146, + "timeout": -1 + }, + { + "name": 3, + "x": 199, + "y": 148, + "timeout": -1 + }, + { + "name": 3, + "x": 158, + "y": 418, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_near 970,730,80\ncut_rope 2 when candy_still for 0.3 and candy_near 940,900,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:27:55.662Z", + "mirroredFrom": "04-04.json" +} diff --git a/cutrope/source/rope-244.json b/cutrope/source/rope-244.json new file mode 100644 index 0000000000000000000000000000000000000000..a904f0e122e929c8ad5ad7388590ba0ae3a6d5bd --- /dev/null +++ b/cutrope/source/rope-244.json @@ -0,0 +1,153 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 253, + "y": 178 + }, + { + "name": 100, + "x": 157, + "y": 121, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 154, + "y": 213 + }, + { + "name": 3, + "x": 159, + "y": 343, + "timeout": -1 + }, + { + "name": 3, + "x": 85, + "y": 231, + "timeout": -1 + }, + { + "name": 3, + "x": 251, + "y": 125, + "timeout": -1 + }, + { + "name": 54, + "x": 159, + "y": 343 + }, + { + "name": 56, + "x": 163, + "y": 404, + "group": 0, + "angle": -90 + }, + { + "name": 56, + "x": 70, + "y": 261, + "group": 0, + "angle": -60 + }, + { + "name": 4, + "x": 78, + "y": 32, + "locale": "en", + "text": "Candy maintains its speed when teleporting", + "width": 200 + }, + { + "name": 13, + "x": 59, + "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" +} diff --git a/cutrope/source/rope-245.json b/cutrope/source/rope-245.json new file mode 100644 index 0000000000000000000000000000000000000000..2a7c6714a4095564451751abc22adf3a26f6309c --- /dev/null +++ b/cutrope/source/rope-245.json @@ -0,0 +1,108 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 85, + "y": 112 + }, + { + "name": 2, + "x": 320, + "y": 410 + }, + { + "name": 100, + "x": 163, + "y": 114, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 86, + "y": 46, + "length": 45, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 163, + "y": 45, + "length": 120, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 164, + "y": 192, + "length": 170, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 260, + "y": 229, + "timeout": -1 + }, + { + "name": 3, + "x": 58, + "y": 279, + "timeout": -1 + }, + { + "name": 3, + "x": 189, + "y": 416, + "timeout": -1 + } + ], + "levelId": "02-05", + "levelEditedAt": "2026-05-05T13:46:26.528Z", + "textCommandSolution": "cut_rope 1 \ncut_rope 2 when candy_x > 1000\ncut_rope 0 when candy_near 720,630,60\ncut_rope 3 when candy_near 1150,920,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:46:35.168Z" +} diff --git a/cutrope/source/rope-246.json b/cutrope/source/rope-246.json new file mode 100644 index 0000000000000000000000000000000000000000..6d9068b3b15cf8a22b30f2c42196c6a20a17fe8c --- /dev/null +++ b/cutrope/source/rope-246.json @@ -0,0 +1,142 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 495, + "y": 288 + }, + { + "name": 56, + "x": 240, + "y": 387, + "group": 0, + "angle": 300 + }, + { + "name": 56, + "x": 446, + "y": 123, + "group": 0, + "angle": 180 + }, + { + "name": 52, + "x": 322, + "y": 134 + }, + { + "name": 100, + "x": 460, + "y": 197, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 173, + "y": 34, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 462, + "y": 33, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 175, + "y": 198, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 56, + "x": 395, + "y": 390, + "group": 1, + "angle": 235 + }, + { + "name": 56, + "x": 244, + "y": 123, + "group": 1, + "angle": 0 + }, + { + "name": 3, + "x": 323, + "y": 302, + "timeout": -1 + }, + { + "name": 3, + "x": 255, + "y": 335, + "timeout": -1 + }, + { + "name": 3, + "x": 383, + "y": 334, + "timeout": -1 + }, + { + "name": 54, + "x": 322, + "y": 305 + } + ], + "levelId": "04-24", + "levelEditedAt": "2026-05-05T15:50:13.741Z", + "textCommandSolution": "cut_rope 1,3\npop_bubble 0 when candy_near 1020,500,40", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:50:20.475Z", + "mirroredFrom": "04-24.json" +} diff --git a/cutrope/source/rope-247.json b/cutrope/source/rope-247.json new file mode 100644 index 0000000000000000000000000000000000000000..c1860bc16f9182e8ed943a8e6e138c4f00ab2a46 --- /dev/null +++ b/cutrope/source/rope-247.json @@ -0,0 +1,111 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 353, + "y": 42 + }, + { + "name": 100, + "x": 201, + "y": 135, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 231, + "y": 263, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 370, + "y": 320, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 289, + "y": 424 + }, + { + "name": 3, + "x": 448, + "y": 278, + "timeout": -1 + }, + { + "name": 3, + "x": 278, + "y": 212, + "timeout": 10 + }, + { + "name": 52, + "x": 349, + "y": 187 + }, + { + "name": 100, + "x": 420, + "y": 69, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 290, + "y": 424, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1000,430,60\ncut_rope 1 when candy_x > 1030\ncut_rope 3 when candy_x > 1180\ncut_rope 2 when candy_still for 0.3 and candy_near 1070,420,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:35:13.421Z" +} diff --git a/cutrope/source/rope-248.json b/cutrope/source/rope-248.json new file mode 100644 index 0000000000000000000000000000000000000000..992e7724ea44871b9f97e157c32588ebce941acb --- /dev/null +++ b/cutrope/source/rope-248.json @@ -0,0 +1,122 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 51, + "x": 321, + "y": 347 + }, + { + "name": 50, + "x": 318, + "y": 146 + }, + { + "name": 2, + "x": 448, + "y": 159 + }, + { + "name": 100, + "x": 405, + "y": 223, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 100, + "x": 470, + "y": 451, + "length": 145, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 54, + "x": 326, + "y": 344 + }, + { + "name": 100, + "x": 183, + "y": 449, + "length": 145, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 326, + "y": 399, + "timeout": -1 + }, + { + "name": 100, + "x": 239, + "y": 226, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 54, + "x": 322, + "y": 142 + }, + { + "name": 3, + "x": 322, + "y": 242, + "timeout": -1 + }, + { + "name": 3, + "x": 411, + "y": 301, + "timeout": -1 + } + ], + "textCommandSolution": "pop_bubble 1 \ncut_rope 0 when candy_still for 0.3 and candy_near 970,710,60\ncut_rope 3\ncut_rope 2 when candy_y > 850\ncut_rope 1 when candy_y < 620", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T16:14:21.911Z", + "mirroredFrom": "05-05.json" +} diff --git a/cutrope/source/rope-249.json b/cutrope/source/rope-249.json new file mode 100644 index 0000000000000000000000000000000000000000..f42f464ed34f37b2da72b7192a99d35d02a4c512 --- /dev/null +++ b/cutrope/source/rope-249.json @@ -0,0 +1,101 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 82, + "x": 257, + "y": 144, + "angle": 0, + "size": 2 + }, + { + "name": 82, + "x": 82, + "y": 54, + "angle": 0, + "size": 2 + }, + { + "name": 50, + "x": 88, + "y": 115 + }, + { + "name": 54, + "x": 79, + "y": 112 + }, + { + "name": 54, + "x": 242, + "y": 210 + }, + { + "name": 51, + "x": 247, + "y": 213 + }, + { + "name": 2, + "x": 153, + "y": 424 + }, + { + "name": 3, + "x": 161, + "y": 53, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 101, + "timeout": -1 + }, + { + "name": 3, + "x": 161, + "y": 152, + "timeout": -1 + }, + { + "name": 100, + "x": 160, + "y": 275, + "length": 100, + "wheel": false, + "gun": false, + "kickable": false, + "radius": 60, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 55, + "x": 70, + "y": 386, + "angle": 0 + } + ], + "textCommandSolution": "pop_bubble 0\nactivate_pump 0 when left_candy_near 800,850,50\ncut_rope 0 when candy_still for 0.3 and candy_near 960,370,60\npop_bubble 1 when candy_y < 170", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:22:25.471Z" +} diff --git a/cutrope/source/rope-250.json b/cutrope/source/rope-250.json new file mode 100644 index 0000000000000000000000000000000000000000..92a3c14ef0436324311ca28ffe5d5be5510d13ec --- /dev/null +++ b/cutrope/source/rope-250.json @@ -0,0 +1,116 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 298, + "y": 131, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 380, + "y": 129, + "length": 150, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 453, + "y": 129, + "length": 250, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 2, + "x": 451, + "y": 410 + }, + { + "name": 3, + "x": 456, + "y": 299, + "timeout": -1 + }, + { + "name": 3, + "x": 444, + "y": 334, + "timeout": -1 + }, + { + "name": 3, + "x": 447, + "y": 266, + "timeout": -1 + }, + { + "name": 82, + "x": 402, + "y": 300, + "angle": 90, + "size": 2 + }, + { + "name": 52, + "x": 304, + "y": 269 + }, + { + "name": 54, + "x": 228, + "y": 310 + }, + { + "name": 55, + "x": 179, + "y": 94, + "angle": 0 + } + ], + "levelId": "06-04", + "levelEditedAt": "2026-05-05T17:15:59.668Z", + "textCommandSolution": "cut_rope 0 \ncut_rope 1 when candy_x < 870\nactivate_pump 0 when candy_y < 270\npop_bubble 0 when candy_y < 160", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:16:09.580Z", + "mirroredFrom": "06-04.json" +} diff --git a/cutrope/source/rope-251.json b/cutrope/source/rope-251.json new file mode 100644 index 0000000000000000000000000000000000000000..f78c1e6c366f63cc27737647473f65c4fbdd5537 --- /dev/null +++ b/cutrope/source/rope-251.json @@ -0,0 +1,162 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 160, + "y": 421 + }, + { + "name": 100, + "x": 160, + "y": 160, + "length": 60, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 158, + "y": 235 + }, + { + "name": 3, + "x": 83, + "y": 99, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 51, + "timeout": -1 + }, + { + "name": 3, + "x": 236, + "y": 100, + "timeout": -1 + }, + { + "name": 54, + "x": 79, + "y": 175 + }, + { + "name": 54, + "x": 237, + "y": 174 + }, + { + "name": 55, + "x": 37, + "y": 268, + "angle": 0 + }, + { + "name": 55, + "x": 284, + "y": 265, + "angle": 180 + }, + { + "name": 4, + "x": 93, + "y": 279, + "locale": "en", + "text": "Click the air cushion to blow objects", + "width": 180 + }, + { + "name": 8, + "x": 80, + "y": 311, + "locale": "en", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 8, + "x": 81, + "y": 311, + "locale": "ru", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 95, + "y": 280, + "locale": "ru", + "text": "Нажмите на подушку, чтобы подуть на леденец", + "width": 180 + } + ], + "fr": [ + { + "name": 8, + "x": 80, + "y": 311, + "locale": "fr", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 80, + "y": 260, + "locale": "fr", + "text": "Tapotez le coussin d'air pour pousser les objets", + "width": 150 + } + ], + "de": [ + { + "name": 8, + "x": 80, + "y": 312, + "locale": "de", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 95, + "y": 273, + "locale": "de", + "text": "Tippe das Luftkissen an, um Gegenstände wegzublasen", + "width": 180 + } + ], + "levelId": "00-09", + "levelEditedAt": "2026-05-05T08:33:30.057Z", + "textCommandSolution": "activate_pump 0 until candy_near 1150,400,50\npop_bubble 1 when candy_still for 1\nactivate_pump 1 until candy_near 780,400,50 \npop_bubble 0 when candy_still for 1 \ncut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T08:34:50.823Z" +} \ No newline at end of file diff --git a/cutrope/source/rope-252.json b/cutrope/source/rope-252.json new file mode 100644 index 0000000000000000000000000000000000000000..3d63d7105fe8e4f7d5774faa9b604ac733987761 --- /dev/null +++ b/cutrope/source/rope-252.json @@ -0,0 +1,101 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 224, + "y": 231 + }, + { + "name": 56, + "x": 250, + "y": 433, + "group": 1, + "angle": 225 + }, + { + "name": 56, + "x": 220, + "y": 78, + "group": 0, + "angle": 135 + }, + { + "name": 56, + "x": 88, + "y": 78, + "group": 1, + "angle": 45 + }, + { + "name": 56, + "x": 77, + "y": 430, + "group": 0, + "angle": 315 + }, + { + "name": 52, + "x": 46, + "y": 230 + }, + { + "name": 100, + "x": 151, + "y": 261, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 154, + "y": 163 + }, + { + "name": 3, + "x": 154, + "y": 164, + "timeout": -1 + }, + { + "name": 3, + "x": 215, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 101, + "y": 119, + "timeout": -1 + } + ], + "levelId": "09-09", + "levelEditedAt": "2026-05-05T18:29:59.590Z", + "textCommandSolution": "cut_rope 0 when candy_near 920,850,50 times 2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:31:21.271Z", + "mirroredFrom": "09-09.json" +} diff --git a/cutrope/source/rope-253.json b/cutrope/source/rope-253.json new file mode 100644 index 0000000000000000000000000000000000000000..9a35273e72b59d80a14e53d0c714e23ef1920b57 --- /dev/null +++ b/cutrope/source/rope-253.json @@ -0,0 +1,116 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 269, + "y": 427 + }, + { + "name": 52, + "x": 114, + "y": 174 + }, + { + "name": 56, + "x": 152, + "y": 115, + "group": 0, + "angle": 825 + }, + { + "name": 54, + "x": 107, + "y": 261 + }, + { + "name": 100, + "x": 89, + "y": 65, + "length": 110, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 56, + "x": 53, + "y": 261, + "group": 0, + "angle": 300 + }, + { + "name": 54, + "x": 271, + "y": 322 + }, + { + "name": 56, + "x": 170, + "y": 271, + "group": 1, + "angle": 290 + }, + { + "name": 56, + "x": 103, + "y": 378, + "group": 1, + "angle": 269 + }, + { + "name": 3, + "x": 60, + "y": 219, + "timeout": -1 + }, + { + "name": 3, + "x": 275, + "y": 137, + "timeout": -1 + }, + { + "name": 3, + "x": 102, + "y": 335, + "timeout": -1 + }, + { + "name": 100, + "x": 203, + "y": 112, + "length": 80, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 1 when candy_still for 0.3 and candy_near 900,460,60\ncut_rope 0 when candy_x < 800\npop_bubble 0 when candy_y > 650\npop_bubble 1 when candy_y < 340", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:15:05.854Z" +} diff --git a/cutrope/source/rope-254.json b/cutrope/source/rope-254.json new file mode 100644 index 0000000000000000000000000000000000000000..30f7534c1195d5747544fb6104c250b81283b013 --- /dev/null +++ b/cutrope/source/rope-254.json @@ -0,0 +1,132 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 85, + "y": 335, + "length": 44, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 86, + "y": 196, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 240, + "y": 195, + "length": 49, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 239, + "y": 335, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 2, + "x": 0, + "y": 393 + }, + { + "name": 52, + "x": 163, + "y": 270 + }, + { + "name": 3, + "x": 255, + "y": 148, + "timeout": -1 + }, + { + "name": 3, + "x": 258, + "y": 266, + "timeout": -1 + }, + { + "name": 3, + "x": 67, + "y": 265, + "timeout": -1 + }, + { + "name": 100, + "x": 168, + "y": 144, + "length": 100, + "wheel": false, + "gun": false, + "radius": 73, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 246, + "y": 408 + } + ], + "levelId": "02-11", + "levelEditedAt": "2026-05-05T13:58:54.884Z", + "textCommandSolution": "cut_rope 0,1 \ncut_rope 2 when candy_x > 1070\ncut_rope 3 when candy_still for 0.3 and candy_near 1140,560,60\npop_bubble 0 when candy_y < 370\ncut_rope 4 when candy_x < 770", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:59:06.406Z" +} diff --git a/cutrope/source/rope-255.json b/cutrope/source/rope-255.json new file mode 100644 index 0000000000000000000000000000000000000000..419e6571d780d40a9f19cef0d3eaefe1551e0da2 --- /dev/null +++ b/cutrope/source/rope-255.json @@ -0,0 +1,141 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 135, + "y": 243 + }, + { + "name": 100, + "x": 100, + "y": 110, + "length": 78, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 97, + "y": 366, + "length": 78, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 290, + "y": 432, + "length": 210, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 3, + "x": 203, + "y": 153, + "timeout": -1 + }, + { + "name": 3, + "x": 95, + "y": 235, + "timeout": -1 + }, + { + "name": 3, + "x": 130, + "y": 113, + "timeout": -1 + }, + { + "name": 2, + "x": 294, + "y": 349 + }, + { + "name": 56, + "x": 78, + "y": 232, + "group": 0, + "angle": 0 + }, + { + "name": 56, + "x": 79, + "y": 62, + "group": 0, + "angle": 0 + }, + { + "name": 100, + "x": 226, + "y": 240, + "length": 68, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 290, + "y": 55, + "length": 210, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + } + ], + "levelId": "04-11", + "levelEditedAt": "2026-05-05T15:38:36.315Z", + "textCommandSolution": "cut_rope 3,4,2", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:38:51.556Z" +} diff --git a/cutrope/source/rope-256.json b/cutrope/source/rope-256.json new file mode 100644 index 0000000000000000000000000000000000000000..1eb507e950c653ddfc1d00b55de6a254b9429594 --- /dev/null +++ b/cutrope/source/rope-256.json @@ -0,0 +1,163 @@ +{ + "settings": [ + { + "name": 0, + "width": 320, + "height": 480, + "gridSize": 32 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 2, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 160, + "y": 421 + }, + { + "name": 100, + "x": 160, + "y": 160, + "length": 60, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 52, + "x": 162, + "y": 235 + }, + { + "name": 3, + "x": 237, + "y": 99, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 51, + "timeout": -1 + }, + { + "name": 3, + "x": 84, + "y": 100, + "timeout": -1 + }, + { + "name": 54, + "x": 241, + "y": 175 + }, + { + "name": 54, + "x": 83, + "y": 174 + }, + { + "name": 55, + "x": 283, + "y": 268, + "angle": 180 + }, + { + "name": 55, + "x": 36, + "y": 265, + "angle": 0 + }, + { + "name": 4, + "x": 227, + "y": 279, + "locale": "en", + "text": "Click the air cushion to blow objects", + "width": 180 + }, + { + "name": 8, + "x": 240, + "y": 311, + "locale": "en", + "angle": 110, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "ru": [ + { + "name": 8, + "x": 81, + "y": 311, + "locale": "ru", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 95, + "y": 280, + "locale": "ru", + "text": "Нажмите на подушку, чтобы подуть на леденец", + "width": 180 + } + ], + "fr": [ + { + "name": 8, + "x": 80, + "y": 311, + "locale": "fr", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 80, + "y": 260, + "locale": "fr", + "text": "Tapotez le coussin d'air pour pousser les objets", + "width": 150 + } + ], + "de": [ + { + "name": 8, + "x": 80, + "y": 312, + "locale": "de", + "angle": 70, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 95, + "y": 273, + "locale": "de", + "text": "Tippe das Luftkissen an, um Gegenstände wegzublasen", + "width": 180 + } + ], + "levelId": "00-09", + "levelEditedAt": "2026-05-05T08:33:30.057Z", + "textCommandSolution": "activate_pump 0 until candy_near 770,400,50\npop_bubble 1 when candy_still for 1\nactivate_pump 1 until candy_near 1140,400,50 \npop_bubble 0 when candy_still for 1 \ncut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T08:34:50.823Z", + "mirroredFrom": "00-09.json" +} diff --git a/cutrope/source/rope-257.json b/cutrope/source/rope-257.json new file mode 100644 index 0000000000000000000000000000000000000000..1e078ab56dca97ce17f6efc29fe37bbdd76e0c25 --- /dev/null +++ b/cutrope/source/rope-257.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": 108, + "y": 343 + }, + { + "name": 100, + "x": 110, + "y": 458, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 50, + "x": 196, + "y": 339 + }, + { + "name": 2, + "x": 88, + "y": 109 + }, + { + "name": 54, + "x": 220, + "y": 341 + }, + { + "name": 3, + "x": 201, + "y": 100, + "timeout": -1 + }, + { + "name": 100, + "x": 199, + "y": 460, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 3, + "x": 195, + "y": 141, + "timeout": -1 + }, + { + "name": 3, + "x": 195, + "y": 123, + "timeout": -1 + }, + { + "name": 55, + "x": 47, + "y": 339, + "angle": 0 + }, + { + "name": 54, + "x": 114, + "y": 338 + } + ], + "levelId": "05-25", + "levelEditedAt": "2026-05-05T17:06:00.234Z", + "textCommandSolution": "cut_rope 1 \npop_bubble 0 when left_candy_y<200\nactivate_pump 0 times 2 when left_candy_near 1070,500,50\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:09:58.455Z", + "mirroredFrom": "05-25.json" +} diff --git a/cutrope/source/rope-258.json b/cutrope/source/rope-258.json new file mode 100644 index 0000000000000000000000000000000000000000..a03b6f3923e439f64d70acaafccaced767cd9fe9 --- /dev/null +++ b/cutrope/source/rope-258.json @@ -0,0 +1,114 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 217, + "y": 424 + }, + { + "name": 3, + "x": 414, + "y": 158, + "timeout": -1 + }, + { + "name": 3, + "x": 238, + "y": 160, + "timeout": -1 + }, + { + "name": 55, + "x": 498, + "y": 160, + "angle": 180 + }, + { + "name": 3, + "x": 111, + "y": 158, + "timeout": -1 + }, + { + "name": 54, + "x": 240, + "y": 347 + }, + { + "name": 54, + "x": 326, + "y": 346 + }, + { + "name": 52, + "x": 112, + "y": 225 + }, + { + "name": 100, + "x": 111, + "y": 87, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 334, + "y": 87, + "length": 250, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 100, + "x": 111, + "y": 352, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + } + ], + "levelId": "02-16", + "levelEditedAt": "2026-05-05T14:15:54.612Z", + "textCommandSolution": "cut_rope 0 \ncut_rope 2 when candy_still for 0.3 \npop_bubble 0 when candy_y < 390\nactivate_pump 0 times 2 when candy_near 1200,370,60\npop_bubble 1 when candy_y < 150\ncut_rope 1 when candy_x < 790", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:16:10.970Z", + "mirroredFrom": "02-16.json" +} diff --git a/cutrope/source/rope-259.json b/cutrope/source/rope-259.json new file mode 100644 index 0000000000000000000000000000000000000000..3aa580dde6e063ca4b224e782a8c2d477628d806 --- /dev/null +++ b/cutrope/source/rope-259.json @@ -0,0 +1,117 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 235, + "y": 438 + }, + { + "name": 100, + "x": 272, + "y": 60, + "length": 60, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 52, + "x": 186, + "y": 154 + }, + { + "name": 3, + "x": 55, + "y": 245, + "timeout": -1 + }, + { + "name": 3, + "x": 196, + "y": 390, + "timeout": -1 + }, + { + "name": 3, + "x": 128, + "y": 153, + "timeout": -1 + }, + { + "name": 100, + "x": 172, + "y": 354, + "length": 40, + "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": 21, + "y": 63, + "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": 297, + "y": 302, + "length": 60, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 3 when candy_still for 0.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-05T18:34:06.240Z" +} diff --git a/cutrope/source/rope-260.json b/cutrope/source/rope-260.json new file mode 100644 index 0000000000000000000000000000000000000000..ad57e911f936ceac7abf792433bf4eea1ca92f00 --- /dev/null +++ b/cutrope/source/rope-260.json @@ -0,0 +1,87 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 350, + "y": 435 + }, + { + "name": 52, + "x": 350, + "y": 203 + }, + { + "name": 3, + "x": 284, + "y": 195, + "timeout": -1 + }, + { + "name": 3, + "x": 415, + "y": 197, + "timeout": -1 + }, + { + "name": 55, + "x": 275, + "y": 198, + "angle": 0 + }, + { + "name": 3, + "x": 350, + "y": 384, + "timeout": -1 + }, + { + "name": 100, + "x": 349, + "y": 26, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 348, + "y": 341, + "length": 100, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "02-15", + "levelEditedAt": "2026-05-05T14:10:19.581Z", + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 1020,460,60\ncut_rope 0 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T14:12:23.144Z", + "mirroredFrom": "02-15.json" +} diff --git a/cutrope/source/rope-261.json b/cutrope/source/rope-261.json new file mode 100644 index 0000000000000000000000000000000000000000..7a08a105cf5a6d34eb947c164a7ddb88d4f1a9c3 --- /dev/null +++ b/cutrope/source/rope-261.json @@ -0,0 +1,78 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "special": 1, + "ropePhysicsSpeed": 1 + } + ], + "objects": [ + { + "name": 2, + "x": 97, + "y": 82 + }, + { + "name": 3, + "x": 162, + "y": 427, + "timeout": -1 + }, + { + "name": 52, + "x": 160, + "y": 351 + }, + { + "name": 54, + "x": 162, + "y": 426 + }, + { + "name": 100, + "x": 162, + "y": 247, + "length": 60, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false + }, + { + "name": 55, + "x": 31, + "y": 287, + "angle": 0 + }, + { + "name": 55, + "x": 289, + "y": 211, + "angle": 180 + }, + { + "name": 3, + "x": 223, + "y": 234, + "timeout": -1 + }, + { + "name": 3, + "x": 98, + "y": 153, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 960,770,60\nactivate_pump 0 when candy_y < 660\nactivate_pump 1 when candy_y < 490", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T13:38:26.635Z" +} diff --git a/cutrope/source/rope-262.json b/cutrope/source/rope-262.json new file mode 100644 index 0000000000000000000000000000000000000000..d3deec609641e7aa7a62b42b77d2c76075f2bb01 --- /dev/null +++ b/cutrope/source/rope-262.json @@ -0,0 +1,128 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 100, + "x": 376, + "y": 98, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 521, + "y": 321, + "length": 100, + "wheel": false, + "gun": false, + "radius": 55, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 2, + "x": 541, + "y": 54 + }, + { + "name": 52, + "x": 477, + "y": 158 + }, + { + "name": 100, + "x": 571, + "y": 102, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 531, + "y": 232, + "timeout": 5 + }, + { + "name": 3, + "x": 570, + "y": 159, + "timeout": 25 + }, + { + "name": 54, + "x": 577, + "y": 396 + }, + { + "name": 3, + "x": 572, + "y": 320, + "timeout": -1 + }, + { + "name": 100, + "x": 572, + "y": 223, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 376, + "y": 219, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + } + ], + "levelId": "07-07", + "levelEditedAt": "2026-05-05T17:45:59.558Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 1310,370,60\ncut_rope 4\ncut_rope 2 when candy_x > 1500\ncut_rope 3 when candy_y > 690\ncut_rope 1 when candy_still for 0.3", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:47:01.925Z", + "mirroredFrom": "07-07.json" +} diff --git a/cutrope/source/rope-263.json b/cutrope/source/rope-263.json new file mode 100644 index 0000000000000000000000000000000000000000..dbb9cb5cb63fcdcb89d29fe3c410b995825d6a63 --- /dev/null +++ b/cutrope/source/rope-263.json @@ -0,0 +1,104 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 153, + "y": 126 + }, + { + "name": 56, + "x": 156, + "y": 81, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 102, + "y": 424, + "group": 0, + "angle": 0 + }, + { + "name": 52, + "x": 156, + "y": 247 + }, + { + "name": 100, + "x": 75, + "y": 164, + "length": 80, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 237, + "y": 164, + "length": 80, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 100, + "x": 155, + "y": 345, + "length": 70, + "wheel": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R" + }, + { + "name": 3, + "x": 78, + "y": 287, + "timeout": -1 + }, + { + "name": 3, + "x": 243, + "y": 424, + "timeout": -1 + }, + { + "name": 3, + "x": 244, + "y": 345, + "timeout": -1 + } + ], + "textCommandSolution": "cut_rope 1 \ncut_rope 0 when candy_x < 890", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:24:52.148Z", + "mirroredFrom": "04-02.json" +} diff --git a/cutrope/source/rope-264.json b/cutrope/source/rope-264.json new file mode 100644 index 0000000000000000000000000000000000000000..7e2415113b95457e888ceaf529320b10440af052 --- /dev/null +++ b/cutrope/source/rope-264.json @@ -0,0 +1,232 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 219, + "y": 238 + }, + { + "name": 2, + "x": 101, + "y": 431 + }, + { + "name": 3, + "x": 218, + "y": 326, + "timeout": -1 + }, + { + "name": 3, + "x": 103, + "y": 209, + "timeout": -1 + }, + { + "name": 3, + "x": 103, + "y": 74, + "timeout": -1 + }, + { + "name": 100, + "x": 224, + "y": 139, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 54, + "x": 221, + "y": 391 + }, + { + "name": 100, + "x": 101, + "y": 252, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 4, + "x": 277, + "y": 45, + "locale": "en", + "text": "Click to pop the bubble", + "width": 120, + "special": 1 + }, + { + "name": 4, + "x": 163, + "y": 293, + "locale": "en", + "text": "The bubble will lift the candy up", + "width": 120 + }, + { + "name": 8, + "x": 153, + "y": 391, + "locale": "en", + "angle": 165, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 9, + "x": 102, + "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", + "mirroredFrom": "01-05.json" +} diff --git a/cutrope/source/rope-265.json b/cutrope/source/rope-265.json new file mode 100644 index 0000000000000000000000000000000000000000..1785289625b009e0a8ad803626cdecd81d85cd6b --- /dev/null +++ b/cutrope/source/rope-265.json @@ -0,0 +1,107 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 54, + "x": 426, + "y": 376 + }, + { + "name": 56, + "x": 424, + "y": 420, + "group": 0, + "angle": 270 + }, + { + "name": 52, + "x": 427, + "y": 160 + }, + { + "name": 100, + "x": 427, + "y": 73, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 56, + "x": 348, + "y": 189, + "group": 0, + "angle": 180 + }, + { + "name": 3, + "x": 228, + "y": 382, + "timeout": -1 + }, + { + "name": 100, + "x": 325, + "y": 285, + "length": 100, + "wheel": false, + "gun": false, + "radius": 64, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 3, + "x": 326, + "y": 380, + "timeout": -1 + }, + { + "name": 2, + "x": 183, + "y": 248 + }, + { + "name": 3, + "x": 426, + "y": 376, + "timeout": -1 + }, + { + "name": 54, + "x": 327, + "y": 378 + } + ], + "levelId": "04-09", + "levelEditedAt": "2026-05-05T15:36:33.909Z", + "textCommandSolution": "cut_rope 0 \npop_bubble 0 when candy_near 960,420,40\npop_bubble 1 when candy_near 1220,800,60\ncut_rope 1 when candy_near 1220,800,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T15:37:19.403Z", + "mirroredFrom": "04-09.json" +} diff --git a/cutrope/source/rope-266.json b/cutrope/source/rope-266.json new file mode 100644 index 0000000000000000000000000000000000000000..b29f2602470a1cd5378ac4b7a242d8a9211ed9f8 --- /dev/null +++ b/cutrope/source/rope-266.json @@ -0,0 +1,90 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 144, + "y": 202 + }, + { + "name": 3, + "x": 109, + "y": 362, + "timeout": -1 + }, + { + "name": 3, + "x": 104, + "y": 310, + "timeout": -1 + }, + { + "name": 2, + "x": 158, + "y": 441 + }, + { + "name": 3, + "x": 104, + "y": 272, + "timeout": -1 + }, + { + "name": 54, + "x": 108, + "y": 367 + }, + { + "name": 55, + "x": 241, + "y": 189, + "angle": 180 + }, + { + "name": 100, + "x": 149, + "y": 296, + "length": 60, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + }, + { + "name": 55, + "x": 56, + "y": 192, + "angle": 0 + }, + { + "name": 54, + "x": 146, + "y": 202 + } + ], + "levelId": "09-18", + "levelEditedAt": "2026-05-05T18:47:46.001Z", + "textCommandSolution": "activate_pump 0 when candy_still for 0.3 and candy_near 940,450,60\npop_bubble 1 when candy_x < 810\npop_bubble 0 when candy_still for 0.3 and candy_near 940,450,60\ncut_rope 0 when candy_y < 480", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:48:29.602Z" +} diff --git a/cutrope/source/rope-267.json b/cutrope/source/rope-267.json new file mode 100644 index 0000000000000000000000000000000000000000..4c618306806004a0b480fa7f0f5c34b7b063dce0 --- /dev/null +++ b/cutrope/source/rope-267.json @@ -0,0 +1,123 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 164, + "y": 100 + }, + { + "name": 100, + "x": 42, + "y": 98, + "length": 80, + "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": 169, + "y": 370, + "length": 220, + "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": 260, + "y": 100, + "length": 40, + "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": 165, + "y": 413 + }, + { + "name": 3, + "x": 165, + "y": 213, + "timeout": -1 + }, + { + "name": 3, + "x": 165, + "y": 273, + "timeout": -1 + }, + { + "name": 3, + "x": 167, + "y": 337, + "timeout": -1 + }, + { + "name": 54, + "x": 51, + "y": 209 + }, + { + "name": 100, + "x": 174, + "y": 37, + "length": 30, + "wheel": false, + "gun": false, + "kickable": false, + "kicked": false, + "radius": -1, + "invisible": false, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L" + } + ], + "textCommandSolution": "cut_rope 2 when candy_still for 0.3 and candy_near 990,230,60\ncut_rope 3 when candy_still for 0.3 and candy_near 960,230,60\ncut_rope 0 when candy_x < 740\npop_bubble 0 when candy_still for 0.3 and candy_near 980,260,60", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:52:40.503Z" +} diff --git a/cutrope/source/rope-268.json b/cutrope/source/rope-268.json new file mode 100644 index 0000000000000000000000000000000000000000..dbf0ecc0799c66987bf874ae77784bf882fe5447 --- /dev/null +++ b/cutrope/source/rope-268.json @@ -0,0 +1,90 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 640, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": true + } + ], + "objects": [ + { + "name": 54, + "x": 441, + "y": 435 + }, + { + "name": 50, + "x": 435, + "y": 441 + }, + { + "name": 51, + "x": 348, + "y": 125 + }, + { + "name": 55, + "x": 204, + "y": 148, + "angle": 0 + }, + { + "name": 56, + "x": 464, + "y": 68, + "group": 0, + "angle": 90 + }, + { + "name": 56, + "x": 205, + "y": 406, + "group": 0, + "angle": 270 + }, + { + "name": 2, + "x": 207, + "y": 259 + }, + { + "name": 3, + "x": 443, + "y": 122, + "timeout": -1 + }, + { + "name": 3, + "x": 205, + "y": 348, + "timeout": -1 + }, + { + "name": 82, + "x": 349, + "y": 199, + "angle": 180, + "size": 2 + }, + { + "name": 3, + "x": 395, + "y": 124, + "timeout": -1 + } + ], + "levelId": "06-18", + "levelEditedAt": "2026-05-05T17:32:43.877Z", + "textCommandSolution": "activate_pump 0 when left_candy_y<400", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:33:48.589Z", + "mirroredFrom": "06-18.json" +} diff --git a/cutrope/source/rope-269.json b/cutrope/source/rope-269.json new file mode 100644 index 0000000000000000000000000000000000000000..b968636852e26a8874f656543baddc14d6f73a99 --- /dev/null +++ b/cutrope/source/rope-269.json @@ -0,0 +1,121 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 2, + "x": 160, + "y": 214 + }, + { + "name": 100, + "x": 52, + "y": 204, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 52, + "x": 160, + "y": 339 + }, + { + "name": 3, + "x": 216, + "y": 256, + "timeout": -1 + }, + { + "name": 3, + "x": 134, + "y": 188, + "timeout": -1 + }, + { + "name": 3, + "x": 160, + "y": 157, + "timeout": -1 + }, + { + "name": 82, + "x": 76, + "y": 335, + "angle": 100, + "size": 2 + }, + { + "name": 100, + "x": 272, + "y": 204, + "length": 140, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 100, + "x": 162, + "y": 77, + "length": 100, + "wheel": false, + "gun": false, + "radius": 60, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "L", + "hidePath": false + }, + { + "name": 54, + "x": 119, + "y": 352 + }, + { + "name": 54, + "x": 208, + "y": 348 + }, + { + "name": 82, + "x": 255, + "y": 337, + "angle": -100, + "size": 2 + } + ], + "levelId": "06-08", + "levelEditedAt": "2026-05-05T17:19:48.652Z", + "textCommandSolution": "cut_rope 0 when candy_still for 0.3 and candy_near 960,770,60\npop_bubble 1 when candy_y < 70\ncut_rope 2 when candy_near 900,350,50", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T17:20:01.216Z" +} diff --git a/cutrope/source/rope-270.json b/cutrope/source/rope-270.json new file mode 100644 index 0000000000000000000000000000000000000000..4fa4792077e906f4f8bea308106faf83fc24f464 --- /dev/null +++ b/cutrope/source/rope-270.json @@ -0,0 +1,157 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 3, + "x": 161, + "y": 306, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 308, + "timeout": -1 + }, + { + "name": 3, + "x": 158, + "y": 308, + "timeout": -1 + }, + { + "name": 52, + "x": 267, + "y": 128 + }, + { + "name": 100, + "x": 264, + "y": 46, + "length": 50, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 2, + "x": 94, + "y": 334 + }, + { + "name": 100, + "x": 64, + "y": 45, + "length": 260, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + } + ], + "ru": [ + { + "name": 8, + "x": 126, + "y": 401, + "locale": "ru", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 146, + "y": 392, + "locale": "ru", + "text": "Чтобы повернуть пилу, нажмите кнопку", + "width": 150 + } + ], + "w": [ + { + "name": 4, + "x": 143, + "y": 393, + "locale": "en", + "text": "Turn the blades with this button", + "width": 150 + }, + { + "name": 8, + "x": 126, + "y": 401, + "locale": "en", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "de": [ + { + "name": 4, + "x": 150, + "y": 389, + "locale": "de", + "text": "Drehe die Sägeblätter mit diesem Schaltfeld", + "width": 180 + }, + { + "name": 8, + "x": 126, + "y": 403, + "locale": "de", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "fr": [ + { + "name": 4, + "x": 146, + "y": 391, + "locale": "fr", + "text": "Faites tourner les lames avec ce bouton", + "width": 150 + }, + { + "name": 8, + "x": 128, + "y": 407, + "locale": "fr", + "angle": 90, + "moveSpeed": 100, + "rotateSpeed": 100 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T18:23:19.317Z", + "mirroredFrom": "09-01.json" +} diff --git a/cutrope/source/rope-271.json b/cutrope/source/rope-271.json new file mode 100644 index 0000000000000000000000000000000000000000..37477a02ad58685cdaeab228c956aa40567ffc8a --- /dev/null +++ b/cutrope/source/rope-271.json @@ -0,0 +1,364 @@ +{ + "settings": [ + { + "name": 0, + "gridSize": 32, + "width": 320, + "height": 480 + }, + { + "name": 1, + "ropePhysicsSpeed": 1, + "special": 1, + "twoParts": false + } + ], + "objects": [ + { + "name": 52, + "x": 162, + "y": 147 + }, + { + "name": 100, + "x": 161, + "y": 45, + "length": 90, + "wheel": false, + "gun": false, + "radius": -1, + "moveLength": -1, + "moveVertical": false, + "moveOffset": 0, + "spider": false, + "part": "R", + "hidePath": false + }, + { + "name": 2, + "x": 159, + "y": 427 + }, + { + "name": 3, + "x": 158, + "y": 230, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 295, + "timeout": -1 + }, + { + "name": 3, + "x": 159, + "y": 361, + "timeout": -1 + }, + { + "name": 4, + "x": 146, + "y": 46, + "locale": "en", + "text": "Slide across to cut the rope", + "width": 130 + }, + { + "name": 4, + "x": 138, + "y": 335, + "locale": "en", + "text": "Deliver candy to Om Nom", + "width": 130 + }, + { + "name": 5, + "x": 263, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 8, + "x": 89, + "y": 416, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 211, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 159, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 107, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 5, + "x": 55, + "y": 119, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 14, + "x": 227, + "y": 149, + "locale": "en", + "moveSpeed": 100, + "rotateSpeed": 100, + "special": 2 + } + ], + "ru": [ + { + "name": 14, + "x": 93, + "y": 156, + "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": 17, + "locale": "ru", + "text": "Проведите или нажмите курсором, чтобы перерезать веревку", + "width": 160 + }, + { + "name": 8, + "x": 231, + "y": 421, + "locale": "ru", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 196, + "y": 314, + "locale": "ru", + "text": "Доставьте леденец Ам Няму", + "width": 80 + } + ], + "fr": [ + { + "name": 14, + "x": 92, + "y": 149, + "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": 31, + "locale": "fr", + "text": "Clique ou fais glisser pour couper la corde", + "width": 130 + }, + { + "name": 8, + "x": 231, + "y": 415, + "locale": "fr", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 196, + "y": 311, + "locale": "fr", + "text": "Donne un bonbon à Om Nom", + "width": 100 + } + ], + "de": [ + { + "name": 14, + "x": 93, + "y": 156, + "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": 175, + "y": 35, + "locale": "de", + "text": "Klicke oder ziehe, um das Seil zu schneiden", + "width": 160 + }, + { + "name": 8, + "x": 231, + "y": 416, + "locale": "de", + "moveSpeed": 100, + "rotateSpeed": 100 + }, + { + "name": 4, + "x": 200, + "y": 317, + "locale": "de", + "text": "Versorg Om Nom mit Bonbons", + "width": 100 + } + ], + "textCommandSolution": "cut_rope 0", + "textCommandSolutionStars": 3, + "textCommandSolutionWon": true, + "textCommandSolutionUpdatedAt": "2026-05-05T10:49:54.156Z", + "mirroredFrom": "01-01.json" +} diff --git a/lamp/data/lamp-053.json b/lamp/data/lamp-053.json new file mode 100644 index 0000000000000000000000000000000000000000..37787f97f66a0a98e314d0486834ec942806568c --- /dev/null +++ b/lamp/data/lamp-053.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-053", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 124.1, + "y": 189.38 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -60 + }, + { + "joint": 2, + "angle": 80 + }, + { + "joint": 3, + "angle": 115 + } + ] + }, + "legacy_answer": [ + -60, + 80, + 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-053\n- segment_count: 3\n- arm_base: (120.0, 120.0)\n- target: (124.1, 189.38)\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- 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=l_corner, pattern=warning_stripes\n part 1: x=160, y=160, width=80, height=40\n part 2: x=160, 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-054.json b/lamp/data/lamp-054.json new file mode 100644 index 0000000000000000000000000000000000000000..3eecbf047f2541366aa642b690d16e79c6922e44 --- /dev/null +++ b/lamp/data/lamp-054.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-054", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 8, + "y": 376.01 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 280, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 320, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 240, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 50 + }, + { + "joint": 2, + "angle": -175 + }, + { + "joint": 3, + "angle": 80 + }, + { + "joint": 4, + "angle": 125 + }, + { + "joint": 5, + "angle": 90 + } + ] + }, + "legacy_answer": [ + 50, + -175, + 80, + 125, + 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-054\n- segment_count: 5\n- arm_base: (40.0, 120.0)\n- target: (8.0, 376.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=90\n- joint 3: length=90\n- joint 4: length=50\n- joint 5: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=40, y=280, width=80, height=40\n part 2: x=80, y=320, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=240, 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-055.json b/lamp/data/lamp-055.json new file mode 100644 index 0000000000000000000000000000000000000000..23dd61785d367350dd65f31124a3f1e05f3500a6 --- /dev/null +++ b/lamp/data/lamp-055.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-055", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": -70.18, + "y": 43.27 + }, + "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": -40, + "y": -80, + "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": -130 + }, + { + "joint": 2, + "angle": 115 + } + ] + }, + "legacy_answer": [ + -130, + 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-055\n- segment_count: 2\n- arm_base: (0.0, 0.0)\n- target: (-70.18, 43.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=90\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=-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-231.json b/lamp/data/lamp-231.json new file mode 100644 index 0000000000000000000000000000000000000000..e2fba91c5d7e4974065bf9b647de37cd5ac6b90e --- /dev/null +++ b/lamp/data/lamp-231.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-231", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 92.33, + "y": -113.63 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -150 + }, + { + "joint": 2, + "angle": -80 + } + ] + }, + "legacy_answer": [ + -150, + -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-231\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (92.33, -113.63)\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=0, width=80, height=40\n part 2: x=0, y=0, 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-232.json b/lamp/data/lamp-232.json new file mode 100644 index 0000000000000000000000000000000000000000..7ecb9dc1c2d58a18db3b5f48dae921431afae88c --- /dev/null +++ b/lamp/data/lamp-232.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-232", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 258.39, + "y": 117.69 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": -65 + }, + { + "joint": 4, + "angle": -10 + }, + { + "joint": 5, + "angle": 95 + } + ] + }, + "legacy_answer": [ + 30, + 30, + -65, + -10, + 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-232\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (258.39, 117.69)\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- joint 4: length=50\n- joint 5: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=200, y=120, width=80, height=40\n part 2: x=240, y=160, width=80, height=40\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-233.json b/lamp/data/lamp-233.json new file mode 100644 index 0000000000000000000000000000000000000000..b5bbe80b715a8402bd26b781c8f75dabc9e06058 --- /dev/null +++ b/lamp/data/lamp-233.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-233", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": -63.48, + "y": 55.11 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 155 + }, + { + "joint": 2, + "angle": 165 + }, + { + "joint": 3, + "angle": -125 + }, + { + "joint": 4, + "angle": -60 + }, + { + "joint": 5, + "angle": 15 + } + ] + }, + "legacy_answer": [ + 155, + 165, + -125, + -60, + 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-233\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (-63.48, 55.11)\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=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-80, 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-234.json b/lamp/data/lamp-234.json new file mode 100644 index 0000000000000000000000000000000000000000..20e57947c4ff200b1afe21443a908e8463926535 --- /dev/null +++ b/lamp/data/lamp-234.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-234", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 62.98, + "y": 2.47 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 160, + "width": 80, + "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": 40 + }, + { + "joint": 2, + "angle": -65 + }, + { + "joint": 3, + "angle": -125 + } + ] + }, + "legacy_answer": [ + 40, + -65, + -125 + ], + "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-234\n- segment_count: 3\n- arm_base: (0.0, 80.0)\n- target: (62.98, 2.47)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=-40, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=120, width=80, height=40\n part 2: x=120, 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-235.json b/lamp/data/lamp-235.json new file mode 100644 index 0000000000000000000000000000000000000000..c8ab5e8571406dba324acabd9f21136cb590725f --- /dev/null +++ b/lamp/data/lamp-235.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-235", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 55.26, + "y": 60.28 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 120, + "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": -175 + }, + { + "joint": 2, + "angle": -50 + } + ] + }, + "legacy_answer": [ + -175, + -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-235\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (55.26, 60.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- 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=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-236.json b/lamp/data/lamp-236.json new file mode 100644 index 0000000000000000000000000000000000000000..16d434a1ea592ca083c35d108cebb77317b17af7 --- /dev/null +++ b/lamp/data/lamp-236.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-236", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -24.84, + "y": 109.04 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 85 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": -110 + }, + { + "joint": 4, + "angle": -130 + } + ] + }, + "legacy_answer": [ + 85, + 105, + -110, + -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-236\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (-24.84, 109.04)\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=110\n- obstacles:\n- wall_1: 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-237.json b/lamp/data/lamp-237.json new file mode 100644 index 0000000000000000000000000000000000000000..477ccde8445ed4a50b295a4527e8162ebf0e94cf --- /dev/null +++ b/lamp/data/lamp-237.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-237", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 28.12, + "y": 250.42 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "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": 115 + }, + { + "joint": 2, + "angle": 145 + }, + { + "joint": 3, + "angle": 10 + } + ] + }, + "legacy_answer": [ + 115, + 145, + 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-237\n- segment_count: 3\n- arm_base: (40.0, 80.0)\n- target: (28.12, 250.42)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=200, 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-238.json b/lamp/data/lamp-238.json new file mode 100644 index 0000000000000000000000000000000000000000..3f8fe568e632f5b4cd192b43581c17c9bbbc5909 --- /dev/null +++ b/lamp/data/lamp-238.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-238", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": -62.63, + "y": -58.4 + }, + "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": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -125 + }, + { + "joint": 2, + "angle": -30 + }, + { + "joint": 3, + "angle": 160 + } + ] + }, + "legacy_answer": [ + -125, + -30, + 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-238\n- segment_count: 3\n- arm_base: (0.0, 0.0)\n- target: (-62.63, -58.4)\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- 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-239.json b/lamp/data/lamp-239.json new file mode 100644 index 0000000000000000000000000000000000000000..bb1ad4dd9c55431c44ebf139fabeedad2ef310d9 --- /dev/null +++ b/lamp/data/lamp-239.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-239", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 29.36, + "y": 213.11 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 40, + "height": 120 + } + ] + }, + { + "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": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 60, + 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-239\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (29.36, 213.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=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=40, y=160, width=40, height=120\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-240.json b/lamp/data/lamp-240.json new file mode 100644 index 0000000000000000000000000000000000000000..e419a490477919e0cb95ebc3171c8cd9149f57f2 --- /dev/null +++ b/lamp/data/lamp-240.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-240", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": 108.89, + "y": -10 + }, + "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": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -30 + }, + { + "joint": 2, + "angle": 40 + } + ] + }, + "legacy_answer": [ + -30, + 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-240\n- segment_count: 2\n- arm_base: (-40.0, 0.0)\n- target: (108.89, -10.0)\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=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-241.json b/lamp/data/lamp-241.json new file mode 100644 index 0000000000000000000000000000000000000000..370cd92cfca557194749ffb2fbd4f5b32052557b --- /dev/null +++ b/lamp/data/lamp-241.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-241", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 45.35, + "y": 365.87 + }, + "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": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 70 + }, + { + "joint": 2, + "angle": 120 + }, + { + "joint": 3, + "angle": 155 + }, + { + "joint": 4, + "angle": 65 + } + ] + }, + "legacy_answer": [ + 70, + 120, + 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-241\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (45.35, 365.87)\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=50\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-242.json b/lamp/data/lamp-242.json new file mode 100644 index 0000000000000000000000000000000000000000..7ac8016f2ef3246335a0e2fb14516044c2a6e27a --- /dev/null +++ b/lamp/data/lamp-242.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-242", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 62.33, + "y": -39.13 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -50 + }, + { + "joint": 2, + "angle": -175 + }, + { + "joint": 3, + "angle": 160 + }, + { + "joint": 4, + "angle": 20 + } + ] + }, + "legacy_answer": [ + -50, + -175, + 160, + 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-242\n- segment_count: 4\n- arm_base: (120.0, 0.0)\n- target: (62.33, -39.13)\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=90\n- joint 4: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=0, width=80, height=40\n part 2: x=0, y=0, 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-243.json b/lamp/data/lamp-243.json new file mode 100644 index 0000000000000000000000000000000000000000..b9bf84f94f54d1b45141b689d07e94897dedb2ef --- /dev/null +++ b/lamp/data/lamp-243.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-243", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 44.06, + "y": 107.85 + }, + "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": "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": 70 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": -40 + }, + { + "joint": 4, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -170, + 150, + -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-243\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (44.06, 107.85)\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=50\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=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-244.json b/lamp/data/lamp-244.json new file mode 100644 index 0000000000000000000000000000000000000000..a6be280a0f7b5843974da0c2fa2ef777bda74c9f --- /dev/null +++ b/lamp/data/lamp-244.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-244", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 131.7, + "y": 150.26 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": -150 + } + ] + }, + "legacy_answer": [ + 60, + -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-244\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (131.7, 150.26)\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- 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=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-245.json b/lamp/data/lamp-245.json new file mode 100644 index 0000000000000000000000000000000000000000..00bd6a8a671d3242a8fda5d8d50940dadb96d472 --- /dev/null +++ b/lamp/data/lamp-245.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-245", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 128.45, + "y": -68.76 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -80, + "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": -65 + }, + { + "joint": 2, + "angle": -115 + } + ] + }, + "legacy_answer": [ + -65, + -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-245\n- segment_count: 2\n- arm_base: (120.0, 40.0)\n- target: (128.45, -68.76)\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_horizontal, pattern=warning_stripes\n part 1: x=0, y=-40, width=120, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=160, 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-246.json b/lamp/data/lamp-246.json new file mode 100644 index 0000000000000000000000000000000000000000..11954e93837f50dc68ca56579e4e40b2300e6fd4 --- /dev/null +++ b/lamp/data/lamp-246.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-246", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 131.83, + "y": -33.33 + }, + "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_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -20 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": -100 + }, + { + "joint": 4, + "angle": 20 + } + ] + }, + "legacy_answer": [ + -20, + 150, + -100, + 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-246\n- segment_count: 4\n- arm_base: (80.0, 40.0)\n- target: (131.83, -33.33)\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- 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_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-247.json b/lamp/data/lamp-247.json new file mode 100644 index 0000000000000000000000000000000000000000..6d0cb3323962d718161e69191c699b79d9ced4c9 --- /dev/null +++ b/lamp/data/lamp-247.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-247", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 56.69, + "y": 216.77 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 240, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 240, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": 100 + }, + { + "joint": 3, + "angle": -35 + }, + { + "joint": 4, + "angle": 180 + }, + { + "joint": 5, + "angle": 95 + } + ] + }, + "legacy_answer": [ + 45, + 100, + -35, + 180, + 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-247\n- segment_count: 5\n- arm_base: (40.0, 80.0)\n- target: (56.69, 216.77)\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=90\n- joint 4: length=90\n- joint 5: length=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=240, width=80, height=40\n part 2: x=0, y=240, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: 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-248.json b/lamp/data/lamp-248.json new file mode 100644 index 0000000000000000000000000000000000000000..51fd277196dd6b60d13489c530946618b5122716 --- /dev/null +++ b/lamp/data/lamp-248.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-248", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -4.84, + "y": 50.47 + }, + "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": -40, + "y": -80, + "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": 40 + }, + { + "joint": 2, + "angle": -155 + }, + { + "joint": 3, + "angle": -105 + } + ] + }, + "legacy_answer": [ + 40, + -155, + -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-248\n- segment_count: 3\n- arm_base: (0.0, 120.0)\n- target: (-4.84, 50.47)\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=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=-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-249.json b/lamp/data/lamp-249.json new file mode 100644 index 0000000000000000000000000000000000000000..7fd36f3c8aa76ea540a2fe447d5c319889c55e7c --- /dev/null +++ b/lamp/data/lamp-249.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-249", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 183.87, + "y": 114.9 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "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": 70 + }, + { + "joint": 2, + "angle": -15 + } + ] + }, + "legacy_answer": [ + 70, + -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-249\n- segment_count: 2\n- arm_base: (40.0, 40.0)\n- target: (183.87, 114.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=110\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=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-250.json b/lamp/data/lamp-250.json new file mode 100644 index 0000000000000000000000000000000000000000..a4e2804d7692353e704c20cee321e6be30e40f1e --- /dev/null +++ b/lamp/data/lamp-250.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-250", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 55.11, + "y": 184.27 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 200, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": -50 + }, + { + "joint": 3, + "angle": 115 + }, + { + "joint": 4, + "angle": -175 + }, + { + "joint": 5, + "angle": 120 + } + ] + }, + "legacy_answer": [ + -40, + -50, + 115, + -175, + 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-250\n- segment_count: 5\n- arm_base: (80.0, 120.0)\n- target: (55.11, 184.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=50\n- joint 3: length=110\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=40, y=200, width=80, height=40\n part 2: x=40, y=200, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: 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-251.json b/lamp/data/lamp-251.json new file mode 100644 index 0000000000000000000000000000000000000000..c8eb5b009dcb3d8445782c3f07a9d4071918b45d --- /dev/null +++ b/lamp/data/lamp-251.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-251", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 120 + }, + "target": { + "x": 70.96, + "y": 91.32 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": -35 + } + ] + }, + "legacy_answer": [ + 0, + -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-251\n- segment_count: 2\n- arm_base: (-80.0, 120.0)\n- target: (70.96, 91.32)\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- 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_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-252.json b/lamp/data/lamp-252.json new file mode 100644 index 0000000000000000000000000000000000000000..56e0b924bf4280012c021dbe7584d80ecfb5d608 --- /dev/null +++ b/lamp/data/lamp-252.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-252", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": -45.89, + "y": 47.29 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 135 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": 65 + }, + { + "joint": 4, + "angle": -90 + }, + { + "joint": 5, + "angle": 145 + } + ] + }, + "legacy_answer": [ + 135, + 150, + 65, + -90, + 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-252\n- segment_count: 5\n- arm_base: (120.0, -40.0)\n- target: (-45.89, 47.29)\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=90\n- joint 5: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=0, width=80, height=40\n part 2: x=120, y=40, width=80, height=40\n- wall_2: 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-253.json b/lamp/data/lamp-253.json new file mode 100644 index 0000000000000000000000000000000000000000..1da1b57c0bf282ca0602da555a092080811ca727 --- /dev/null +++ b/lamp/data/lamp-253.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-253", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 71.45, + "y": 14.69 + }, + "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": 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": 115 + }, + { + "joint": 2, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 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-253\n- segment_count: 2\n- arm_base: (40.0, -40.0)\n- target: (71.45, 14.69)\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=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=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-254.json b/lamp/data/lamp-254.json new file mode 100644 index 0000000000000000000000000000000000000000..6c44f5726997d262812f19ff09adab08beda6235 --- /dev/null +++ b/lamp/data/lamp-254.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-254", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 62.18, + "y": 60.5 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": -150 + }, + { + "joint": 4, + "angle": -45 + }, + { + "joint": 5, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 0, + 90, + -150, + -45, + -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-254\n- segment_count: 5\n- arm_base: (-40.0, 120.0)\n- target: (62.18, 60.5)\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=70\n- joint 5: length=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-80, y=0, width=80, height=80\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-255.json b/lamp/data/lamp-255.json new file mode 100644 index 0000000000000000000000000000000000000000..7049aeb7be57917357cc9f69e32b1637617c9224 --- /dev/null +++ b/lamp/data/lamp-255.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-255", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 137.9, + "y": 253.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 120, + "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": 125 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 125, + 75, + 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-255\n- segment_count: 3\n- arm_base: (40.0, 80.0)\n- target: (137.9, 253.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=110\n- joint 3: length=110\n- obstacles:\n- wall_1: 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- wall_2: 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-256.json b/lamp/data/lamp-256.json new file mode 100644 index 0000000000000000000000000000000000000000..c9c6442781db8f4335a2032bfe132efe21c6f0f8 --- /dev/null +++ b/lamp/data/lamp-256.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-256", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -114.58, + "y": 130.53 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "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": -150 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": 45 + }, + { + "joint": 4, + "angle": 75 + } + ] + }, + "legacy_answer": [ + -150, + -165, + 45, + 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-256\n- segment_count: 4\n- arm_base: (0.0, 120.0)\n- target: (-114.58, 130.53)\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=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-257.json b/lamp/data/lamp-257.json new file mode 100644 index 0000000000000000000000000000000000000000..2c9693888a9b147fc41a477bd4ef86c755c37ed3 --- /dev/null +++ b/lamp/data/lamp-257.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-257", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 246.06, + "y": 305.12 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": 240, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "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": 80 + }, + { + "joint": 3, + "angle": 150 + }, + { + "joint": 4, + "angle": 10 + }, + { + "joint": 5, + "angle": -5 + } + ] + }, + "legacy_answer": [ + 55, + 80, + 150, + 10, + -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-257\n- segment_count: 5\n- arm_base: (120.0, 120.0)\n- target: (246.06, 305.12)\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- joint 4: length=50\n- joint 5: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=200, y=200, width=80, height=40\n part 2: x=240, y=240, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, 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-258.json b/lamp/data/lamp-258.json new file mode 100644 index 0000000000000000000000000000000000000000..d2bc91c59dc437bc752ed194431f539cb65291a0 --- /dev/null +++ b/lamp/data/lamp-258.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-258", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -41.43, + "y": 20.17 + }, + "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": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -140 + }, + { + "joint": 2, + "angle": -105 + }, + { + "joint": 3, + "angle": 105 + }, + { + "joint": 4, + "angle": -45 + }, + { + "joint": 5, + "angle": 120 + } + ] + }, + "legacy_answer": [ + -140, + -105, + 105, + -45, + 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-258\n- segment_count: 5\n- arm_base: (40.0, 40.0)\n- target: (-41.43, 20.17)\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=90\n- joint 5: length=110\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=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-259.json b/lamp/data/lamp-259.json new file mode 100644 index 0000000000000000000000000000000000000000..e7b50c38d2d8d20fd1b0c3167395b78dd256f70c --- /dev/null +++ b/lamp/data/lamp-259.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-259", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 60.08, + "y": 269.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": 115 + } + ] + }, + "legacy_answer": [ + 75, + 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-259\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (60.08, 269.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=90\n- obstacles:\n- wall_1: 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-260.json b/lamp/data/lamp-260.json new file mode 100644 index 0000000000000000000000000000000000000000..4265baa7bafc502d43ea25fd01adf934955736e4 --- /dev/null +++ b/lamp/data/lamp-260.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-260", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 319.91, + "y": 188.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "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": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -75 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": 40 + }, + { + "joint": 4, + "angle": 60 + }, + { + "joint": 5, + "angle": 5 + } + ] + }, + "legacy_answer": [ + -75, + 15, + 40, + 60, + 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-260\n- segment_count: 5\n- arm_base: (40.0, 120.0)\n- target: (319.91, 188.61)\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=70\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=120, y=160, width=80, height=80\n- wall_2: 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-261.json b/lamp/data/lamp-261.json new file mode 100644 index 0000000000000000000000000000000000000000..2597df493261ae6eb4144472cd0ca42cc575481c --- /dev/null +++ b/lamp/data/lamp-261.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-261", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 152.01, + "y": 176.22 + }, + "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": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 80, + "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": 115 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 115, + 40, + 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-261\n- segment_count: 3\n- arm_base: (40.0, 0.0)\n- target: (152.01, 176.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- 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- 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-262.json b/lamp/data/lamp-262.json new file mode 100644 index 0000000000000000000000000000000000000000..9727368edd5629c06810ed883c6327521259d04b --- /dev/null +++ b/lamp/data/lamp-262.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-262", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 199.19, + "y": 82.74 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 5 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": 35 + }, + { + "joint": 4, + "angle": -125 + }, + { + "joint": 5, + "angle": -170 + } + ] + }, + "legacy_answer": [ + 5, + 5, + 35, + -125, + -170 + ], + "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-262\n- segment_count: 5\n- arm_base: (40.0, 80.0)\n- target: (199.19, 82.74)\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=50\n- joint 5: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=120, width=80, height=40\n part 2: x=120, y=160, width=80, height=40\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-263.json b/lamp/data/lamp-263.json new file mode 100644 index 0000000000000000000000000000000000000000..4ea8eae4d7ce800c46010c9285731e380e436170 --- /dev/null +++ b/lamp/data/lamp-263.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-263", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": -40 + }, + "target": { + "x": -23.3, + "y": 117.15 + }, + "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": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 105 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": 165 + }, + { + "joint": 4, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 105, + 20, + 165, + 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-263\n- segment_count: 4\n- arm_base: (-40.0, -40.0)\n- target: (-23.3, 117.15)\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=70\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-264.json b/lamp/data/lamp-264.json new file mode 100644 index 0000000000000000000000000000000000000000..88dc48aa8f0ea208a45ee93fcf6038e70b1c8a90 --- /dev/null +++ b/lamp/data/lamp-264.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-264", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 84.73, + "y": 53.28 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -5 + }, + { + "joint": 2, + "angle": 0 + }, + { + "joint": 3, + "angle": -120 + } + ] + }, + "legacy_answer": [ + -5, + 0, + -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-264\n- segment_count: 3\n- arm_base: (-40.0, 120.0)\n- target: (84.73, 53.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=90\n- joint 3: 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=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-265.json b/lamp/data/lamp-265.json new file mode 100644 index 0000000000000000000000000000000000000000..5277fdc282ff7ab5bc2d2fde3e86e6e5fe11ccaa --- /dev/null +++ b/lamp/data/lamp-265.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-265", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 195.51, + "y": 212.19 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 85 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": -25 + }, + { + "joint": 4, + "angle": -5 + } + ] + }, + "legacy_answer": [ + 85, + 90, + -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-265\n- segment_count: 4\n- arm_base: (0.0, 120.0)\n- target: (195.51, 212.19)\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=90\n- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, 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-266.json b/lamp/data/lamp-266.json new file mode 100644 index 0000000000000000000000000000000000000000..528f17dc63e3c49cc75b7faa2020f740ebecee1f --- /dev/null +++ b/lamp/data/lamp-266.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-266", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": 140.59, + "y": 169.12 + }, + "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 + } + ] + } + ], + "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": -15 + }, + { + "joint": 2, + "angle": 55 + }, + { + "joint": 3, + "angle": 145 + }, + { + "joint": 4, + "angle": 70 + }, + { + "joint": 5, + "angle": -95 + } + ] + }, + "legacy_answer": [ + -15, + 55, + 145, + 70, + -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-266\n- segment_count: 5\n- arm_base: (0.0, 40.0)\n- target: (140.59, 169.12)\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=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-267.json b/lamp/data/lamp-267.json new file mode 100644 index 0000000000000000000000000000000000000000..13549b91341178b58f5404ffff656676ee782051 --- /dev/null +++ b/lamp/data/lamp-267.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-267", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 26.62, + "y": 2.98 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "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": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -55 + }, + { + "joint": 2, + "angle": -120 + } + ] + }, + "legacy_answer": [ + -55, + -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-267\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (26.62, 2.98)\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_vertical, pattern=warning_stripes\n part 1: x=-80, y=0, 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-268.json b/lamp/data/lamp-268.json new file mode 100644 index 0000000000000000000000000000000000000000..18fc5e64e6b0347dc494d5c3272f91ab24e25337 --- /dev/null +++ b/lamp/data/lamp-268.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-268", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 7, + "y": 227.17 + }, + "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_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -85 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": 65 + }, + { + "joint": 4, + "angle": 100 + } + ] + }, + "legacy_answer": [ + -85, + 105, + 65, + 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-268\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (7.0, 227.17)\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=90\n- joint 4: length=70\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_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-269.json b/lamp/data/lamp-269.json new file mode 100644 index 0000000000000000000000000000000000000000..23478ae1025cd6e4005addfd77631b2565cb5db7 --- /dev/null +++ b/lamp/data/lamp-269.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-269", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 94.5, + "y": 172.09 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 40 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": -155 + }, + { + "joint": 4, + "angle": 55 + }, + { + "joint": 5, + "angle": 160 + } + ] + }, + "legacy_answer": [ + 40, + 30, + -155, + 55, + 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-269\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (94.5, 172.09)\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- joint 4: length=50\n- joint 5: length=110\n- obstacles:\n- wall_1: 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- 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-270.json b/lamp/data/lamp-270.json new file mode 100644 index 0000000000000000000000000000000000000000..11ecef818218f79469fa632e37316842406a003c --- /dev/null +++ b/lamp/data/lamp-270.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-270", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 324.18, + "y": -39.11 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 280, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 320, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": -60 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": -45 + } + ] + }, + "legacy_answer": [ + 75, + -60, + 25, + -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-270\n- segment_count: 4\n- arm_base: (120.0, 0.0)\n- target: (324.18, -39.11)\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=90\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, y=40, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=280, y=40, width=80, height=40\n part 2: x=320, 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-271.json b/lamp/data/lamp-271.json new file mode 100644 index 0000000000000000000000000000000000000000..967e3e5310f7c676a4262de75b91761d036d5c49 --- /dev/null +++ b/lamp/data/lamp-271.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-271", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 191.31, + "y": 15.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": -115 + }, + { + "joint": 3, + "angle": -65 + }, + { + "joint": 4, + "angle": -40 + }, + { + "joint": 5, + "angle": 50 + } + ] + }, + "legacy_answer": [ + 110, + -115, + -65, + -40, + 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-271\n- segment_count: 5\n- arm_base: (80.0, 120.0)\n- target: (191.31, 15.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=90\n- joint 3: length=110\n- joint 4: length=90\n- joint 5: length=90\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=80, y=0, width=80, height=80\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, 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-272.json b/lamp/data/lamp-272.json new file mode 100644 index 0000000000000000000000000000000000000000..ff420217123552b34715bd0234033bd4f2a0e911 --- /dev/null +++ b/lamp/data/lamp-272.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-272", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 214.23, + "y": -62.94 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 0, + "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": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -20 + }, + { + "joint": 2, + "angle": 5 + } + ] + }, + "legacy_answer": [ + -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-272\n- segment_count: 2\n- arm_base: (40.0, -40.0)\n- target: (214.23, -62.94)\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- obstacles:\n- wall_1: 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- 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-273.json b/lamp/data/lamp-273.json new file mode 100644 index 0000000000000000000000000000000000000000..ec59dc3307ff6e8807b3e31b586b84f75373b0ee --- /dev/null +++ b/lamp/data/lamp-273.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-273", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 12.3, + "y": 297.2 + }, + "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": 80, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 240, + "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": 105 + }, + { + "joint": 2, + "angle": 95 + } + ] + }, + "legacy_answer": [ + 105, + 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-273\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (12.3, 297.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=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=80, y=200, width=80, height=40\n part 2: x=120, 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-274.json b/lamp/data/lamp-274.json new file mode 100644 index 0000000000000000000000000000000000000000..39dd777fee4155421f838c6675b1bff60ce8f04c --- /dev/null +++ b/lamp/data/lamp-274.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-274", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 56.44, + "y": 66.23 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -95 + }, + { + "joint": 2, + "angle": 175 + }, + { + "joint": 3, + "angle": 170 + }, + { + "joint": 4, + "angle": 40 + }, + { + "joint": 5, + "angle": 70 + } + ] + }, + "legacy_answer": [ + -95, + 175, + 170, + 40, + 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-274\n- segment_count: 5\n- arm_base: (120.0, 0.0)\n- target: (56.44, 66.23)\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=110\n- joint 5: length=50\n- obstacles:\n- wall_1: 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-275.json b/lamp/data/lamp-275.json new file mode 100644 index 0000000000000000000000000000000000000000..160674de53d5534fd9d2acde77268368dbefb478 --- /dev/null +++ b/lamp/data/lamp-275.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-275", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 117.6, + "y": 85.93 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -155 + }, + { + "joint": 2, + "angle": 135 + }, + { + "joint": 3, + "angle": -30 + }, + { + "joint": 4, + "angle": -5 + }, + { + "joint": 5, + "angle": 80 + } + ] + }, + "legacy_answer": [ + -155, + 135, + -30, + -5, + 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-275\n- segment_count: 5\n- arm_base: (80.0, 0.0)\n- target: (117.6, 85.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=110\n- joint 3: length=110\n- joint 4: length=50\n- joint 5: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=40\n part 2: x=160, y=80, width=80, height=40\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-276.json b/lamp/data/lamp-276.json new file mode 100644 index 0000000000000000000000000000000000000000..52bf63acb76fbb593a6dae715d53180f1d2f42ad --- /dev/null +++ b/lamp/data/lamp-276.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-276", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 306.03, + "y": 117.92 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -10 + }, + { + "joint": 2, + "angle": -100 + }, + { + "joint": 3, + "angle": 10 + }, + { + "joint": 4, + "angle": 75 + } + ] + }, + "legacy_answer": [ + -10, + -100, + 10, + 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-276\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (306.03, 117.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=110\n- joint 3: length=110\n- joint 4: length=110\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=bar_horizontal, pattern=warning_stripes\n part 1: x=200, 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-277.json b/lamp/data/lamp-277.json new file mode 100644 index 0000000000000000000000000000000000000000..f05749e082759393c56144eeb0dfb2f5c9a82647 --- /dev/null +++ b/lamp/data/lamp-277.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-277", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 41.85, + "y": 35.76 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "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": 50 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": -20 + }, + { + "joint": 3, + "angle": -80 + }, + { + "joint": 4, + "angle": 160 + } + ] + }, + "legacy_answer": [ + -170, + -20, + -80, + 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-277\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (41.85, 35.76)\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=50\n- joint 4: length=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=80, 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-278.json b/lamp/data/lamp-278.json new file mode 100644 index 0000000000000000000000000000000000000000..ef987f6e482b6058f3b46ddd8b8128a708757c50 --- /dev/null +++ b/lamp/data/lamp-278.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-278", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 28.51, + "y": -85.39 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -80, + "width": 80, + "height": 80 + } + ] + } + ], + "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": 175 + }, + { + "joint": 2, + "angle": -30 + }, + { + "joint": 3, + "angle": -155 + } + ] + }, + "legacy_answer": [ + 175, + -30, + -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-278\n- segment_count: 3\n- arm_base: (120.0, 0.0)\n- target: (28.51, -85.39)\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=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-279.json b/lamp/data/lamp-279.json new file mode 100644 index 0000000000000000000000000000000000000000..be2734dd5921a5ca526ccf1222b4db5f302fbf60 --- /dev/null +++ b/lamp/data/lamp-279.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-279", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 24.35, + "y": 105.96 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -55 + }, + { + "joint": 2, + "angle": -180 + }, + { + "joint": 3, + "angle": 150 + }, + { + "joint": 4, + "angle": 50 + } + ] + }, + "legacy_answer": [ + -55, + -180, + 150, + 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-279\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (24.35, 105.96)\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=50\n- obstacles:\n- wall_1: 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-280.json b/lamp/data/lamp-280.json new file mode 100644 index 0000000000000000000000000000000000000000..a5487bebbf26503409e4901b6366a6c71b740a36 --- /dev/null +++ b/lamp/data/lamp-280.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-280", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 32.67, + "y": 101.57 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "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": 40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 80, + "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": 15 + }, + { + "joint": 2, + "angle": 100 + } + ] + }, + "legacy_answer": [ + 15, + 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-280\n- segment_count: 2\n- arm_base: (0.0, 0.0)\n- target: (32.67, 101.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=90\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=-40, y=120, 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-281.json b/lamp/data/lamp-281.json new file mode 100644 index 0000000000000000000000000000000000000000..510b186cae627bbf0a053f6953708806d50886d4 --- /dev/null +++ b/lamp/data/lamp-281.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-281", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 102.9, + "y": 176.98 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 90 + }, + { + "joint": 2, + "angle": 110 + } + ] + }, + "legacy_answer": [ + 90, + 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-281\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (102.9, 176.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=120, width=80, height=40\n part 2: x=0, y=120, width=40, height=120\n- wall_2: 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\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-282.json b/lamp/data/lamp-282.json new file mode 100644 index 0000000000000000000000000000000000000000..1a3afd0861f7dc415240985da0152835d8cc136c --- /dev/null +++ b/lamp/data/lamp-282.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-282", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 1.53, + "y": 155.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 70 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": 170 + }, + { + "joint": 4, + "angle": -150 + } + ] + }, + "legacy_answer": [ + 70, + 25, + 170, + -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-282\n- segment_count: 4\n- arm_base: (40.0, 40.0)\n- target: (1.53, 155.16)\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=110\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=200, 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-283.json b/lamp/data/lamp-283.json new file mode 100644 index 0000000000000000000000000000000000000000..e9944bc1ffa7b5c2ca24acd8d52c75e857c5007e --- /dev/null +++ b/lamp/data/lamp-283.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-283", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -50.83, + "y": 116.08 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 95 + }, + { + "joint": 2, + "angle": 145 + }, + { + "joint": 3, + "angle": -105 + }, + { + "joint": 4, + "angle": -95 + } + ] + }, + "legacy_answer": [ + 95, + 145, + -105, + -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-283\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (-50.83, 116.08)\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=90\n- joint 4: length=90\n- obstacles:\n- wall_1: 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-284.json b/lamp/data/lamp-284.json new file mode 100644 index 0000000000000000000000000000000000000000..7493eabf76ef69138ed8c38cc82c347b1d2f4085 --- /dev/null +++ b/lamp/data/lamp-284.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-284", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": -40 + }, + "target": { + "x": 64.4, + "y": -78.37 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -80 + }, + { + "joint": 2, + "angle": 145 + }, + { + "joint": 3, + "angle": -5 + } + ] + }, + "legacy_answer": [ + -80, + 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-284\n- segment_count: 3\n- arm_base: (0.0, -40.0)\n- target: (64.4, -78.37)\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- 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- 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-285.json b/lamp/data/lamp-285.json new file mode 100644 index 0000000000000000000000000000000000000000..1a9201d1bf82208202ba1f3c20db378b2e5f839c --- /dev/null +++ b/lamp/data/lamp-285.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-285", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 14.33, + "y": 57.68 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "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": -175 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": 35 + } + ] + }, + "legacy_answer": [ + -175, + -95, + 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-285\n- segment_count: 3\n- arm_base: (0.0, 120.0)\n- target: (14.33, 57.68)\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=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=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-286.json b/lamp/data/lamp-286.json new file mode 100644 index 0000000000000000000000000000000000000000..7931e47e018cccfae678c5ac04eb9b0f5aae76ff --- /dev/null +++ b/lamp/data/lamp-286.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-286", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 39.84, + "y": 177.33 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -125 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": 65 + } + ] + }, + "legacy_answer": [ + -125, + 105, + 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-286\n- segment_count: 3\n- arm_base: (80.0, 120.0)\n- target: (39.84, 177.33)\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- obstacles:\n- wall_1: 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-287.json b/lamp/data/lamp-287.json new file mode 100644 index 0000000000000000000000000000000000000000..381889c7a2d23955ce1c81561cab783606637319 --- /dev/null +++ b/lamp/data/lamp-287.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-287", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 204.3, + "y": -35.24 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "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": 20 + }, + { + "joint": 2, + "angle": -135 + }, + { + "joint": 3, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 20, + -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-287\n- segment_count: 3\n- arm_base: (80.0, -40.0)\n- target: (204.3, -35.24)\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=0, width=120, height=40\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=200, y=0, width=80, height=40\n part 2: x=240, 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-288.json b/lamp/data/lamp-288.json new file mode 100644 index 0000000000000000000000000000000000000000..c680bf4ab63ea91ce5a85d5dea81076efe698f9e --- /dev/null +++ b/lamp/data/lamp-288.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-288", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 221.45, + "y": 61.02 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "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": -65 + }, + { + "joint": 2, + "angle": -10 + }, + { + "joint": 3, + "angle": 95 + }, + { + "joint": 4, + "angle": 100 + } + ] + }, + "legacy_answer": [ + -65, + -10, + 95, + 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-288\n- segment_count: 4\n- arm_base: (120.0, -40.0)\n- target: (221.45, 61.02)\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=block, pattern=warning_stripes\n part 1: x=120, 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-289.json b/lamp/data/lamp-289.json new file mode 100644 index 0000000000000000000000000000000000000000..63895e7e9b7adca146f77408445308324de84ec3 --- /dev/null +++ b/lamp/data/lamp-289.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-289", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 211.38, + "y": 22.62 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -80, + "width": 80, + "height": 80 + } + ] + } + ], + "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": 75 + }, + { + "joint": 2, + "angle": -60 + }, + { + "joint": 3, + "angle": 25 + } + ] + }, + "legacy_answer": [ + 75, + -60, + 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-289\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (211.38, 22.62)\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=l_corner, pattern=warning_stripes\n part 1: x=160, y=80, width=80, height=40\n part 2: x=160, y=80, 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-290.json b/lamp/data/lamp-290.json new file mode 100644 index 0000000000000000000000000000000000000000..72fb439c5fea2db22868b726d1f8f7d74f5c9476 --- /dev/null +++ b/lamp/data/lamp-290.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-290", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 238.29, + "y": -73.99 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 90 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": -110 + }, + { + "joint": 4, + "angle": -15 + } + ] + }, + "legacy_answer": [ + 90, + 5, + -110, + -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-290\n- segment_count: 4\n- arm_base: (80.0, -40.0)\n- target: (238.29, -73.99)\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=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=bar_vertical, pattern=warning_stripes\n part 1: 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-291.json b/lamp/data/lamp-291.json new file mode 100644 index 0000000000000000000000000000000000000000..f5f022e7cda9499b46a76675c9a493a5540a2c24 --- /dev/null +++ b/lamp/data/lamp-291.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-291", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 195.75, + "y": 76.66 + }, + "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": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": -20 + }, + { + "joint": 3, + "angle": -40 + }, + { + "joint": 4, + "angle": 95 + }, + { + "joint": 5, + "angle": 95 + } + ] + }, + "legacy_answer": [ + 150, + -20, + -40, + 95, + 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-291\n- segment_count: 5\n- arm_base: (120.0, 0.0)\n- target: (195.75, 76.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=50\n- joint 3: length=110\n- joint 4: length=90\n- joint 5: 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\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-292.json b/lamp/data/lamp-292.json new file mode 100644 index 0000000000000000000000000000000000000000..bfe97ad89759101644a260e3c0adce69a3ca9d7a --- /dev/null +++ b/lamp/data/lamp-292.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-292", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": 26.53, + "y": 206.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 85 + }, + { + "joint": 3, + "angle": 145 + }, + { + "joint": 4, + "angle": 0 + }, + { + "joint": 5, + "angle": -135 + } + ] + }, + "legacy_answer": [ + 60, + 85, + 145, + 0, + -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-292\n- segment_count: 5\n- arm_base: (-40.0, 80.0)\n- target: (26.53, 206.28)\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=110\n- joint 5: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=160, width=120, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-293.json b/lamp/data/lamp-293.json new file mode 100644 index 0000000000000000000000000000000000000000..3325f953a053787daee18b1502d99b3c52ee9a74 --- /dev/null +++ b/lamp/data/lamp-293.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-293", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -51.22, + "y": 201.86 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 95 + }, + { + "joint": 2, + "angle": 170 + }, + { + "joint": 3, + "angle": 110 + } + ] + }, + "legacy_answer": [ + 95, + 170, + 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-293\n- segment_count: 3\n- arm_base: (40.0, 40.0)\n- target: (-51.22, 201.86)\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=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- 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-294.json b/lamp/data/lamp-294.json new file mode 100644 index 0000000000000000000000000000000000000000..ae1931f676dbad2d277b4183fe5387abf7243bfe --- /dev/null +++ b/lamp/data/lamp-294.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-294", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 81.38, + "y": 321.29 + }, + "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": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 25 + }, + { + "joint": 2, + "angle": -100 + }, + { + "joint": 3, + "angle": 100 + }, + { + "joint": 4, + "angle": 140 + }, + { + "joint": 5, + "angle": 55 + } + ] + }, + "legacy_answer": [ + 25, + -100, + 100, + 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-294\n- segment_count: 5\n- arm_base: (0.0, 120.0)\n- target: (81.38, 321.29)\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=70\n- joint 5: 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-295.json b/lamp/data/lamp-295.json new file mode 100644 index 0000000000000000000000000000000000000000..feb52123b694975d2a29b6d6df17dab28d7556af --- /dev/null +++ b/lamp/data/lamp-295.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-295", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 183.9, + "y": 80.63 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "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": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 10, + -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-295\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (183.9, 80.63)\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=block, pattern=warning_stripes\n part 1: x=80, y=0, 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-296.json b/lamp/data/lamp-296.json new file mode 100644 index 0000000000000000000000000000000000000000..d78e927a5026c32f2eae1ec12a35d3e960325e94 --- /dev/null +++ b/lamp/data/lamp-296.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-296", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": -16.89, + "y": -78.49 + }, + "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": 40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 120, + "width": 80, + "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": -10 + }, + { + "joint": 2, + "angle": -145 + }, + { + "joint": 3, + "angle": -140 + } + ] + }, + "legacy_answer": [ + -10, + -145, + -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-296\n- segment_count: 3\n- arm_base: (0.0, 40.0)\n- target: (-16.89, -78.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=50\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=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-297.json b/lamp/data/lamp-297.json new file mode 100644 index 0000000000000000000000000000000000000000..adbe3ae4e8e2c6459d24668987a0ae963bdd7428 --- /dev/null +++ b/lamp/data/lamp-297.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-297", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -80 + }, + "target": { + "x": 59.75, + "y": -24.41 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -145 + }, + { + "joint": 2, + "angle": 180 + }, + { + "joint": 3, + "angle": 50 + } + ] + }, + "legacy_answer": [ + -145, + 180, + 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-297\n- segment_count: 3\n- arm_base: (120.0, -80.0)\n- target: (59.75, -24.41)\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=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=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-298.json b/lamp/data/lamp-298.json new file mode 100644 index 0000000000000000000000000000000000000000..d7b3369b6d008544eb9133b78fa43955f0e4f24f --- /dev/null +++ b/lamp/data/lamp-298.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-298", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -52.33, + "y": 57.61 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -135 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": -100 + } + ] + }, + "legacy_answer": [ + -135, + 95, + -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-298\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (-52.33, 57.61)\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=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=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-299.json b/lamp/data/lamp-299.json new file mode 100644 index 0000000000000000000000000000000000000000..875dae5011087e63853320a78269f941a3e77061 --- /dev/null +++ b/lamp/data/lamp-299.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-299", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 117.58, + "y": 119.3 + }, + "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": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 35 + }, + { + "joint": 2, + "angle": 110 + }, + { + "joint": 3, + "angle": -20 + } + ] + }, + "legacy_answer": [ + 35, + 110, + -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-299\n- segment_count: 3\n- arm_base: (-40.0, 40.0)\n- target: (117.58, 119.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=50\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=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-300.json b/lamp/data/lamp-300.json new file mode 100644 index 0000000000000000000000000000000000000000..efb343e46350dcc27b946169da7dff4b5e1be5f2 --- /dev/null +++ b/lamp/data/lamp-300.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-300", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 222.97, + "y": 66.53 + }, + "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": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + } + ], + "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-300\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (222.97, 66.53)\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_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-301.json b/lamp/data/lamp-301.json new file mode 100644 index 0000000000000000000000000000000000000000..a1b1c1ed31a1d80a88ec36ec1a3d3130296617f1 --- /dev/null +++ b/lamp/data/lamp-301.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-301", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": -16.13, + "y": 31 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": -120 + }, + { + "joint": 3, + "angle": 115 + }, + { + "joint": 4, + "angle": 135 + }, + { + "joint": 5, + "angle": -135 + } + ] + }, + "legacy_answer": [ + 30, + -120, + 115, + 135, + -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-301\n- segment_count: 5\n- arm_base: (80.0, 0.0)\n- target: (-16.13, 31.0)\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=50\n- joint 5: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=80, y=40, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=40\n part 2: x=160, 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-302.json b/lamp/data/lamp-302.json new file mode 100644 index 0000000000000000000000000000000000000000..a9b5c6fd98fb6e04151744a00602db8ab0a251ed --- /dev/null +++ b/lamp/data/lamp-302.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-302", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 239.26, + "y": -32.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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -75 + }, + { + "joint": 3, + "angle": 15 + }, + { + "joint": 4, + "angle": -95 + } + ] + }, + "legacy_answer": [ + -15, + -75, + 15, + -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-302\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (239.26, -32.7)\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=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=0, width=120, 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-303.json b/lamp/data/lamp-303.json new file mode 100644 index 0000000000000000000000000000000000000000..712346709313a4f294556672cf19562a3ad7fbc1 --- /dev/null +++ b/lamp/data/lamp-303.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-303", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 40 + }, + "target": { + "x": -60.71, + "y": 115.75 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "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": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -20 + }, + { + "joint": 2, + "angle": 115 + } + ] + }, + "legacy_answer": [ + -20, + 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-303\n- segment_count: 2\n- arm_base: (-80.0, 40.0)\n- target: (-60.71, 115.75)\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=-80, 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=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-304.json b/lamp/data/lamp-304.json new file mode 100644 index 0000000000000000000000000000000000000000..d137dab951d79a68d6392fd2e7e1685da69c3bb1 --- /dev/null +++ b/lamp/data/lamp-304.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-304", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 164.41, + "y": -102.96 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "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": -45 + }, + { + "joint": 2, + "angle": -15 + }, + { + "joint": 3, + "angle": 110 + }, + { + "joint": 4, + "angle": -70 + } + ] + }, + "legacy_answer": [ + -45, + -15, + 110, + -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-304\n- segment_count: 4\n- arm_base: (40.0, -40.0)\n- target: (164.41, -102.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=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=40, y=0, width=80, height=40\n part 2: x=80, y=40, 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-305.json b/lamp/data/lamp-305.json new file mode 100644 index 0000000000000000000000000000000000000000..8543db0282d747855154fdd671d9379c9af9a917 --- /dev/null +++ b/lamp/data/lamp-305.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-305", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 160.12, + "y": -36.06 + }, + "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": 0, + "y": -80, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": -80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -65 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -85 + }, + { + "joint": 4, + "angle": 125 + } + ] + }, + "legacy_answer": [ + -65, + 25, + -85, + 125 + ], + "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-305\n- segment_count: 4\n- arm_base: (80.0, 0.0)\n- target: (160.12, -36.06)\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=70\n- joint 4: 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=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-306.json b/lamp/data/lamp-306.json new file mode 100644 index 0000000000000000000000000000000000000000..27ed9a636d4cc65e49e8b5b99a19615c3ef8ce55 --- /dev/null +++ b/lamp/data/lamp-306.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-306", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -25.57, + "y": -29.79 + }, + "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": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": -110 + }, + { + "joint": 3, + "angle": 110 + }, + { + "joint": 4, + "angle": -45 + } + ] + }, + "legacy_answer": [ + -170, + -110, + 110, + -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-306\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (-25.57, -29.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- joint 4: 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-307.json b/lamp/data/lamp-307.json new file mode 100644 index 0000000000000000000000000000000000000000..52c8d1fb1aa455341af7708cc10ef371bd6eb351 --- /dev/null +++ b/lamp/data/lamp-307.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-307", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 135.65, + "y": -1.52 + }, + "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": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 20 + }, + { + "joint": 2, + "angle": -20 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": 170 + }, + { + "joint": 5, + "angle": -85 + } + ] + }, + "legacy_answer": [ + 20, + -20, + 25, + 170, + -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-307\n- segment_count: 5\n- arm_base: (0.0, 80.0)\n- target: (135.65, -1.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=90\n- joint 3: length=70\n- joint 4: length=70\n- joint 5: 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-308.json b/lamp/data/lamp-308.json new file mode 100644 index 0000000000000000000000000000000000000000..bec2c10d8c3cd3794846dd8093cb209a69801ba3 --- /dev/null +++ b/lamp/data/lamp-308.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-308", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 239.33, + "y": -28.64 + }, + "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": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": -80, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": -40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -50 + }, + { + "joint": 2, + "angle": 60 + }, + { + "joint": 3, + "angle": -40 + } + ] + }, + "legacy_answer": [ + -50, + 60, + -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-308\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (239.33, -28.64)\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=70\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=stair, pattern=warning_stripes\n part 1: x=200, y=-80, width=80, height=40\n part 2: x=240, 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-309.json b/lamp/data/lamp-309.json new file mode 100644 index 0000000000000000000000000000000000000000..442367914edc5a84493b4f1497b235658b7a728f --- /dev/null +++ b/lamp/data/lamp-309.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-309", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 156.5, + "y": 79.26 + }, + "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": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -80 + }, + { + "joint": 2, + "angle": 55 + }, + { + "joint": 3, + "angle": 45 + } + ] + }, + "legacy_answer": [ + -80, + 55, + 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-309\n- segment_count: 3\n- arm_base: (0.0, 0.0)\n- target: (156.5, 79.26)\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=110\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-310.json b/lamp/data/lamp-310.json new file mode 100644 index 0000000000000000000000000000000000000000..c8f2ce331a3d15abcbfd958e614e1659028f27db --- /dev/null +++ b/lamp/data/lamp-310.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-310", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 69.24, + "y": 37.46 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "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": -65 + }, + { + "joint": 2, + "angle": -10 + }, + { + "joint": 3, + "angle": 95 + } + ] + }, + "legacy_answer": [ + -65, + -10, + 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-310\n- segment_count: 3\n- arm_base: (0.0, 0.0)\n- target: (69.24, 37.46)\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=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=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-311.json b/lamp/data/lamp-311.json new file mode 100644 index 0000000000000000000000000000000000000000..895076d96e62c37e797cff7836a1865b1b1d91be --- /dev/null +++ b/lamp/data/lamp-311.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-311", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": -99.23, + "y": 115.32 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 120, + "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": 50 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -60 + }, + { + "joint": 2, + "angle": -180 + }, + { + "joint": 3, + "angle": 160 + }, + { + "joint": 4, + "angle": 175 + } + ] + }, + "legacy_answer": [ + -60, + -180, + 160, + 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-311\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (-99.23, 115.32)\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- joint 4: length=90\n- obstacles:\n- wall_1: 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- 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-312.json b/lamp/data/lamp-312.json new file mode 100644 index 0000000000000000000000000000000000000000..167a37200ba084eb314c99173d19b9f502b6931f --- /dev/null +++ b/lamp/data/lamp-312.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-312", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 97.08, + "y": 138.34 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 10, + 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-312\n- segment_count: 2\n- arm_base: (40.0, 40.0)\n- target: (97.08, 138.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=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\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-313.json b/lamp/data/lamp-313.json new file mode 100644 index 0000000000000000000000000000000000000000..fbc3bcd85086e25d73a1d4b66d5f8b9373d5630a --- /dev/null +++ b/lamp/data/lamp-313.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-313", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 258.39, + "y": 108.44 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "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": 15 + }, + { + "joint": 2, + "angle": -50 + }, + { + "joint": 3, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 15, + -50, + 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-313\n- segment_count: 3\n- arm_base: (80.0, 120.0)\n- target: (258.39, 108.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- joint 3: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=160, width=120, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=160, 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-314.json b/lamp/data/lamp-314.json new file mode 100644 index 0000000000000000000000000000000000000000..f203fff12a7c7d09751865665294f0be5eaeecd7 --- /dev/null +++ b/lamp/data/lamp-314.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-314", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": -40 + }, + "target": { + "x": 36.03, + "y": 1.81 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "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": -75 + }, + { + "joint": 2, + "angle": 55 + } + ] + }, + "legacy_answer": [ + -75, + 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-314\n- segment_count: 2\n- arm_base: (-40.0, -40.0)\n- target: (36.03, 1.81)\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=0, width=80, height=40\n part 2: x=-80, y=0, 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-315.json b/lamp/data/lamp-315.json new file mode 100644 index 0000000000000000000000000000000000000000..098dc16fde3f47032fdf9db19ef55295422c2583 --- /dev/null +++ b/lamp/data/lamp-315.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-315", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 132.22, + "y": 27.84 + }, + "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": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": -15 + }, + { + "joint": 3, + "angle": 165 + }, + { + "joint": 4, + "angle": -110 + } + ] + }, + "legacy_answer": [ + 0, + -15, + 165, + -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-315\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (132.22, 27.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=110\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=-40, width=120, height=40\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-316.json b/lamp/data/lamp-316.json new file mode 100644 index 0000000000000000000000000000000000000000..cdc2e4a4e575c9b10dee7de81ca3d2d5ebdce006 --- /dev/null +++ b/lamp/data/lamp-316.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-316", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 170.36, + "y": 124.59 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "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": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -5 + }, + { + "joint": 2, + "angle": 80 + }, + { + "joint": 3, + "angle": -60 + } + ] + }, + "legacy_answer": [ + -5, + 80, + -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-316\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (170.36, 124.59)\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- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=80, y=0, 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-317.json b/lamp/data/lamp-317.json new file mode 100644 index 0000000000000000000000000000000000000000..1ebd6b23ff9647de72963166df6676da37404d0b --- /dev/null +++ b/lamp/data/lamp-317.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-317", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 148.67, + "y": -45.75 + }, + "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": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 0 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -80 + } + ] + }, + "legacy_answer": [ + 110, + 0, + 20, + -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-317\n- segment_count: 4\n- arm_base: (40.0, -40.0)\n- target: (148.67, -45.75)\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=90\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-318.json b/lamp/data/lamp-318.json new file mode 100644 index 0000000000000000000000000000000000000000..ee84f2c07bdb882c011b2d97557254561bf8a78c --- /dev/null +++ b/lamp/data/lamp-318.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-318", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 102.3, + "y": -29.07 + }, + "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": 110 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -45 + }, + { + "joint": 2, + "angle": 55 + }, + { + "joint": 3, + "angle": -100 + } + ] + }, + "legacy_answer": [ + -45, + 55, + -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-318\n- segment_count: 3\n- arm_base: (0.0, 80.0)\n- target: (102.3, -29.07)\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- 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-319.json b/lamp/data/lamp-319.json new file mode 100644 index 0000000000000000000000000000000000000000..e6be0f44a2519e74f2e2dc0ac03ccbc407d8a8e4 --- /dev/null +++ b/lamp/data/lamp-319.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-319", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 188.13, + "y": 11.38 + }, + "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": 160, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -150 + }, + { + "joint": 2, + "angle": -45 + }, + { + "joint": 3, + "angle": 15 + }, + { + "joint": 4, + "angle": -135 + }, + { + "joint": 5, + "angle": 60 + } + ] + }, + "legacy_answer": [ + -150, + -45, + 15, + -135, + 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-319\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (188.13, 11.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=90\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- wall_2: type=stair, pattern=warning_stripes\n part 1: x=160, y=80, width=80, height=40\n part 2: x=200, 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-320.json b/lamp/data/lamp-320.json new file mode 100644 index 0000000000000000000000000000000000000000..107ba701253159161f7f052a5993fdad00a02a29 --- /dev/null +++ b/lamp/data/lamp-320.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-320", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 278.9, + "y": 198.64 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 280, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 45, + 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-320\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (278.9, 198.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=110\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=120, y=160, width=80, height=80\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=240, y=120, width=80, height=40\n part 2: x=280, 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-321.json b/lamp/data/lamp-321.json new file mode 100644 index 0000000000000000000000000000000000000000..4280d52219a40a2f78fd2103ae3853b7eeb9b642 --- /dev/null +++ b/lamp/data/lamp-321.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-321", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 125.27, + "y": 3.39 + }, + "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": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 130 + }, + { + "joint": 2, + "angle": -75 + }, + { + "joint": 3, + "angle": -60 + } + ] + }, + "legacy_answer": [ + 130, + -75, + -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-321\n- segment_count: 3\n- arm_base: (120.0, 80.0)\n- target: (125.27, 3.39)\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=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=120, y=120, width=80, height=40\n part 2: x=120, 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-322.json b/lamp/data/lamp-322.json new file mode 100644 index 0000000000000000000000000000000000000000..8ecde93dcdc318c7b02307d92930e115b4df8463 --- /dev/null +++ b/lamp/data/lamp-322.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-322", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 64.56, + "y": -10.02 + }, + "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": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -130 + }, + { + "joint": 2, + "angle": -65 + }, + { + "joint": 3, + "angle": 165 + }, + { + "joint": 4, + "angle": 0 + } + ] + }, + "legacy_answer": [ + -130, + -65, + 165, + 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-322\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (64.56, -10.02)\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=90\n- joint 4: 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-323.json b/lamp/data/lamp-323.json new file mode 100644 index 0000000000000000000000000000000000000000..3cc4f6f6d084d0b30cbb4d59a29829fa50f1730e --- /dev/null +++ b/lamp/data/lamp-323.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-323", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": -56.78, + "y": 65.43 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "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": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": -135 + }, + { + "joint": 3, + "angle": -120 + }, + { + "joint": 4, + "angle": 50 + }, + { + "joint": 5, + "angle": 135 + } + ] + }, + "legacy_answer": [ + 110, + -135, + -120, + 50, + 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-323\n- segment_count: 5\n- arm_base: (80.0, 0.0)\n- target: (-56.78, 65.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=90\n- joint 3: length=50\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=80, width=40, height=120\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-324.json b/lamp/data/lamp-324.json new file mode 100644 index 0000000000000000000000000000000000000000..e30bb330dbe747cc6e2d94e6e08dc8c0ef1831c4 --- /dev/null +++ b/lamp/data/lamp-324.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-324", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 170.22, + "y": 95.82 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -10 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": -55 + } + ] + }, + "legacy_answer": [ + -10, + 65, + -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-324\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (170.22, 95.82)\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- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=160, width=120, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=80, 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-325.json b/lamp/data/lamp-325.json new file mode 100644 index 0000000000000000000000000000000000000000..a6bc4afa2616263808859d0949e37c13325090a3 --- /dev/null +++ b/lamp/data/lamp-325.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-325", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 146.97, + "y": 213.72 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 65 + }, + { + "joint": 2, + "angle": 10 + } + ] + }, + "legacy_answer": [ + 65, + 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-325\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (146.97, 213.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=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\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-326.json b/lamp/data/lamp-326.json new file mode 100644 index 0000000000000000000000000000000000000000..cda4c7e54547624497936d4254e60777d0faaf1d --- /dev/null +++ b/lamp/data/lamp-326.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-326", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 53.15, + "y": -0.01 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 40, + "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": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -115 + }, + { + "joint": 2, + "angle": 55 + }, + { + "joint": 3, + "angle": 125 + }, + { + "joint": 4, + "angle": 150 + } + ] + }, + "legacy_answer": [ + -115, + 55, + 125, + 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-326\n- segment_count: 4\n- arm_base: (120.0, -40.0)\n- target: (53.15, -0.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=90\n- joint 3: length=50\n- joint 4: length=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=0, width=80, height=40\n part 2: x=120, y=40, 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-327.json b/lamp/data/lamp-327.json new file mode 100644 index 0000000000000000000000000000000000000000..2c9060416dd624e58e8612f9f373d9780ba17d39 --- /dev/null +++ b/lamp/data/lamp-327.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-327", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 195.36, + "y": 134.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": "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": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -115 + }, + { + "joint": 2, + "angle": 0 + }, + { + "joint": 3, + "angle": 65 + } + ] + }, + "legacy_answer": [ + -115, + 0, + 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-327\n- segment_count: 3\n- arm_base: (80.0, 80.0)\n- target: (195.36, 134.38)\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=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=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-328.json b/lamp/data/lamp-328.json new file mode 100644 index 0000000000000000000000000000000000000000..7f213a0732e03045b9bca9ff8f4462e1d068aa37 --- /dev/null +++ b/lamp/data/lamp-328.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-328", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 94.73, + "y": 65.89 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "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": -85 + }, + { + "joint": 2, + "angle": 10 + } + ] + }, + "legacy_answer": [ + -85, + 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-328\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (94.73, 65.89)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=0, width=120, height=40\n- wall_2: 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-329.json b/lamp/data/lamp-329.json new file mode 100644 index 0000000000000000000000000000000000000000..6157ad3c042725f85f633ea90ed81344adce05a9 --- /dev/null +++ b/lamp/data/lamp-329.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-329", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 158.3, + "y": -2.4 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -35, + -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-329\n- segment_count: 2\n- arm_base: (0.0, 80.0)\n- target: (158.3, -2.4)\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- obstacles:\n- wall_1: 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- 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-330.json b/lamp/data/lamp-330.json new file mode 100644 index 0000000000000000000000000000000000000000..0790bae04dc7f5f1ac87e6c28e24d3423f3fe7f0 --- /dev/null +++ b/lamp/data/lamp-330.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-330", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": 37.43, + "y": -113.1 + }, + "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": -40, + "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": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -65 + }, + { + "joint": 2, + "angle": -85 + } + ] + }, + "legacy_answer": [ + -65, + -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-330\n- segment_count: 2\n- arm_base: (0.0, 40.0)\n- target: (37.43, -113.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=90\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=-40, 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-331.json b/lamp/data/lamp-331.json new file mode 100644 index 0000000000000000000000000000000000000000..558e1ab472f208e1fcb1d16e9414f7e142dddcce --- /dev/null +++ b/lamp/data/lamp-331.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-331", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 30.7, + "y": 206.13 + }, + "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": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 35 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": -115 + }, + { + "joint": 4, + "angle": 125 + } + ] + }, + "legacy_answer": [ + 35, + 5, + -115, + 125 + ], + "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-331\n- segment_count: 4\n- arm_base: (-40.0, 120.0)\n- target: (30.7, 206.13)\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=90\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-332.json b/lamp/data/lamp-332.json new file mode 100644 index 0000000000000000000000000000000000000000..25318d6696d710bb62e6b1f6e9502ef4eca3b60f --- /dev/null +++ b/lamp/data/lamp-332.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-332", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 157.36, + "y": 90.2 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "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": 80 + } + ] + }, + "legacy_answer": [ + 55, + 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-332\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (157.36, 90.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=50\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=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-333.json b/lamp/data/lamp-333.json new file mode 100644 index 0000000000000000000000000000000000000000..c2de88a57565c38dc5839c43864fbc25534b1c8b --- /dev/null +++ b/lamp/data/lamp-333.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-333", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": -6.39, + "y": 257.04 + }, + "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": 40, + "y": 200, + "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": 105 + }, + { + "joint": 2, + "angle": 125 + } + ] + }, + "legacy_answer": [ + 105, + 125 + ], + "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-333\n- segment_count: 2\n- arm_base: (80.0, 80.0)\n- target: (-6.39, 257.04)\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- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=200, 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-334.json b/lamp/data/lamp-334.json new file mode 100644 index 0000000000000000000000000000000000000000..3d41cfd7017f7eb94071e42a913cc53e617c418f --- /dev/null +++ b/lamp/data/lamp-334.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-334", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 227.73, + "y": 134.3 + }, + "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": 120, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": 65 + }, + { + "joint": 4, + "angle": 75 + }, + { + "joint": 5, + "angle": -75 + } + ] + }, + "legacy_answer": [ + -15, + -165, + 65, + 75, + -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-334\n- segment_count: 5\n- arm_base: (120.0, 80.0)\n- target: (227.73, 134.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=70\n- joint 3: length=90\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=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=120, y=160, width=80, height=40\n part 2: x=160, 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-335.json b/lamp/data/lamp-335.json new file mode 100644 index 0000000000000000000000000000000000000000..9fcf007c3ed964974fab5aced300f904c83e9576 --- /dev/null +++ b/lamp/data/lamp-335.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-335", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 156.67, + "y": 85.03 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 80 + } + ] + }, + { + "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": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "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-335\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (156.67, 85.03)\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=80, y=0, width=80, height=80\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-336.json b/lamp/data/lamp-336.json new file mode 100644 index 0000000000000000000000000000000000000000..0434dcfe03e3fa28e9bcefff750beac1ba0d452f --- /dev/null +++ b/lamp/data/lamp-336.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-336", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 81.31, + "y": 196.49 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 200, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": -50 + }, + { + "joint": 3, + "angle": 85 + }, + { + "joint": 4, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 60, + -50, + 85, + 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-336\n- segment_count: 4\n- arm_base: (-40.0, 120.0)\n- target: (81.31, 196.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=50\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=0, y=200, width=80, height=40\n part 2: x=0, y=200, 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-337.json b/lamp/data/lamp-337.json new file mode 100644 index 0000000000000000000000000000000000000000..da921f03198d2f3b0eaa03bde828fd2f75337eac --- /dev/null +++ b/lamp/data/lamp-337.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-337", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 15.49, + "y": -26.7 + }, + "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": 80, + "y": -80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": -40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -175 + }, + { + "joint": 2, + "angle": -70 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -125 + }, + { + "joint": 5, + "angle": 165 + } + ] + }, + "legacy_answer": [ + -175, + -70, + 20, + -125, + 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-337\n- segment_count: 5\n- arm_base: (40.0, 80.0)\n- target: (15.49, -26.7)\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=90\n- joint 4: length=50\n- joint 5: length=50\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=80, y=-80, width=80, height=40\n part 2: x=120, 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-338.json b/lamp/data/lamp-338.json new file mode 100644 index 0000000000000000000000000000000000000000..2d9a066ef3616b787b67efe7485a2c56bbb556c7 --- /dev/null +++ b/lamp/data/lamp-338.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-338", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": 26.72, + "y": 130.65 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": -170 + }, + { + "joint": 4, + "angle": 105 + }, + { + "joint": 5, + "angle": -15 + } + ] + }, + "legacy_answer": [ + -40, + 95, + -170, + 105, + -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-338\n- segment_count: 5\n- arm_base: (0.0, 40.0)\n- target: (26.72, 130.65)\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- 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=120, width=80, height=40\n part 2: x=80, y=160, width=80, height=40\n- wall_2: 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-339.json b/lamp/data/lamp-339.json new file mode 100644 index 0000000000000000000000000000000000000000..56487f1a58e5d4ecb0cfd3db05dce42dd762bbdf --- /dev/null +++ b/lamp/data/lamp-339.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-339", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 176.74, + "y": -27.65 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -5 + } + ] + }, + "legacy_answer": [ + -15, + -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-339\n- segment_count: 2\n- arm_base: (40.0, 0.0)\n- target: (176.74, -27.65)\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=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-340.json b/lamp/data/lamp-340.json new file mode 100644 index 0000000000000000000000000000000000000000..baf9be99490542a9e6eca0f2439a5fa0a67ea5bb --- /dev/null +++ b/lamp/data/lamp-340.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-340", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 207.28, + "y": -10.25 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -10 + }, + { + "joint": 2, + "angle": -65 + } + ] + }, + "legacy_answer": [ + -10, + -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-340\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (207.28, -10.25)\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=40, y=0, width=120, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=120, 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-341.json b/lamp/data/lamp-341.json new file mode 100644 index 0000000000000000000000000000000000000000..197446e45f4ffed387f4c7d7474bfed30f458db3 --- /dev/null +++ b/lamp/data/lamp-341.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-341", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 120 + }, + "target": { + "x": 62.27, + "y": -17.31 + }, + "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": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "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": 100 + }, + { + "joint": 2, + "angle": -85 + }, + { + "joint": 3, + "angle": -50 + }, + { + "joint": 4, + "angle": -65 + }, + { + "joint": 5, + "angle": -65 + } + ] + }, + "legacy_answer": [ + 100, + -85, + -50, + -65, + -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-341\n- segment_count: 5\n- arm_base: (-40.0, 120.0)\n- target: (62.27, -17.31)\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=50\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=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-342.json b/lamp/data/lamp-342.json new file mode 100644 index 0000000000000000000000000000000000000000..027104754fe74a154f2140a05797dfd46b7a7705 --- /dev/null +++ b/lamp/data/lamp-342.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-342", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 80.89, + "y": 47.79 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "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": 15 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": 105 + }, + { + "joint": 4, + "angle": -115 + }, + { + "joint": 5, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 15, + 15, + 105, + -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-342\n- segment_count: 5\n- arm_base: (-40.0, 40.0)\n- target: (80.89, 47.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=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=-80, width=80, height=80\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-343.json b/lamp/data/lamp-343.json new file mode 100644 index 0000000000000000000000000000000000000000..fdfbb31cd2da681f0e5ce0202f0de34bdcb91dd6 --- /dev/null +++ b/lamp/data/lamp-343.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-343", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 83.88, + "y": 267.52 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 240, + "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": 45 + }, + { + "joint": 2, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 45, + 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-343\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (83.88, 267.52)\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=240, 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-344.json b/lamp/data/lamp-344.json new file mode 100644 index 0000000000000000000000000000000000000000..cca972b2a32eed62ee16e26d858c35c8837e0ec5 --- /dev/null +++ b/lamp/data/lamp-344.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-344", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 247.62, + "y": 132.19 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -70 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 15 + } + ] + }, + "legacy_answer": [ + -70, + 40, + 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-344\n- segment_count: 3\n- arm_base: (40.0, 80.0)\n- target: (247.62, 132.19)\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- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=40\n part 2: x=160, 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-345.json b/lamp/data/lamp-345.json new file mode 100644 index 0000000000000000000000000000000000000000..7885cb8801ff960c940d592a2a2608f49d18ac99 --- /dev/null +++ b/lamp/data/lamp-345.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-345", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 77.87, + "y": 20.42 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "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": -50 + }, + { + "joint": 2, + "angle": -80 + }, + { + "joint": 3, + "angle": 130 + } + ] + }, + "legacy_answer": [ + -50, + -80, + 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-345\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (77.87, 20.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=50\n- obstacles:\n- wall_1: 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- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-346.json b/lamp/data/lamp-346.json new file mode 100644 index 0000000000000000000000000000000000000000..628a096159571e66473570c3bb3de26619134810 --- /dev/null +++ b/lamp/data/lamp-346.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-346", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": -40 + }, + "target": { + "x": 164.81, + "y": 68.35 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "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": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": 65 + }, + { + "joint": 4, + "angle": 125 + } + ] + }, + "legacy_answer": [ + -35, + 5, + 65, + 125 + ], + "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-346\n- segment_count: 4\n- arm_base: (0.0, -40.0)\n- target: (164.81, 68.35)\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- joint 4: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=0, 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-347.json b/lamp/data/lamp-347.json new file mode 100644 index 0000000000000000000000000000000000000000..162b78dfa88dd686e7c6a010ea3f2b3f68f9dbf7 --- /dev/null +++ b/lamp/data/lamp-347.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-347", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": -43.01, + "y": 238.7 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "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": 70 + }, + { + "joint": 2, + "angle": 100 + }, + { + "joint": 3, + "angle": 90 + }, + { + "joint": 4, + "angle": -120 + } + ] + }, + "legacy_answer": [ + 70, + 100, + 90, + -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-347\n- segment_count: 4\n- arm_base: (-40.0, 0.0)\n- target: (-43.01, 238.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- joint 3: length=90\n- joint 4: 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_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-348.json b/lamp/data/lamp-348.json new file mode 100644 index 0000000000000000000000000000000000000000..35f0e50edeac5c6777dd7cc5e0bec99ab3fadc67 --- /dev/null +++ b/lamp/data/lamp-348.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-348", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -65.11, + "y": 170.84 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 240, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 115 + }, + { + "joint": 2, + "angle": 45 + }, + { + "joint": 3, + "angle": -165 + } + ] + }, + "legacy_answer": [ + 115, + 45, + -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-348\n- segment_count: 3\n- arm_base: (-40.0, 80.0)\n- target: (-65.11, 170.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=90\n- joint 3: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-80, y=200, width=80, height=40\n part 2: x=-40, y=240, width=80, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-349.json b/lamp/data/lamp-349.json new file mode 100644 index 0000000000000000000000000000000000000000..a7bcbe42b92e04f9365eb7c579096beb54875f0a --- /dev/null +++ b/lamp/data/lamp-349.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-349", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 121.98, + "y": 93.56 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -85 + }, + { + "joint": 2, + "angle": 70 + } + ] + }, + "legacy_answer": [ + -85, + 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-349\n- segment_count: 2\n- arm_base: (80.0, 40.0)\n- target: (121.98, 93.56)\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=120, width=80, height=40\n part 2: x=80, y=120, width=40, height=120\n- wall_2: 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-350.json b/lamp/data/lamp-350.json new file mode 100644 index 0000000000000000000000000000000000000000..dcea37d5a1e8a07c5cbbf2e6634d5479a6f3a388 --- /dev/null +++ b/lamp/data/lamp-350.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-350", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": 72.78, + "y": 17.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "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": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": -60 + } + ] + }, + "legacy_answer": [ + 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-350\n- segment_count: 2\n- arm_base: (-40.0, 0.0)\n- target: (72.78, 17.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=-80, 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-351.json b/lamp/data/lamp-351.json new file mode 100644 index 0000000000000000000000000000000000000000..5a1612c651c4129642e2ef59b443d828c3ce1457 --- /dev/null +++ b/lamp/data/lamp-351.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-351", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 262.89, + "y": -53.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "width": 80, + "height": 80 + } + ] + } + ], + "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": -15 + }, + { + "joint": 2, + "angle": -20 + }, + { + "joint": 3, + "angle": -50 + } + ] + }, + "legacy_answer": [ + -15, + -20, + -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-351\n- segment_count: 3\n- arm_base: (40.0, 80.0)\n- target: (262.89, -53.16)\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=bar_vertical, pattern=warning_stripes\n part 1: x=120, y=-80, width=40, height=120\n- wall_2: 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-352.json b/lamp/data/lamp-352.json new file mode 100644 index 0000000000000000000000000000000000000000..46b3da71d3fff18efa4b412c0c74a49c9f35e24f --- /dev/null +++ b/lamp/data/lamp-352.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-352", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -11.98, + "y": 49.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -130 + }, + { + "joint": 2, + "angle": -160 + } + ] + }, + "legacy_answer": [ + -130, + -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-352\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (-11.98, 49.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=50\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: 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-353.json b/lamp/data/lamp-353.json new file mode 100644 index 0000000000000000000000000000000000000000..c1cbd645fb3e36679511a9a4019070635ba06e99 --- /dev/null +++ b/lamp/data/lamp-353.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-353", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 63.36, + "y": -37.66 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 155 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -60 + }, + { + "joint": 5, + "angle": -155 + } + ] + }, + "legacy_answer": [ + 155, + -165, + 20, + -60, + -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-353\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (63.36, -37.66)\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- joint 4: length=110\n- joint 5: length=50\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_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-354.json b/lamp/data/lamp-354.json new file mode 100644 index 0000000000000000000000000000000000000000..ca66dc5240da5d2c78a4758aad52b6d827763528 --- /dev/null +++ b/lamp/data/lamp-354.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-354", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 290.62, + "y": 318.55 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 55 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 55, + 65, + 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-354\n- segment_count: 3\n- arm_base: (120.0, 120.0)\n- target: (290.62, 318.55)\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- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=240, y=160, width=80, height=40\n part 2: x=240, 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-355.json b/lamp/data/lamp-355.json new file mode 100644 index 0000000000000000000000000000000000000000..0d305ddee5a381e0c90b11b50d1d83c9cd73c4e0 --- /dev/null +++ b/lamp/data/lamp-355.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-355", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 0 + }, + "target": { + "x": -45.27, + "y": 196.96 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 80 + } + ] + }, + { + "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": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 80 + }, + { + "joint": 2, + "angle": 80 + } + ] + }, + "legacy_answer": [ + 80, + 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-355\n- segment_count: 2\n- arm_base: (-80.0, 0.0)\n- target: (-45.27, 196.96)\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=block, pattern=warning_stripes\n part 1: x=-40, y=80, width=80, height=80\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-356.json b/lamp/data/lamp-356.json new file mode 100644 index 0000000000000000000000000000000000000000..fc9332df5212874d21f15df76a845da87f7e6e6f --- /dev/null +++ b/lamp/data/lamp-356.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-356", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": -115.56, + "y": 178.41 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "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": 135 + }, + { + "joint": 2, + "angle": -135 + }, + { + "joint": 3, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 135, + -135, + 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-356\n- segment_count: 3\n- arm_base: (40.0, 80.0)\n- target: (-115.56, 178.41)\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=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=block, pattern=warning_stripes\n part 1: x=-80, 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-357.json b/lamp/data/lamp-357.json new file mode 100644 index 0000000000000000000000000000000000000000..9bad281671b4febf8584f7ec41ee522960f5e3d0 --- /dev/null +++ b/lamp/data/lamp-357.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-357", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -35.6, + "y": 138.52 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "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": 100 + }, + { + "joint": 2, + "angle": 155 + } + ] + }, + "legacy_answer": [ + 100, + 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-357\n- segment_count: 2\n- arm_base: (40.0, 40.0)\n- target: (-35.6, 138.52)\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=-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-358.json b/lamp/data/lamp-358.json new file mode 100644 index 0000000000000000000000000000000000000000..3677e1ec9c81df13bcc093da12d18456ab872935 --- /dev/null +++ b/lamp/data/lamp-358.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-358", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": 0.27, + "y": -112.21 + }, + "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": -80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -155 + }, + { + "joint": 3, + "angle": 160 + } + ] + }, + "legacy_answer": [ + -15, + -155, + 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-358\n- segment_count: 3\n- arm_base: (80.0, -80.0)\n- target: (0.27, -112.21)\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=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=-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-359.json b/lamp/data/lamp-359.json new file mode 100644 index 0000000000000000000000000000000000000000..88aeeb45f281b405b5663f9ca830968357f70f28 --- /dev/null +++ b/lamp/data/lamp-359.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-359", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 304.2, + "y": 49.75 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "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": -15 + }, + { + "joint": 3, + "angle": 45 + }, + { + "joint": 4, + "angle": 20 + }, + { + "joint": 5, + "angle": 25 + } + ] + }, + "legacy_answer": [ + -65, + -15, + 45, + 20, + 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-359\n- segment_count: 5\n- arm_base: (0.0, 0.0)\n- target: (304.2, 49.75)\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=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=240, 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-360.json b/lamp/data/lamp-360.json new file mode 100644 index 0000000000000000000000000000000000000000..c79ed00883e93d1d1256417c0e37c90c243ad16e --- /dev/null +++ b/lamp/data/lamp-360.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-360", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 82.72, + "y": 13.61 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 140 + }, + { + "joint": 2, + "angle": -20 + } + ] + }, + "legacy_answer": [ + 140, + -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-360\n- segment_count: 2\n- arm_base: (120.0, -40.0)\n- target: (82.72, 13.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=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=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-361.json b/lamp/data/lamp-361.json new file mode 100644 index 0000000000000000000000000000000000000000..69a1e2cc56377f63d3089f9e9094fa8699420ed2 --- /dev/null +++ b/lamp/data/lamp-361.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-361", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 180.69, + "y": 158.37 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 175 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": 90 + }, + { + "joint": 4, + "angle": -20 + } + ] + }, + "legacy_answer": [ + 175, + 20, + 90, + -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-361\n- segment_count: 4\n- arm_base: (120.0, 40.0)\n- target: (180.69, 158.37)\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- joint 4: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, 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-362.json b/lamp/data/lamp-362.json new file mode 100644 index 0000000000000000000000000000000000000000..45fe98b8ece176e8d88390b2664a4d5064adeb98 --- /dev/null +++ b/lamp/data/lamp-362.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-362", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 2.45, + "y": -41.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -80, + "width": 120, + "height": 40 + } + ] + }, + { + "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": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": 170 + }, + { + "joint": 3, + "angle": -130 + } + ] + }, + "legacy_answer": [ + 10, + 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-362\n- segment_count: 3\n- arm_base: (80.0, 0.0)\n- target: (2.45, -41.16)\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- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=-80, width=120, height=40\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-363.json b/lamp/data/lamp-363.json new file mode 100644 index 0000000000000000000000000000000000000000..7e3aa99ecab8ad3300793727ecad441984a5f4ee --- /dev/null +++ b/lamp/data/lamp-363.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-363", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 45.03, + "y": -63.59 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -70 + }, + { + "joint": 2, + "angle": -160 + }, + { + "joint": 3, + "angle": -10 + }, + { + "joint": 4, + "angle": -80 + } + ] + }, + "legacy_answer": [ + -70, + -160, + -10, + -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-363\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (45.03, -63.59)\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- joint 4: length=50\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=block, pattern=warning_stripes\n part 1: x=80, 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-364.json b/lamp/data/lamp-364.json new file mode 100644 index 0000000000000000000000000000000000000000..2e9c325249e65f2128146ddcb2937b7bbe93d585 --- /dev/null +++ b/lamp/data/lamp-364.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-364", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": -63.2, + "y": 190.79 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 170 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": 135 + }, + { + "joint": 4, + "angle": 0 + } + ] + }, + "legacy_answer": [ + 170, + 150, + 135, + 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-364\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (-63.2, 190.79)\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=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=0, y=120, width=80, height=80\n- wall_2: 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-365.json b/lamp/data/lamp-365.json new file mode 100644 index 0000000000000000000000000000000000000000..e4097a9969939762f6b441e6c781a2904ea7940e --- /dev/null +++ b/lamp/data/lamp-365.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-365", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 335.02, + "y": -24.51 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 280, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -50 + }, + { + "joint": 2, + "angle": -35 + }, + { + "joint": 3, + "angle": -30 + }, + { + "joint": 4, + "angle": 40 + }, + { + "joint": 5, + "angle": 180 + } + ] + }, + "legacy_answer": [ + -50, + -35, + -30, + 40, + 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-365\n- segment_count: 5\n- arm_base: (120.0, 120.0)\n- target: (335.02, -24.51)\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=110\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=280, y=0, width=120, height=40\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=200, 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-366.json b/lamp/data/lamp-366.json new file mode 100644 index 0000000000000000000000000000000000000000..63954816382ab0be7eb4eedd1faffc355f14433e --- /dev/null +++ b/lamp/data/lamp-366.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-366", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 275.02, + "y": 260.98 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 200, + "width": 40, + "height": 120 + } + ] + } + ], + "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": 55 + }, + { + "joint": 2, + "angle": -5 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": 135 + } + ] + }, + "legacy_answer": [ + 55, + -5, + 70, + 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-366\n- segment_count: 4\n- arm_base: (120.0, 40.0)\n- target: (275.02, 260.98)\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=120, y=160, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=160, y=200, width=80, height=40\n part 2: 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-367.json b/lamp/data/lamp-367.json new file mode 100644 index 0000000000000000000000000000000000000000..db845e11210523f11415c2914bfbdb60460c8879 --- /dev/null +++ b/lamp/data/lamp-367.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-367", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 200.97, + "y": 111.34 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -110 + }, + { + "joint": 2, + "angle": 145 + }, + { + "joint": 3, + "angle": 15 + }, + { + "joint": 4, + "angle": 20 + } + ] + }, + "legacy_answer": [ + -110, + 145, + 15, + 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-367\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (200.97, 111.34)\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=90\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=160, width=120, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=120, 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-368.json b/lamp/data/lamp-368.json new file mode 100644 index 0000000000000000000000000000000000000000..24250245a993ac001d98251dbecd5b87e7398960 --- /dev/null +++ b/lamp/data/lamp-368.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-368", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 80 + }, + "target": { + "x": 77.64, + "y": 140.97 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 120, + "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": 50 + } + ] + }, + "legacy_answer": [ + -15, + 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-368\n- segment_count: 2\n- arm_base: (-80.0, 80.0)\n- target: (77.64, 140.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- obstacles:\n- wall_1: 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-369.json b/lamp/data/lamp-369.json new file mode 100644 index 0000000000000000000000000000000000000000..3cebba6c7ae0af257f5cb5c9080cf3154d61887d --- /dev/null +++ b/lamp/data/lamp-369.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-369", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 145.15, + "y": 151.25 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 40 + }, + { + "joint": 2, + "angle": 105 + } + ] + }, + "legacy_answer": [ + 40, + 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-369\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (145.15, 151.25)\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=80, y=40, width=80, height=40\n part 2: x=80, 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-370.json b/lamp/data/lamp-370.json new file mode 100644 index 0000000000000000000000000000000000000000..6d1495ccbaa15cea46b5e05f6c1b60be907d398f --- /dev/null +++ b/lamp/data/lamp-370.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-370", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 104.35, + "y": -10.42 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "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": 75 + }, + { + "joint": 4, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -75, + 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-370\n- segment_count: 4\n- arm_base: (0.0, 0.0)\n- target: (104.35, -10.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=50\n- joint 3: length=50\n- joint 4: 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=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-371.json b/lamp/data/lamp-371.json new file mode 100644 index 0000000000000000000000000000000000000000..24825ec2a768d5b44e8048ad3508013b91948b31 --- /dev/null +++ b/lamp/data/lamp-371.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-371", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": -76.13, + "y": 96.16 + }, + "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": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 80 + }, + { + "joint": 2, + "angle": 165 + }, + { + "joint": 3, + "angle": -115 + }, + { + "joint": 4, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 80, + 165, + -115, + 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-371\n- segment_count: 4\n- arm_base: (-40.0, 40.0)\n- target: (-76.13, 96.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=90\n- joint 3: length=90\n- joint 4: 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=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-372.json b/lamp/data/lamp-372.json new file mode 100644 index 0000000000000000000000000000000000000000..21d5846659bfde5101f85a8b0917b5aa4a0ae2e7 --- /dev/null +++ b/lamp/data/lamp-372.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-372", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 25.82, + "y": -3.3 + }, + "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": 70 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -115 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": 55 + }, + { + "joint": 4, + "angle": -125 + } + ] + }, + "legacy_answer": [ + -115, + -165, + 55, + -125 + ], + "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-372\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (25.82, -3.3)\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=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-373.json b/lamp/data/lamp-373.json new file mode 100644 index 0000000000000000000000000000000000000000..15eece52d8feb83f09c03a2c850efa2f8a95cf54 --- /dev/null +++ b/lamp/data/lamp-373.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-373", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 104.56, + "y": 120.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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": 110 + }, + { + "joint": 3, + "angle": 25 + } + ] + }, + "legacy_answer": [ + -15, + 110, + 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-373\n- segment_count: 3\n- arm_base: (-40.0, 40.0)\n- target: (104.56, 120.52)\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=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=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-374.json b/lamp/data/lamp-374.json new file mode 100644 index 0000000000000000000000000000000000000000..702d8c3572e2f1f41ddc9dfdd3d64ff55c7698e3 --- /dev/null +++ b/lamp/data/lamp-374.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-374", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": -21.37, + "y": 93.72 + }, + "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": 0, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "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": 90 + }, + { + "joint": 2, + "angle": -110 + }, + { + "joint": 3, + "angle": 140 + } + ] + }, + "legacy_answer": [ + 90, + -110, + 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-374\n- segment_count: 3\n- arm_base: (80.0, 0.0)\n- target: (-21.37, 93.72)\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=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=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-375.json b/lamp/data/lamp-375.json new file mode 100644 index 0000000000000000000000000000000000000000..8f1e67052da10c2ca4948d3bed9b8e020ff115c6 --- /dev/null +++ b/lamp/data/lamp-375.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-375", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 241.48, + "y": 14.76 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -75 + }, + { + "joint": 2, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -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-375\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (241.48, 14.76)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=200, 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-376.json b/lamp/data/lamp-376.json new file mode 100644 index 0000000000000000000000000000000000000000..a4e916893bd3cba9afc498eb45e8c7b15069531b --- /dev/null +++ b/lamp/data/lamp-376.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-376", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 70.76, + "y": 61.36 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "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": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": -25 + } + ] + }, + "legacy_answer": [ + -170, + -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-376\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (70.76, 61.36)\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=40, y=0, width=80, height=40\n part 2: x=80, y=40, width=80, height=40\n- wall_2: 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-377.json b/lamp/data/lamp-377.json new file mode 100644 index 0000000000000000000000000000000000000000..86904e9c2b49da6258dfe3c2fefde6623ac033a3 --- /dev/null +++ b/lamp/data/lamp-377.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-377", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 6.6, + "y": -70.03 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -80, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "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": -145 + }, + { + "joint": 2, + "angle": -105 + } + ] + }, + "legacy_answer": [ + -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-377\n- segment_count: 2\n- arm_base: (120.0, 80.0)\n- target: (6.6, -70.03)\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=block, pattern=warning_stripes\n part 1: x=40, y=-80, width=80, height=80\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-378.json b/lamp/data/lamp-378.json new file mode 100644 index 0000000000000000000000000000000000000000..6b89c0dcbf9a14f064911335698b6d7e13fd94e7 --- /dev/null +++ b/lamp/data/lamp-378.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-378", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": -52.14, + "y": 22.77 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 80 + } + ] + }, + { + "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": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 90 + }, + { + "joint": 2, + "angle": -100 + }, + { + "joint": 3, + "angle": 175 + }, + { + "joint": 4, + "angle": -150 + } + ] + }, + "legacy_answer": [ + 90, + -100, + 175, + -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-378\n- segment_count: 4\n- arm_base: (80.0, 40.0)\n- target: (-52.14, 22.77)\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=50\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=-40, y=80, width=80, height=80\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-379.json b/lamp/data/lamp-379.json new file mode 100644 index 0000000000000000000000000000000000000000..a9bf7c335ab10ec2c34076b9799cac9b7e109ffb --- /dev/null +++ b/lamp/data/lamp-379.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-379", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 58.64, + "y": 132.72 + }, + "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": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 175 + }, + { + "joint": 3, + "angle": 75 + } + ] + }, + "legacy_answer": [ + 60, + 175, + 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-379\n- segment_count: 3\n- arm_base: (80.0, -40.0)\n- target: (58.64, 132.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=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=stair, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=40\n part 2: x=160, 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-380.json b/lamp/data/lamp-380.json new file mode 100644 index 0000000000000000000000000000000000000000..0e71d0f985a5a93479e063443c5671f5d1773524 --- /dev/null +++ b/lamp/data/lamp-380.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-380", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 143.69, + "y": -69.83 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 40, + "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": 20 + }, + { + "joint": 2, + "angle": -105 + } + ] + }, + "legacy_answer": [ + 20, + -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-380\n- segment_count: 2\n- arm_base: (120.0, 0.0)\n- target: (143.69, -69.83)\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=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-381.json b/lamp/data/lamp-381.json new file mode 100644 index 0000000000000000000000000000000000000000..6bacd4a729b477c20dde5ba405ce6cd64bbf73cc --- /dev/null +++ b/lamp/data/lamp-381.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-381", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 222.18, + "y": 21.13 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "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": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -25 + }, + { + "joint": 2, + "angle": -35 + }, + { + "joint": 3, + "angle": 180 + }, + { + "joint": 4, + "angle": 5 + } + ] + }, + "legacy_answer": [ + -25, + -35, + 180, + 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-381\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (222.18, 21.13)\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=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=40\n part 2: x=120, y=120, 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-382.json b/lamp/data/lamp-382.json new file mode 100644 index 0000000000000000000000000000000000000000..9e441323ec3338325d83f1613c2532fb7c2170db --- /dev/null +++ b/lamp/data/lamp-382.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-382", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 24.49, + "y": -106.81 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "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": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -70 + }, + { + "joint": 2, + "angle": 165 + }, + { + "joint": 3, + "angle": -120 + } + ] + }, + "legacy_answer": [ + -70, + 165, + -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-382\n- segment_count: 3\n- arm_base: (120.0, 0.0)\n- target: (24.49, -106.81)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=0, width=120, height=40\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-383.json b/lamp/data/lamp-383.json new file mode 100644 index 0000000000000000000000000000000000000000..82b512224e5a0d90651798050767b5f69b309f2e --- /dev/null +++ b/lamp/data/lamp-383.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-383", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": -12.94, + "y": 218.3 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "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": 105 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + 105, + 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-383\n- segment_count: 2\n- arm_base: (0.0, 80.0)\n- target: (-12.94, 218.3)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-384.json b/lamp/data/lamp-384.json new file mode 100644 index 0000000000000000000000000000000000000000..868dd06ec44a2f013e924942f9b2c5256a5e5fff --- /dev/null +++ b/lamp/data/lamp-384.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-384", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": -17.41, + "y": -51.52 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "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": 120 + }, + { + "joint": 2, + "angle": -155 + }, + { + "joint": 3, + "angle": -35 + }, + { + "joint": 4, + "angle": -150 + }, + { + "joint": 5, + "angle": 40 + } + ] + }, + "legacy_answer": [ + 120, + -155, + -35, + -150, + 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-384\n- segment_count: 5\n- arm_base: (80.0, -80.0)\n- target: (-17.41, -51.52)\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=90\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- 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-385.json b/lamp/data/lamp-385.json new file mode 100644 index 0000000000000000000000000000000000000000..d465ae5489e87952ac4584e186845d01ea657882 --- /dev/null +++ b/lamp/data/lamp-385.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-385", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 37.21, + "y": 225.64 + }, + "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": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 180 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": 55 + } + ] + }, + "legacy_answer": [ + 180, + 105, + 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-385\n- segment_count: 3\n- arm_base: (80.0, 120.0)\n- target: (37.21, 225.64)\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- 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-386.json b/lamp/data/lamp-386.json new file mode 100644 index 0000000000000000000000000000000000000000..1d94fc288ddaff3e9ce142499846d19b8a297c75 --- /dev/null +++ b/lamp/data/lamp-386.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-386", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 101.15, + "y": 227.62 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "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": -180 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": 85 + } + ] + }, + "legacy_answer": [ + -180, + 25, + 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-386\n- segment_count: 3\n- arm_base: (80.0, 80.0)\n- target: (101.15, 227.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=90\n- joint 3: length=110\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=l_corner, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=40\n part 2: x=120, 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-387.json b/lamp/data/lamp-387.json new file mode 100644 index 0000000000000000000000000000000000000000..28d9bce7a5f814676014accbfacd92c771c2e050 --- /dev/null +++ b/lamp/data/lamp-387.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-387", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": -16.03, + "y": 205.2 + }, + "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": 0, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": 60 + }, + { + "joint": 3, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 150, + 60, + 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-387\n- segment_count: 3\n- arm_base: (0.0, 0.0)\n- target: (-16.03, 205.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=70\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- wall_2: 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-388.json b/lamp/data/lamp-388.json new file mode 100644 index 0000000000000000000000000000000000000000..fc576c8a784f6f1dc7b753675a8c6401f1384c46 --- /dev/null +++ b/lamp/data/lamp-388.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-388", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 76.2, + "y": -21.34 + }, + "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_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": 70 + }, + { + "joint": 2, + "angle": -80 + } + ] + }, + "legacy_answer": [ + 70, + -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-388\n- segment_count: 2\n- arm_base: (40.0, 40.0)\n- target: (76.2, -21.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=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=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-389.json b/lamp/data/lamp-389.json new file mode 100644 index 0000000000000000000000000000000000000000..974fb5df0fbc29df8f1659e20903a53fd2d66508 --- /dev/null +++ b/lamp/data/lamp-389.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-389", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": -111.86, + "y": 11.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "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": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -155 + }, + { + "joint": 2, + "angle": -30 + }, + { + "joint": 3, + "angle": 145 + } + ] + }, + "legacy_answer": [ + -155, + -30, + 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-389\n- segment_count: 3\n- arm_base: (0.0, 40.0)\n- target: (-111.86, 11.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=90\n- joint 3: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, y=40, width=40, height=120\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-390.json b/lamp/data/lamp-390.json new file mode 100644 index 0000000000000000000000000000000000000000..6888145828313a6cbb22a835a47788a941a24b4d --- /dev/null +++ b/lamp/data/lamp-390.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-390", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 5.34, + "y": 18.4 + }, + "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": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -75 + }, + { + "joint": 2, + "angle": -75 + }, + { + "joint": 3, + "angle": -150 + }, + { + "joint": 4, + "angle": 100 + } + ] + }, + "legacy_answer": [ + -75, + -75, + -150, + 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-390\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (5.34, 18.4)\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=90\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-391.json b/lamp/data/lamp-391.json new file mode 100644 index 0000000000000000000000000000000000000000..26cce412a7b25f7adfcbcec5accd4d433a95ffba --- /dev/null +++ b/lamp/data/lamp-391.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-391", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 104.85, + "y": 213.21 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 80 + } + ] + }, + "legacy_answer": [ + 110, + 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-391\n- segment_count: 2\n- arm_base: (120.0, 40.0)\n- target: (104.85, 213.21)\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- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=40\n part 2: x=160, y=160, width=80, height=40\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-392.json b/lamp/data/lamp-392.json new file mode 100644 index 0000000000000000000000000000000000000000..a1af6f51b0940a19f39793f02370bd02f25795b3 --- /dev/null +++ b/lamp/data/lamp-392.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-392", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 297.26, + "y": -33.49 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 55 + }, + { + "joint": 2, + "angle": -65 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -80 + } + ] + }, + "legacy_answer": [ + 55, + -65, + 20, + -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-392\n- segment_count: 4\n- arm_base: (120.0, 40.0)\n- target: (297.26, -33.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=70\n- joint 3: length=110\n- joint 4: length=90\n- obstacles:\n- wall_1: 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-393.json b/lamp/data/lamp-393.json new file mode 100644 index 0000000000000000000000000000000000000000..d51fb18186c2b4b9722e3997f1317e5b1ee9f6cf --- /dev/null +++ b/lamp/data/lamp-393.json @@ -0,0 +1,94 @@ +{ + "id": "lamp-393", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": 90.37, + "y": 39.03 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 85 + } + ] + }, + "legacy_answer": [ + -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-393\n- segment_count: 2\n- arm_base: (0.0, 40.0)\n- target: (90.37, 39.03)\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=0, y=80, width=120, height=40\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-394.json b/lamp/data/lamp-394.json new file mode 100644 index 0000000000000000000000000000000000000000..6239cf2c7d29c53c7825485efa30a5285654de90 --- /dev/null +++ b/lamp/data/lamp-394.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-394", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 230, + "y": 58.44 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 160, + "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": 0 + }, + { + "joint": 2, + "angle": -160 + }, + { + "joint": 3, + "angle": -20 + } + ] + }, + "legacy_answer": [ + 0, + -160, + -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-394\n- segment_count: 3\n- arm_base: (120.0, 120.0)\n- target: (230.0, 58.44)\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=160, y=0, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=120, y=160, width=80, height=40\n part 2: x=120, 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-395.json b/lamp/data/lamp-395.json new file mode 100644 index 0000000000000000000000000000000000000000..369f22a0f19f9ff0126e887b125dd3a8637a589b --- /dev/null +++ b/lamp/data/lamp-395.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-395", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 142.67, + "y": -61.19 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 40 + }, + { + "joint": 2, + "angle": -80 + }, + { + "joint": 3, + "angle": 30 + }, + { + "joint": 4, + "angle": 180 + } + ] + }, + "legacy_answer": [ + 40, + -80, + 30, + 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-395\n- segment_count: 4\n- arm_base: (40.0, -40.0)\n- target: (142.67, -61.19)\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=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=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-396.json b/lamp/data/lamp-396.json new file mode 100644 index 0000000000000000000000000000000000000000..cdb3c32fb45924e90eb04025b08acec9c248ad73 --- /dev/null +++ b/lamp/data/lamp-396.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-396", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 59.22, + "y": 141.89 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 110 + }, + { + "joint": 3, + "angle": -120 + } + ] + }, + "legacy_answer": [ + 60, + 110, + -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-396\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (59.22, 141.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=70\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\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-397.json b/lamp/data/lamp-397.json new file mode 100644 index 0000000000000000000000000000000000000000..e62ed2d5b46a5a780600ea2b48f014593bf1a1ac --- /dev/null +++ b/lamp/data/lamp-397.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-397", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 9.23, + "y": 69.68 + }, + "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": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": 130 + } + ] + }, + "legacy_answer": [ + -160, + 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-397\n- segment_count: 2\n- arm_base: (120.0, 40.0)\n- target: (9.23, 69.68)\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=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-398.json b/lamp/data/lamp-398.json new file mode 100644 index 0000000000000000000000000000000000000000..ae702556662b97ee0803b25627d9a9a6c014de2a --- /dev/null +++ b/lamp/data/lamp-398.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-398", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 178.13, + "y": 131.9 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -5 + }, + { + "joint": 2, + "angle": 140 + }, + { + "joint": 3, + "angle": 35 + } + ] + }, + "legacy_answer": [ + -5, + 140, + 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-398\n- segment_count: 3\n- arm_base: (120.0, 40.0)\n- target: (178.13, 131.9)\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=70\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=bar_vertical, pattern=warning_stripes\n part 1: x=200, 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-399.json b/lamp/data/lamp-399.json new file mode 100644 index 0000000000000000000000000000000000000000..db6c63770122a2c2ac500d422536cbf25c8a425e --- /dev/null +++ b/lamp/data/lamp-399.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-399", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 197.48, + "y": -54.79 + }, + "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": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": -45 + }, + { + "joint": 4, + "angle": -145 + } + ] + }, + "legacy_answer": [ + -35, + 15, + -45, + -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-399\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (197.48, -54.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=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=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-400.json b/lamp/data/lamp-400.json new file mode 100644 index 0000000000000000000000000000000000000000..fdfa3a72d67fa2154894363dff7223586e5704d7 --- /dev/null +++ b/lamp/data/lamp-400.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-400", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 193.45, + "y": 112.76 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 160, + "width": 80, + "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": 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": 135 + }, + { + "joint": 2, + "angle": -60 + }, + { + "joint": 3, + "angle": -35 + }, + { + "joint": 4, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 135, + -60, + -35, + 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-400\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (193.45, 112.76)\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=stair, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=40\n part 2: x=160, y=160, width=80, 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-401.json b/lamp/data/lamp-401.json new file mode 100644 index 0000000000000000000000000000000000000000..c1fe8e6e415d73874c93775fbcfaf7580b4d5702 --- /dev/null +++ b/lamp/data/lamp-401.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-401", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 22.19, + "y": 231.36 + }, + "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": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 15 + }, + { + "joint": 2, + "angle": -70 + }, + { + "joint": 3, + "angle": 115 + }, + { + "joint": 4, + "angle": 135 + } + ] + }, + "legacy_answer": [ + 15, + -70, + 115, + 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-401\n- segment_count: 4\n- arm_base: (0.0, 120.0)\n- target: (22.19, 231.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=50\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=-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-402.json b/lamp/data/lamp-402.json new file mode 100644 index 0000000000000000000000000000000000000000..85f705fa149c4f850a68b24663b38e564e65bea6 --- /dev/null +++ b/lamp/data/lamp-402.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-402", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -10.1, + "y": 233.94 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "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": 100 + }, + { + "joint": 2, + "angle": 150 + } + ] + }, + "legacy_answer": [ + 100, + 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-402\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (-10.1, 233.94)\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=bar_vertical, pattern=warning_stripes\n part 1: 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-403.json b/lamp/data/lamp-403.json new file mode 100644 index 0000000000000000000000000000000000000000..2a9f1a6b5f166e6b644f4c5cffefb8e6d899669f --- /dev/null +++ b/lamp/data/lamp-403.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-403", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 232.15, + "y": 2.78 + }, + "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": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": -65 + }, + { + "joint": 3, + "angle": 95 + }, + { + "joint": 4, + "angle": -65 + } + ] + }, + "legacy_answer": [ + -35, + -65, + 95, + -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-403\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (232.15, 2.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=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=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-404.json b/lamp/data/lamp-404.json new file mode 100644 index 0000000000000000000000000000000000000000..9dd0edd6a8faee2c10670bbb10256f196cb4a6a4 --- /dev/null +++ b/lamp/data/lamp-404.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-404", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 3.39, + "y": -77.94 + }, + "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": 0, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "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": -175 + }, + { + "joint": 2, + "angle": -100 + }, + { + "joint": 3, + "angle": 180 + }, + { + "joint": 4, + "angle": 45 + } + ] + }, + "legacy_answer": [ + -175, + -100, + 180, + 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-404\n- segment_count: 4\n- arm_base: (80.0, -40.0)\n- target: (3.39, -77.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- 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=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-405.json b/lamp/data/lamp-405.json new file mode 100644 index 0000000000000000000000000000000000000000..4bbe513124450befb6321a89e2363ddb4c095760 --- /dev/null +++ b/lamp/data/lamp-405.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-405", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": -3.16, + "y": 62.45 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 140 + }, + { + "joint": 2, + "angle": -170 + }, + { + "joint": 3, + "angle": 60 + }, + { + "joint": 4, + "angle": -20 + }, + { + "joint": 5, + "angle": -170 + } + ] + }, + "legacy_answer": [ + 140, + -170, + 60, + -20, + -170 + ], + "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-405\n- segment_count: 5\n- arm_base: (120.0, 0.0)\n- target: (-3.16, 62.45)\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=70\n- joint 4: length=110\n- joint 5: 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- wall_2: type=stair, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=40\n part 2: x=160, 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-406.json b/lamp/data/lamp-406.json new file mode 100644 index 0000000000000000000000000000000000000000..48a55b45b716f7b8cf66e86f62fbc52aff4509c9 --- /dev/null +++ b/lamp/data/lamp-406.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-406", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 403.13, + "y": 254.32 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 280, + "y": 240, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "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": 55 + }, + { + "joint": 3, + "angle": 75 + }, + { + "joint": 4, + "angle": -5 + }, + { + "joint": 5, + "angle": 60 + } + ] + }, + "legacy_answer": [ + -15, + 55, + 75, + -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-406\n- segment_count: 5\n- arm_base: (120.0, 120.0)\n- target: (403.13, 254.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- joint 3: length=50\n- joint 4: length=110\n- joint 5: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=240, y=200, width=80, height=40\n part 2: x=280, y=240, width=80, height=40\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=200, 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-407.json b/lamp/data/lamp-407.json new file mode 100644 index 0000000000000000000000000000000000000000..e1aa7eaa6ccf5ef1ceaa3e29cd42290c1d7731ab --- /dev/null +++ b/lamp/data/lamp-407.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-407", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 167.08, + "y": -34.06 + }, + "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": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -45 + }, + { + "joint": 2, + "angle": 25 + } + ] + }, + "legacy_answer": [ + -45, + 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-407\n- segment_count: 2\n- arm_base: (40.0, 0.0)\n- target: (167.08, -34.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=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=120, y=40, width=80, height=40\n part 2: x=160, 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-408.json b/lamp/data/lamp-408.json new file mode 100644 index 0000000000000000000000000000000000000000..ab4d00e2e8c6da38cc389570fd608dd93e0e8694 --- /dev/null +++ b/lamp/data/lamp-408.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-408", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 270.99, + "y": -24.77 + }, + "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": 80, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": -125 + }, + { + "joint": 3, + "angle": -25 + }, + { + "joint": 4, + "angle": -65 + }, + { + "joint": 5, + "angle": 40 + } + ] + }, + "legacy_answer": [ + 30, + -125, + -25, + -65, + 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-408\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (270.99, -24.77)\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=70\n- joint 5: 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- wall_2: 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-409.json b/lamp/data/lamp-409.json new file mode 100644 index 0000000000000000000000000000000000000000..30390b1900bcd98243d6572f75a43abfe09d06a5 --- /dev/null +++ b/lamp/data/lamp-409.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-409", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 172.63, + "y": -39.12 + }, + "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": 120, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -90 + }, + { + "joint": 2, + "angle": -25 + }, + { + "joint": 3, + "angle": 65 + }, + { + "joint": 4, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -90, + -25, + 65, + -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-409\n- segment_count: 4\n- arm_base: (-40.0, 40.0)\n- target: (172.63, -39.12)\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=90\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=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-410.json b/lamp/data/lamp-410.json new file mode 100644 index 0000000000000000000000000000000000000000..fcd2b03ae668f0d9eda9e4470dba9460a3838f25 --- /dev/null +++ b/lamp/data/lamp-410.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-410", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": -44.01, + "y": 154.17 + }, + "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": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 120 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": -115 + }, + { + "joint": 4, + "angle": -180 + }, + { + "joint": 5, + "angle": 165 + } + ] + }, + "legacy_answer": [ + 120, + 5, + -115, + -180, + 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-410\n- segment_count: 5\n- arm_base: (120.0, 80.0)\n- target: (-44.01, 154.17)\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- joint 5: length=70\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-411.json b/lamp/data/lamp-411.json new file mode 100644 index 0000000000000000000000000000000000000000..8f84780cfdfa8e626a6179b715c01126408f0994 --- /dev/null +++ b/lamp/data/lamp-411.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-411", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 88.79, + "y": 185.81 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 240, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 120, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": 130 + }, + { + "joint": 3, + "angle": 45 + }, + { + "joint": 4, + "angle": -45 + }, + { + "joint": 5, + "angle": 145 + } + ] + }, + "legacy_answer": [ + 150, + 130, + 45, + -45, + 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-411\n- segment_count: 5\n- arm_base: (120.0, 80.0)\n- target: (88.79, 185.81)\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=70\n- joint 4: length=110\n- joint 5: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=200, width=80, height=40\n part 2: x=160, y=240, width=80, height=40\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=160, 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-412.json b/lamp/data/lamp-412.json new file mode 100644 index 0000000000000000000000000000000000000000..87ef3a76acadc0678b1837fc05c69e228c1a40c4 --- /dev/null +++ b/lamp/data/lamp-412.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-412", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": -3.58, + "y": 147.92 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 40 + }, + { + "joint": 2, + "angle": 115 + }, + { + "joint": 3, + "angle": -115 + }, + { + "joint": 4, + "angle": 125 + } + ] + }, + "legacy_answer": [ + 40, + 115, + -115, + 125 + ], + "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-412\n- segment_count: 4\n- arm_base: (0.0, 0.0)\n- target: (-3.58, 147.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=90\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=0, y=160, width=80, height=40\n part 2: x=0, y=160, width=40, height=120\n- wall_2: 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-413.json b/lamp/data/lamp-413.json new file mode 100644 index 0000000000000000000000000000000000000000..fdc999cef97f18abc682622e519f699713406cd6 --- /dev/null +++ b/lamp/data/lamp-413.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-413", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 150.98, + "y": -32.94 + }, + "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": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -170 + }, + { + "joint": 2, + "angle": -30 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": -65 + } + ] + }, + "legacy_answer": [ + -170, + -30, + 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-413\n- segment_count: 4\n- arm_base: (80.0, 40.0)\n- target: (150.98, -32.94)\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=70\n- joint 4: length=90\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=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-414.json b/lamp/data/lamp-414.json new file mode 100644 index 0000000000000000000000000000000000000000..c2747fbf8f4d40d34028a61e6d6f479f67a016a0 --- /dev/null +++ b/lamp/data/lamp-414.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-414", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": 11.28, + "y": 225.64 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "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": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 75, + 105, + 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-414\n- segment_count: 3\n- arm_base: (0.0, 40.0)\n- target: (11.28, 225.64)\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- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=40, y=120, width=40, height=120\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-415.json b/lamp/data/lamp-415.json new file mode 100644 index 0000000000000000000000000000000000000000..cb51e39c342de28fad3d055d00072565a7dcdd5a --- /dev/null +++ b/lamp/data/lamp-415.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-415", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 31.79, + "y": 51.09 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -55 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": 140 + }, + { + "joint": 4, + "angle": -115 + } + ] + }, + "legacy_answer": [ + -55, + 30, + 140, + -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-415\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (31.79, 51.09)\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=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=0, width=120, 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-416.json b/lamp/data/lamp-416.json new file mode 100644 index 0000000000000000000000000000000000000000..c518ad5f437c38ab94c43efa54c3cb5411e05027 --- /dev/null +++ b/lamp/data/lamp-416.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-416", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -44.98, + "y": 277.72 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 200, + "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": 125 + }, + { + "joint": 2, + "angle": 75 + } + ] + }, + "legacy_answer": [ + 125, + 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-416\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (-44.98, 277.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=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-40, 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-417.json b/lamp/data/lamp-417.json new file mode 100644 index 0000000000000000000000000000000000000000..b23adf3e0f95f3bf0f4fa9d42ec15676482ac117 --- /dev/null +++ b/lamp/data/lamp-417.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-417", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 35.76, + "y": 132.04 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "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": 165 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 155 + } + ] + }, + "legacy_answer": [ + 165, + 40, + 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-417\n- segment_count: 3\n- arm_base: (120.0, 0.0)\n- target: (35.76, 132.04)\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=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- 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-418.json b/lamp/data/lamp-418.json new file mode 100644 index 0000000000000000000000000000000000000000..8c5d823eae70de5f31ec827b1e1884f16949b473 --- /dev/null +++ b/lamp/data/lamp-418.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-418", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 194.06, + "y": 124.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 20 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": 110 + }, + { + "joint": 4, + "angle": -95 + } + ] + }, + "legacy_answer": [ + 20, + 95, + 110, + -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-418\n- segment_count: 4\n- arm_base: (120.0, 40.0)\n- target: (194.06, 124.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- joint 3: length=50\n- joint 4: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: 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-419.json b/lamp/data/lamp-419.json new file mode 100644 index 0000000000000000000000000000000000000000..4d88196b56b61cda6d324a3bd58caf0bd877f3c6 --- /dev/null +++ b/lamp/data/lamp-419.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-419", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 203.39, + "y": 125.48 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -25 + }, + { + "joint": 2, + "angle": 180 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": 20 + }, + { + "joint": 5, + "angle": 30 + } + ] + }, + "legacy_answer": [ + -25, + 180, + 70, + 20, + 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-419\n- segment_count: 5\n- arm_base: (40.0, 0.0)\n- target: (203.39, 125.48)\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- joint 4: length=70\n- joint 5: 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=block, pattern=warning_stripes\n part 1: x=80, 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-420.json b/lamp/data/lamp-420.json new file mode 100644 index 0000000000000000000000000000000000000000..942f5274f90ecb6688364d6ce23b0e68de5a79fd --- /dev/null +++ b/lamp/data/lamp-420.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-420", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 1.35, + "y": 88.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": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": 60 + }, + { + "joint": 4, + "angle": -130 + }, + { + "joint": 5, + "angle": -160 + } + ] + }, + "legacy_answer": [ + 10, + 150, + 60, + -130, + -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-420\n- segment_count: 5\n- arm_base: (80.0, 40.0)\n- target: (1.35, 88.32)\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- joint 4: length=50\n- joint 5: length=90\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-421.json b/lamp/data/lamp-421.json new file mode 100644 index 0000000000000000000000000000000000000000..f6afe97fdb536231d2160d9c5abcba78228cc538 --- /dev/null +++ b/lamp/data/lamp-421.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-421", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 156.92, + "y": 46.61 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -25 + }, + { + "joint": 2, + "angle": -45 + } + ] + }, + "legacy_answer": [ + -25, + -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-421\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (156.92, 46.61)\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=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-422.json b/lamp/data/lamp-422.json new file mode 100644 index 0000000000000000000000000000000000000000..2c54ca1b14395f50aa426101384d2b919707bfa5 --- /dev/null +++ b/lamp/data/lamp-422.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-422", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 93.73, + "y": 129.35 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 175 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": 65 + }, + { + "joint": 4, + "angle": -130 + }, + { + "joint": 5, + "angle": 50 + } + ] + }, + "legacy_answer": [ + 175, + 30, + 65, + -130, + 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-422\n- segment_count: 5\n- arm_base: (40.0, 40.0)\n- target: (93.73, 129.35)\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=70\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- wall_2: 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-423.json b/lamp/data/lamp-423.json new file mode 100644 index 0000000000000000000000000000000000000000..97490aa9e9e6e35a848bf3d5a137f6105e40a015 --- /dev/null +++ b/lamp/data/lamp-423.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-423", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": 97.32, + "y": 319.85 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 200, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": 150 + }, + { + "joint": 4, + "angle": 70 + } + ] + }, + "legacy_answer": [ + 30, + 25, + 150, + 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-423\n- segment_count: 4\n- arm_base: (-40.0, 80.0)\n- target: (97.32, 319.85)\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- joint 4: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=160, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=200, width=80, height=40\n part 2: x=-40, 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-424.json b/lamp/data/lamp-424.json new file mode 100644 index 0000000000000000000000000000000000000000..c7b95a856efca021bb096a4f3d7456fc7e3bb1da --- /dev/null +++ b/lamp/data/lamp-424.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-424", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 71.15, + "y": 139.35 + }, + "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": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 5 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": -155 + }, + { + "joint": 4, + "angle": 105 + }, + { + "joint": 5, + "angle": -105 + } + ] + }, + "legacy_answer": [ + 5, + 15, + -155, + 105, + -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-424\n- segment_count: 5\n- arm_base: (0.0, 80.0)\n- target: (71.15, 139.35)\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=50\n- joint 4: length=110\n- joint 5: 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=0, y=200, width=80, height=40\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-425.json b/lamp/data/lamp-425.json new file mode 100644 index 0000000000000000000000000000000000000000..e62934089e40eb040e3ab66ea20306cca223975d --- /dev/null +++ b/lamp/data/lamp-425.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-425", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 80 + }, + "target": { + "x": -16.67, + "y": 253.02 + }, + "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": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 20 + }, + { + "joint": 2, + "angle": -85 + }, + { + "joint": 3, + "angle": 115 + }, + { + "joint": 4, + "angle": 125 + }, + { + "joint": 5, + "angle": 70 + } + ] + }, + "legacy_answer": [ + 20, + -85, + 115, + 125, + 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-425\n- segment_count: 5\n- arm_base: (-40.0, 80.0)\n- target: (-16.67, 253.02)\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=90\n- joint 4: length=90\n- joint 5: length=110\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=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-426.json b/lamp/data/lamp-426.json new file mode 100644 index 0000000000000000000000000000000000000000..80c57e3c7e6bc539f2c2e7e44ba685dc9a1bf110 --- /dev/null +++ b/lamp/data/lamp-426.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-426", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 237.03, + "y": 174.46 + }, + "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": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": 65 + }, + { + "joint": 3, + "angle": 65 + } + ] + }, + "legacy_answer": [ + -35, + 65, + 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-426\n- segment_count: 3\n- arm_base: (120.0, 40.0)\n- target: (237.03, 174.46)\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=90\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-427.json b/lamp/data/lamp-427.json new file mode 100644 index 0000000000000000000000000000000000000000..fb2deb9e698b49f9b940466fe42ebd369128ce37 --- /dev/null +++ b/lamp/data/lamp-427.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-427", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 4.99, + "y": 19.38 + }, + "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": 0, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "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": -40 + }, + { + "joint": 2, + "angle": -170 + } + ] + }, + "legacy_answer": [ + -40, + -170 + ], + "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-427\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (4.99, 19.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=90\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=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-428.json b/lamp/data/lamp-428.json new file mode 100644 index 0000000000000000000000000000000000000000..1e32bb3ce69be75d9075bcce51e9ef478161e1e4 --- /dev/null +++ b/lamp/data/lamp-428.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-428", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -46.94, + "y": 208.68 + }, + "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": -40, + "y": 240, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 280, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -165 + }, + { + "joint": 2, + "angle": -100 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": 140 + } + ] + }, + "legacy_answer": [ + -165, + -100, + 70, + 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-428\n- segment_count: 4\n- arm_base: (80.0, 120.0)\n- target: (-46.94, 208.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=110\n- joint 4: length=90\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=-40, y=240, width=80, height=40\n part 2: x=0, y=280, 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-429.json b/lamp/data/lamp-429.json new file mode 100644 index 0000000000000000000000000000000000000000..8f084c935904bba725434261daf8f4d469adee23 --- /dev/null +++ b/lamp/data/lamp-429.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-429", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 241.46, + "y": 99.69 + }, + "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": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 25 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": -170 + }, + { + "joint": 4, + "angle": 150 + }, + { + "joint": 5, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 25, + 20, + -170, + 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-429\n- segment_count: 5\n- arm_base: (80.0, 0.0)\n- target: (241.46, 99.69)\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=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-430.json b/lamp/data/lamp-430.json new file mode 100644 index 0000000000000000000000000000000000000000..5250be04270470756369b89f594ab21565012b10 --- /dev/null +++ b/lamp/data/lamp-430.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-430", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 203.05, + "y": 35.86 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 140 + }, + { + "joint": 2, + "angle": 10 + }, + { + "joint": 3, + "angle": -20 + } + ] + }, + "legacy_answer": [ + 140, + 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-430\n- segment_count: 3\n- arm_base: (80.0, 0.0)\n- target: (203.05, 35.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=90\n- joint 3: length=110\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- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=200, y=40, width=80, height=40\n part 2: x=200, 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-431.json b/lamp/data/lamp-431.json new file mode 100644 index 0000000000000000000000000000000000000000..a777677edbc84be0c38cd310388e9803667db364 --- /dev/null +++ b/lamp/data/lamp-431.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-431", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": 110.47, + "y": -61.45 + }, + "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": 50 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -60 + }, + { + "joint": 2, + "angle": -50 + }, + { + "joint": 3, + "angle": -15 + }, + { + "joint": 4, + "angle": 160 + } + ] + }, + "legacy_answer": [ + -60, + -50, + -15, + 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-431\n- segment_count: 4\n- arm_base: (0.0, 40.0)\n- target: (110.47, -61.45)\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- 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-432.json b/lamp/data/lamp-432.json new file mode 100644 index 0000000000000000000000000000000000000000..f44a519f7c230443fe96ab9359e5fd1c6b3d3800 --- /dev/null +++ b/lamp/data/lamp-432.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-432", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 26.69, + "y": 182.39 + }, + "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_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 85 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": -120 + }, + { + "joint": 5, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 85, + 95, + -165, + -120, + -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-432\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (26.69, 182.39)\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=110\n- joint 4: length=50\n- joint 5: length=90\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_vertical, pattern=warning_stripes\n part 1: 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-433.json b/lamp/data/lamp-433.json new file mode 100644 index 0000000000000000000000000000000000000000..7a86e64128ff9e43b46397e77a193ee1e3774108 --- /dev/null +++ b/lamp/data/lamp-433.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-433", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 105.8, + "y": 121.39 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "height": 40 + } + ] + }, + { + "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": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": -115 + } + ] + }, + "legacy_answer": [ + -15, + 90, + -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-433\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (105.8, 121.39)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, y=40, width=120, height=40\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-434.json b/lamp/data/lamp-434.json new file mode 100644 index 0000000000000000000000000000000000000000..1d165c2b2e1a84409fb67843f2648e1f72110412 --- /dev/null +++ b/lamp/data/lamp-434.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-434", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 50.33, + "y": 143.12 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 160, + "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": 165 + }, + { + "joint": 2, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 165, + 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-434\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (50.33, 143.12)\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=160, width=80, height=40\n part 2: x=80, y=200, width=80, height=40\n- wall_2: 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-435.json b/lamp/data/lamp-435.json new file mode 100644 index 0000000000000000000000000000000000000000..2255c71174a832f7bb27b473a14fe9bf4c6c2889 --- /dev/null +++ b/lamp/data/lamp-435.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-435", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 122.39, + "y": 183.8 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 200, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": 125 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": 55 + } + ] + }, + "legacy_answer": [ + 0, + 125, + -165, + 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-435\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (122.39, 183.8)\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=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=40, y=200, width=120, height=40\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-436.json b/lamp/data/lamp-436.json new file mode 100644 index 0000000000000000000000000000000000000000..7fb0e24ec02ed7c0d869627aeb0e753b0ab521d2 --- /dev/null +++ b/lamp/data/lamp-436.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-436", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 134.36, + "y": 210.12 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": 100 + }, + { + "joint": 3, + "angle": 15 + } + ] + }, + "legacy_answer": [ + 110, + 100, + 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-436\n- segment_count: 3\n- arm_base: (120.0, 0.0)\n- target: (134.36, 210.12)\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- 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=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-437.json b/lamp/data/lamp-437.json new file mode 100644 index 0000000000000000000000000000000000000000..7a3ba510e1cfbb7f77189b876a977142b3117ae6 --- /dev/null +++ b/lamp/data/lamp-437.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-437", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 223.53, + "y": 183.53 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -20 + }, + { + "joint": 2, + "angle": 110 + }, + { + "joint": 3, + "angle": 45 + } + ] + }, + "legacy_answer": [ + -20, + 110, + 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-437\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (223.53, 183.53)\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=110\n- obstacles:\n- wall_1: 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-438.json b/lamp/data/lamp-438.json new file mode 100644 index 0000000000000000000000000000000000000000..0901f9a766572659777c8351df01cdb5a3e7f97e --- /dev/null +++ b/lamp/data/lamp-438.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-438", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -60.4, + "y": 148.23 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -140 + }, + { + "joint": 2, + "angle": 115 + }, + { + "joint": 3, + "angle": 0 + }, + { + "joint": 4, + "angle": 50 + }, + { + "joint": 5, + "angle": 180 + } + ] + }, + "legacy_answer": [ + -140, + 115, + 0, + 50, + 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-438\n- segment_count: 5\n- arm_base: (0.0, 120.0)\n- target: (-60.4, 148.23)\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=70\n- joint 5: length=110\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=160, width=120, height=40\n- wall_2: 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-439.json b/lamp/data/lamp-439.json new file mode 100644 index 0000000000000000000000000000000000000000..e0b69ed0a10650f81f6dc075475827f70c151d28 --- /dev/null +++ b/lamp/data/lamp-439.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-439", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 129.81, + "y": 105.64 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "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": -5 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -5, + 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-439\n- segment_count: 2\n- arm_base: (80.0, 0.0)\n- target: (129.81, 105.64)\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=40, y=80, width=80, height=40\n part 2: x=40, y=80, width=40, height=120\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-440.json b/lamp/data/lamp-440.json new file mode 100644 index 0000000000000000000000000000000000000000..2ebe255edf62631fd17d7163c80885d93789194c --- /dev/null +++ b/lamp/data/lamp-440.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-440", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 228.72, + "y": 249.57 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 160, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 70 + }, + { + "joint": 2, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 70, + 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-440\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (228.72, 249.57)\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- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, 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-441.json b/lamp/data/lamp-441.json new file mode 100644 index 0000000000000000000000000000000000000000..6b515688294992ef3d68b8155d500bbbf45ecea6 --- /dev/null +++ b/lamp/data/lamp-441.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-441", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": -12.81, + "y": 75.65 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 55 + }, + { + "joint": 2, + "angle": -130 + }, + { + "joint": 3, + "angle": 135 + } + ] + }, + "legacy_answer": [ + 55, + -130, + 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-441\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (-12.81, 75.65)\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=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=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-442.json b/lamp/data/lamp-442.json new file mode 100644 index 0000000000000000000000000000000000000000..1dab802ba62cb60c127821a8bf6691e045eea838 --- /dev/null +++ b/lamp/data/lamp-442.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-442", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -30.65, + "y": 156.91 + }, + "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": 0, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 155 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 135 + } + ] + }, + "legacy_answer": [ + 155, + 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-442\n- segment_count: 3\n- arm_base: (40.0, 40.0)\n- target: (-30.65, 156.91)\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- 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=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-443.json b/lamp/data/lamp-443.json new file mode 100644 index 0000000000000000000000000000000000000000..25975b9628d02005063eb9996d2ebf8ea66342be --- /dev/null +++ b/lamp/data/lamp-443.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-443", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 202.34, + "y": 101.75 + }, + "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": 160, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 160, + "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": 20 + }, + { + "joint": 2, + "angle": -45 + } + ] + }, + "legacy_answer": [ + 20, + -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-443\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (202.34, 101.75)\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=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=160, y=160, width=80, height=40\n part 2: x=160, 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-444.json b/lamp/data/lamp-444.json new file mode 100644 index 0000000000000000000000000000000000000000..d5c4b9de9587e9b2e96d399b4d267ac2d80b71cc --- /dev/null +++ b/lamp/data/lamp-444.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-444", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": -80 + }, + "target": { + "x": -74.69, + "y": -21.76 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -135 + }, + { + "joint": 2, + "angle": 135 + }, + { + "joint": 3, + "angle": -85 + }, + { + "joint": 4, + "angle": 65 + } + ] + }, + "legacy_answer": [ + -135, + 135, + -85, + 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-444\n- segment_count: 4\n- arm_base: (0.0, -80.0)\n- target: (-74.69, -21.76)\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=110\n- obstacles:\n- wall_1: 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- 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-445.json b/lamp/data/lamp-445.json new file mode 100644 index 0000000000000000000000000000000000000000..ba5120005d9a9d91b78f692d1b42d723e3848b8b --- /dev/null +++ b/lamp/data/lamp-445.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-445", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -50.45, + "y": 175.17 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 155 + }, + { + "joint": 2, + "angle": 10 + } + ] + }, + "legacy_answer": [ + 155, + 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-445\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (-50.45, 175.17)\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- 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\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-446.json b/lamp/data/lamp-446.json new file mode 100644 index 0000000000000000000000000000000000000000..a0c98659a6682d94a9d1c19daf348e367d803507 --- /dev/null +++ b/lamp/data/lamp-446.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-446", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": -7.04, + "y": 13.97 + }, + "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": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": -50 + } + ] + }, + "legacy_answer": [ + -160, + -165, + -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-446\n- segment_count: 3\n- arm_base: (120.0, 120.0)\n- target: (-7.04, 13.97)\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- 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-447.json b/lamp/data/lamp-447.json new file mode 100644 index 0000000000000000000000000000000000000000..bba0f009eb2d19bf36bf7c21d6b767b1d7dd3a87 --- /dev/null +++ b/lamp/data/lamp-447.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-447", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": -96.76, + "y": 73.06 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 135 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": -130 + }, + { + "joint": 4, + "angle": -160 + } + ] + }, + "legacy_answer": [ + 135, + 20, + -130, + -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-447\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (-96.76, 73.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=110\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=40, y=120, width=40, height=120\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-448.json b/lamp/data/lamp-448.json new file mode 100644 index 0000000000000000000000000000000000000000..f842d5aac1423c8c9270780589330bfee55631e1 --- /dev/null +++ b/lamp/data/lamp-448.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-448", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -41.95, + "y": 48.32 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -45 + }, + { + "joint": 2, + "angle": -180 + }, + { + "joint": 3, + "angle": 175 + } + ] + }, + "legacy_answer": [ + -45, + -180, + 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-448\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (-41.95, 48.32)\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- obstacles:\n- wall_1: 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-449.json b/lamp/data/lamp-449.json new file mode 100644 index 0000000000000000000000000000000000000000..ef81869e8289851f07158146e6d7f056784544c4 --- /dev/null +++ b/lamp/data/lamp-449.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-449", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 126.26, + "y": 111.22 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": -65 + }, + { + "joint": 4, + "angle": 30 + }, + { + "joint": 5, + "angle": 105 + } + ] + }, + "legacy_answer": [ + -35, + 95, + -65, + 30, + 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-449\n- segment_count: 5\n- arm_base: (-40.0, 40.0)\n- target: (126.26, 111.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=50\n- joint 3: length=110\n- joint 4: length=110\n- joint 5: 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\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-450.json b/lamp/data/lamp-450.json new file mode 100644 index 0000000000000000000000000000000000000000..654312bd1eaf5d7d8f857113b086cfe28d43d31c --- /dev/null +++ b/lamp/data/lamp-450.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-450", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 173.12, + "y": 106.44 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 100 + }, + { + "joint": 2, + "angle": -35 + }, + { + "joint": 3, + "angle": 0 + }, + { + "joint": 4, + "angle": -75 + }, + { + "joint": 5, + "angle": 75 + } + ] + }, + "legacy_answer": [ + 100, + -35, + 0, + -75, + 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-450\n- segment_count: 5\n- arm_base: (0.0, 0.0)\n- target: (173.12, 106.44)\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=90\n- joint 4: length=50\n- joint 5: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: 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-451.json b/lamp/data/lamp-451.json new file mode 100644 index 0000000000000000000000000000000000000000..ef34a25053c40ba29b0f3486706f4b60850f26ed --- /dev/null +++ b/lamp/data/lamp-451.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-451", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": -106.25, + "y": 178.47 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 165 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + 165, + 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-451\n- segment_count: 2\n- arm_base: (0.0, 40.0)\n- target: (-106.25, 178.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=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, y=80, width=40, height=120\n- wall_2: 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\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-452.json b/lamp/data/lamp-452.json new file mode 100644 index 0000000000000000000000000000000000000000..009e149c8ec45a8727cd86356bf7a6b663c6dcb7 --- /dev/null +++ b/lamp/data/lamp-452.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-452", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 52.23, + "y": 48.4 + }, + "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": 80, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 105 + }, + { + "joint": 2, + "angle": 130 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": -70 + } + ] + }, + "legacy_answer": [ + 105, + 130, + -165, + -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-452\n- segment_count: 4\n- arm_base: (120.0, 40.0)\n- target: (52.23, 48.4)\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=50\n- joint 4: 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=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-453.json b/lamp/data/lamp-453.json new file mode 100644 index 0000000000000000000000000000000000000000..99339f0eefa0bfb05992fc59c0e44e3cc62d6d27 --- /dev/null +++ b/lamp/data/lamp-453.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-453", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 126.96, + "y": -58.27 + }, + "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": 50 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": -30 + }, + { + "joint": 3, + "angle": -65 + }, + { + "joint": 4, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 60, + -30, + -65, + -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-453\n- segment_count: 4\n- arm_base: (-40.0, 40.0)\n- target: (126.96, -58.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=70\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=-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-454.json b/lamp/data/lamp-454.json new file mode 100644 index 0000000000000000000000000000000000000000..989166f22294a7a17b0d9ae6365758db6e46b088 --- /dev/null +++ b/lamp/data/lamp-454.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-454", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 220.91, + "y": 99.6 + }, + "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": 160, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": -90 + }, + { + "joint": 4, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 45, + 15, + -90, + 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-454\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (220.91, 99.6)\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=90\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=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-455.json b/lamp/data/lamp-455.json new file mode 100644 index 0000000000000000000000000000000000000000..cc6d7c32e022acb6ee5309611ee6bb60832c33d4 --- /dev/null +++ b/lamp/data/lamp-455.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-455", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 286.06, + "y": 37.91 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "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": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -15 + }, + { + "joint": 2, + "angle": -20 + }, + { + "joint": 3, + "angle": 50 + } + ] + }, + "legacy_answer": [ + -15, + -20, + 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-455\n- segment_count: 3\n- arm_base: (120.0, 40.0)\n- target: (286.06, 37.91)\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- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, 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-456.json b/lamp/data/lamp-456.json new file mode 100644 index 0000000000000000000000000000000000000000..3a7aa601f37bb825df5179d2432d63e84466c2b2 --- /dev/null +++ b/lamp/data/lamp-456.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-456", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 108.27, + "y": 229.43 + }, + "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": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 160, + "width": 80, + "height": 80 + } + ] + } + ], + "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": 55 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": -105 + } + ] + }, + "legacy_answer": [ + 55, + 75, + -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-456\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (108.27, 229.43)\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=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=block, pattern=warning_stripes\n part 1: x=120, 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-457.json b/lamp/data/lamp-457.json new file mode 100644 index 0000000000000000000000000000000000000000..56d1db2c119e7a0892e640728a79f908d82d50d9 --- /dev/null +++ b/lamp/data/lamp-457.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-457", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -37.77, + "y": 221.67 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 160, + "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": 160 + }, + { + "joint": 2, + "angle": 110 + } + ] + }, + "legacy_answer": [ + 160, + 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-457\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (-37.77, 221.67)\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_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-458.json b/lamp/data/lamp-458.json new file mode 100644 index 0000000000000000000000000000000000000000..f02bde941cc70db00c092a761027bf1dc7ba7fd4 --- /dev/null +++ b/lamp/data/lamp-458.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-458", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 102.94, + "y": 213.88 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -35 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": 35 + }, + { + "joint": 4, + "angle": 135 + } + ] + }, + "legacy_answer": [ + -35, + 90, + 35, + 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-458\n- segment_count: 4\n- arm_base: (40.0, 80.0)\n- target: (102.94, 213.88)\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=50\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- wall_2: 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-459.json b/lamp/data/lamp-459.json new file mode 100644 index 0000000000000000000000000000000000000000..f1e9bccccf053b2c8edc1a45b44f1c24c6f52445 --- /dev/null +++ b/lamp/data/lamp-459.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-459", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 98.74, + "y": 160.82 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 240, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "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": 45 + }, + { + "joint": 2, + "angle": -10 + } + ] + }, + "legacy_answer": [ + 45, + -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-459\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (98.74, 160.82)\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=stair, pattern=warning_stripes\n part 1: x=0, y=200, width=80, height=40\n part 2: x=40, y=240, width=80, height=40\n- wall_2: 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-460.json b/lamp/data/lamp-460.json new file mode 100644 index 0000000000000000000000000000000000000000..820f31fdc94974a44f3f6a3579dfb51896bbec84 --- /dev/null +++ b/lamp/data/lamp-460.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-460", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": -3.11, + "y": 221.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 50 + }, + { + "joint": 2, + "angle": 125 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": 105 + }, + { + "joint": 5, + "angle": 180 + } + ] + }, + "legacy_answer": [ + 50, + 125, + 70, + 105, + 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-460\n- segment_count: 5\n- arm_base: (80.0, -40.0)\n- target: (-3.11, 221.28)\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=50\n- joint 5: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=0, width=80, height=40\n part 2: 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-461.json b/lamp/data/lamp-461.json new file mode 100644 index 0000000000000000000000000000000000000000..97754a0e975488f45cb3b12465dafe27b0fc7d1b --- /dev/null +++ b/lamp/data/lamp-461.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-461", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 34, + "y": -91.17 + }, + "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": 0, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -25 + }, + { + "joint": 2, + "angle": -20 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": -180 + } + ] + }, + "legacy_answer": [ + -25, + -20, + -165, + -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-461\n- segment_count: 4\n- arm_base: (80.0, -40.0)\n- target: (34.0, -91.17)\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=50\n- joint 4: length=90\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=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-462.json b/lamp/data/lamp-462.json new file mode 100644 index 0000000000000000000000000000000000000000..c02e90916ad96e2fff1e70f0e1cc2edfbbea9ac7 --- /dev/null +++ b/lamp/data/lamp-462.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-462", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 56.43, + "y": 56.31 + }, + "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 + } + ] + }, + { + "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": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -155 + } + ] + }, + "legacy_answer": [ + -40, + 25, + -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-462\n- segment_count: 3\n- arm_base: (0.0, 80.0)\n- target: (56.43, 56.31)\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=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- 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-463.json b/lamp/data/lamp-463.json new file mode 100644 index 0000000000000000000000000000000000000000..de341dd9167bf61978deff58f7658f2fed49d06b --- /dev/null +++ b/lamp/data/lamp-463.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-463", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": -37.01, + "y": -23.51 + }, + "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": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 155 + }, + { + "joint": 2, + "angle": 150 + }, + { + "joint": 3, + "angle": -30 + } + ] + }, + "legacy_answer": [ + 155, + 150, + -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-463\n- segment_count: 3\n- arm_base: (80.0, -80.0)\n- target: (-37.01, -23.51)\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- 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." + } +} diff --git a/lamp/data/lamp-464.json b/lamp/data/lamp-464.json new file mode 100644 index 0000000000000000000000000000000000000000..ecdd6d987f2811ddb3bb60114ec071a6b175c215 --- /dev/null +++ b/lamp/data/lamp-464.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-464", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 211.85, + "y": 140.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 200, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": -15 + }, + { + "joint": 3, + "angle": -165 + }, + { + "joint": 4, + "angle": 115 + }, + { + "joint": 5, + "angle": -15 + } + ] + }, + "legacy_answer": [ + 60, + -15, + -165, + 115, + -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-464\n- segment_count: 5\n- arm_base: (80.0, 80.0)\n- target: (211.85, 140.16)\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=90\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=120, y=0, width=120, height=40\n- wall_2: 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\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-465.json b/lamp/data/lamp-465.json new file mode 100644 index 0000000000000000000000000000000000000000..110167b6824804d7a7f2659e763463e3d4757158 --- /dev/null +++ b/lamp/data/lamp-465.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-465", + "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.68, + "y": 89.08 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -10 + }, + { + "joint": 2, + "angle": 155 + }, + { + "joint": 3, + "angle": 120 + }, + { + "joint": 4, + "angle": 170 + }, + { + "joint": 5, + "angle": -35 + } + ] + }, + "legacy_answer": [ + -10, + 155, + 120, + 170, + -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-465\n- segment_count: 5\n- arm_base: (40.0, 0.0)\n- target: (-83.68, 89.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=110\n- joint 4: length=110\n- joint 5: 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\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-466.json b/lamp/data/lamp-466.json new file mode 100644 index 0000000000000000000000000000000000000000..aa6e02014d8700c433cd580aa231c20d87d7230b --- /dev/null +++ b/lamp/data/lamp-466.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-466", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": -30.15, + "y": -53.3 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -85 + }, + { + "joint": 2, + "angle": 140 + }, + { + "joint": 3, + "angle": -80 + } + ] + }, + "legacy_answer": [ + -85, + 140, + -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-466\n- segment_count: 3\n- arm_base: (0.0, 80.0)\n- target: (-30.15, -53.3)\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=90\n- obstacles:\n- wall_1: 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- 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-467.json b/lamp/data/lamp-467.json new file mode 100644 index 0000000000000000000000000000000000000000..51e05ca16307ca6507247e64cd004c7d305b0ed9 --- /dev/null +++ b/lamp/data/lamp-467.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-467", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 255.75, + "y": -4.65 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "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": -15 + }, + { + "joint": 2, + "angle": 60 + }, + { + "joint": 3, + "angle": 30 + }, + { + "joint": 4, + "angle": -110 + }, + { + "joint": 5, + "angle": -40 + } + ] + }, + "legacy_answer": [ + -15, + 60, + 30, + -110, + -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-467\n- segment_count: 5\n- arm_base: (40.0, 0.0)\n- target: (255.75, -4.65)\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=block, pattern=warning_stripes\n part 1: x=80, y=40, width=80, height=80\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-468.json b/lamp/data/lamp-468.json new file mode 100644 index 0000000000000000000000000000000000000000..1fc09ad189a6730fe74f4ae1207189cf8f180506 --- /dev/null +++ b/lamp/data/lamp-468.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-468", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 19.22, + "y": 66.67 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "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-468\n- segment_count: 3\n- arm_base: (80.0, 120.0)\n- target: (19.22, 66.67)\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- 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- 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-469.json b/lamp/data/lamp-469.json new file mode 100644 index 0000000000000000000000000000000000000000..74f41af9f802c127e0d24779c9fa630db475d844 --- /dev/null +++ b/lamp/data/lamp-469.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-469", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 243.92, + "y": 40.04 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": -40, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "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": -100 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": 55 + }, + { + "joint": 4, + "angle": -50 + }, + { + "joint": 5, + "angle": -135 + } + ] + }, + "legacy_answer": [ + -100, + 15, + 55, + -50, + -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-469\n- segment_count: 5\n- arm_base: (120.0, 120.0)\n- target: (243.92, 40.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=50\n- joint 3: length=110\n- joint 4: length=110\n- joint 5: length=70\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=200, y=-40, width=80, height=40\n part 2: x=200, y=-40, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: 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-470.json b/lamp/data/lamp-470.json new file mode 100644 index 0000000000000000000000000000000000000000..6ff9664c5204459aefcc59d4812110cade25eb06 --- /dev/null +++ b/lamp/data/lamp-470.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-470", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 80 + }, + "target": { + "x": 58.39, + "y": 146.77 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "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": -80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 15 + }, + { + "joint": 2, + "angle": 50 + } + ] + }, + "legacy_answer": [ + 15, + 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-470\n- segment_count: 2\n- arm_base: (-80.0, 80.0)\n- target: (58.39, 146.77)\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- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-80, 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=-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-471.json b/lamp/data/lamp-471.json new file mode 100644 index 0000000000000000000000000000000000000000..c3c6119c2de99eb5bfc95636d935c688c50944c2 --- /dev/null +++ b/lamp/data/lamp-471.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-471", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": -21.42, + "y": 169.48 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -110 + }, + { + "joint": 2, + "angle": 115 + }, + { + "joint": 3, + "angle": 180 + }, + { + "joint": 4, + "angle": -20 + }, + { + "joint": 5, + "angle": 95 + } + ] + }, + "legacy_answer": [ + -110, + 115, + 180, + -20, + 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-471\n- segment_count: 5\n- arm_base: (120.0, 80.0)\n- target: (-21.42, 169.48)\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=50\n- joint 5: length=110\n- obstacles:\n- wall_1: 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-472.json b/lamp/data/lamp-472.json new file mode 100644 index 0000000000000000000000000000000000000000..e549e7a226439370e8e0ed63d4711bbd58fec246 --- /dev/null +++ b/lamp/data/lamp-472.json @@ -0,0 +1,96 @@ +{ + "id": "lamp-472", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 191.51, + "y": 178.5 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 95 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": -80 + } + ] + }, + "legacy_answer": [ + 95, + 40, + -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-472\n- segment_count: 3\n- arm_base: (120.0, 80.0)\n- target: (191.51, 178.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=70\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\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-473.json b/lamp/data/lamp-473.json new file mode 100644 index 0000000000000000000000000000000000000000..8fd840e8c50a4083ecf039412d52752b2ed596d5 --- /dev/null +++ b/lamp/data/lamp-473.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-473", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 137.16, + "y": -12.96 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -40, + "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": -60 + }, + { + "joint": 2, + "angle": -95 + } + ] + }, + "legacy_answer": [ + -60, + -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-473\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (137.16, -12.96)\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=40, y=0, width=80, height=40\n part 2: x=40, y=0, width=40, height=120\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: 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-474.json b/lamp/data/lamp-474.json new file mode 100644 index 0000000000000000000000000000000000000000..aa13e34d7a9fe0bd7e1f7d965d9513a1dfee6c30 --- /dev/null +++ b/lamp/data/lamp-474.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-474", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 195.89, + "y": 39.98 + }, + "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": 120, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 160, + "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": -100 + }, + { + "joint": 2, + "angle": -20 + } + ] + }, + "legacy_answer": [ + -100, + -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-474\n- segment_count: 2\n- arm_base: (120.0, 120.0)\n- target: (195.89, 39.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=90\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=120, y=160, width=80, height=40\n part 2: x=120, 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-475.json b/lamp/data/lamp-475.json new file mode 100644 index 0000000000000000000000000000000000000000..28c65fe2c421d345ad05517465c693b318d07093 --- /dev/null +++ b/lamp/data/lamp-475.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-475", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 2.46, + "y": 82.27 + }, + "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": 80, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "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": -5 + }, + { + "joint": 2, + "angle": -140 + }, + { + "joint": 3, + "angle": 145 + } + ] + }, + "legacy_answer": [ + -5, + -140, + 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-475\n- segment_count: 3\n- arm_base: (80.0, 80.0)\n- target: (2.46, 82.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=70\n- joint 3: 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=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-476.json b/lamp/data/lamp-476.json new file mode 100644 index 0000000000000000000000000000000000000000..7595290e63929a461091d85efaf20b8be0bb839d --- /dev/null +++ b/lamp/data/lamp-476.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-476", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 87.12, + "y": 232.86 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 70 + }, + { + "joint": 2, + "angle": 45 + } + ] + }, + "legacy_answer": [ + 70, + 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-476\n- segment_count: 2\n- arm_base: (0.0, 80.0)\n- target: (87.12, 232.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=70\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\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-477.json b/lamp/data/lamp-477.json new file mode 100644 index 0000000000000000000000000000000000000000..b460ee55c1b6903ed5440d862163e4ed547ace32 --- /dev/null +++ b/lamp/data/lamp-477.json @@ -0,0 +1,115 @@ +{ + "id": "lamp-477", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": -80 + }, + "target": { + "x": 8.53, + "y": -4.1 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": -40, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 0, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -155 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": 80 + } + ] + }, + "legacy_answer": [ + -155, + 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-477\n- segment_count: 3\n- arm_base: (0.0, -80.0)\n- target: (8.53, -4.1)\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- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=0, width=80, height=40\n part 2: x=0, y=0, 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=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-478.json b/lamp/data/lamp-478.json new file mode 100644 index 0000000000000000000000000000000000000000..8da0154c5c57ae1caf50b59d244bec7602b9fe89 --- /dev/null +++ b/lamp/data/lamp-478.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-478", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 104.03, + "y": 74.4 + }, + "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": 0, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": -55 + } + ] + }, + "legacy_answer": [ + 45, + -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-478\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (104.03, 74.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- 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=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-479.json b/lamp/data/lamp-479.json new file mode 100644 index 0000000000000000000000000000000000000000..227e472643bcfe1ac2450f27bb59703232725a38 --- /dev/null +++ b/lamp/data/lamp-479.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-479", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": -25.32, + "y": 101.12 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 40 + }, + { + "joint": 2, + "angle": -175 + } + ] + }, + "legacy_answer": [ + 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-479\n- segment_count: 2\n- arm_base: (0.0, 40.0)\n- target: (-25.32, 101.12)\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=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- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=-80, 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-480.json b/lamp/data/lamp-480.json new file mode 100644 index 0000000000000000000000000000000000000000..d7435c71b5fb3a117fb9f36ea5774d7837709a0f --- /dev/null +++ b/lamp/data/lamp-480.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-480", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 182.05, + "y": 49.23 + }, + "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": 80, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -90 + }, + { + "joint": 2, + "angle": -5 + }, + { + "joint": 3, + "angle": 105 + }, + { + "joint": 4, + "angle": 45 + }, + { + "joint": 5, + "angle": 60 + } + ] + }, + "legacy_answer": [ + -90, + -5, + 105, + 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-480\n- segment_count: 5\n- arm_base: (80.0, 0.0)\n- target: (182.05, 49.23)\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=70\n- joint 4: length=50\n- joint 5: 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=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-481.json b/lamp/data/lamp-481.json new file mode 100644 index 0000000000000000000000000000000000000000..a3a123397b697c9412181e177837634e63f8c62e --- /dev/null +++ b/lamp/data/lamp-481.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-481", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 385.67, + "y": 88.04 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 320, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -95 + }, + { + "joint": 2, + "angle": -40 + }, + { + "joint": 3, + "angle": 55 + }, + { + "joint": 4, + "angle": 60 + }, + { + "joint": 5, + "angle": 25 + } + ] + }, + "legacy_answer": [ + -95, + -40, + 55, + 60, + 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-481\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (385.67, 88.04)\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=110\n- joint 5: length=110\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=320, 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-482.json b/lamp/data/lamp-482.json new file mode 100644 index 0000000000000000000000000000000000000000..e99a32563b2ea9bfe2cad196542867f1b152bf9a --- /dev/null +++ b/lamp/data/lamp-482.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-482", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": -45.64, + "y": 159.48 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 200, + "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": 135 + } + ] + }, + "legacy_answer": [ + -50, + 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-482\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (-45.64, 159.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- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=-40, y=160, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=-40, y=200, width=80, height=40\n part 2: x=-40, 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-483.json b/lamp/data/lamp-483.json new file mode 100644 index 0000000000000000000000000000000000000000..d76b2fa6bcff1b5b2e956ffc150671b7d8deb18a --- /dev/null +++ b/lamp/data/lamp-483.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-483", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 415.42, + "y": -35.98 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 0, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 280, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 320, + "y": 40, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": 5 + }, + { + "joint": 3, + "angle": -15 + }, + { + "joint": 4, + "angle": -85 + }, + { + "joint": 5, + "angle": 60 + } + ] + }, + "legacy_answer": [ + 0, + 5, + -15, + -85, + 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-483\n- segment_count: 5\n- arm_base: (120.0, -40.0)\n- target: (415.42, -35.98)\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=90\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=200, y=0, width=80, height=40\n part 2: x=200, y=0, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=280, y=0, width=80, height=40\n part 2: x=320, 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-484.json b/lamp/data/lamp-484.json new file mode 100644 index 0000000000000000000000000000000000000000..6076a7278ab2136ae1e8936748704132cb1b5efd --- /dev/null +++ b/lamp/data/lamp-484.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-484", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -80 + }, + "target": { + "x": 147.24, + "y": 10.78 + }, + "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 + } + ] + }, + { + "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": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 70 + }, + { + "joint": 2, + "angle": 30 + } + ] + }, + "legacy_answer": [ + 70, + 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-484\n- segment_count: 2\n- arm_base: (80.0, -80.0)\n- target: (147.24, 10.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=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- 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-485.json b/lamp/data/lamp-485.json new file mode 100644 index 0000000000000000000000000000000000000000..63f12a41c8b06bf0b8d66bf7eb34d79fa48d3587 --- /dev/null +++ b/lamp/data/lamp-485.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-485", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -13.46, + "y": 144.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 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 0, + "y": 200, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -95 + }, + { + "joint": 2, + "angle": 40 + }, + { + "joint": 3, + "angle": 105 + }, + { + "joint": 4, + "angle": 90 + }, + { + "joint": 5, + "angle": -150 + } + ] + }, + "legacy_answer": [ + -95, + 40, + 105, + 90, + -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-485\n- segment_count: 5\n- arm_base: (40.0, 40.0)\n- target: (-13.46, 144.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=50\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=80, y=80, width=40, height=120\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=0, y=200, width=80, height=40\n part 2: x=0, 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-486.json b/lamp/data/lamp-486.json new file mode 100644 index 0000000000000000000000000000000000000000..9c62cacbed669556a032bd738d2fa76e7209c335 --- /dev/null +++ b/lamp/data/lamp-486.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-486", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 40 + }, + "target": { + "x": -51.73, + "y": -38.53 + }, + "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": 0, + "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": -50 + }, + { + "joint": 2, + "angle": -175 + } + ] + }, + "legacy_answer": [ + -50, + -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-486\n- segment_count: 2\n- arm_base: (0.0, 40.0)\n- target: (-51.73, -38.53)\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=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=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-487.json b/lamp/data/lamp-487.json new file mode 100644 index 0000000000000000000000000000000000000000..027cecb423e0c201cba91dfdf4900653007d85e3 --- /dev/null +++ b/lamp/data/lamp-487.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-487", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 50.29, + "y": -2.07 + }, + "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": -80, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": -35 + }, + { + "joint": 3, + "angle": 135 + }, + { + "joint": 4, + "angle": -75 + } + ] + }, + "legacy_answer": [ + 45, + -35, + 135, + -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-487\n- segment_count: 4\n- arm_base: (-40.0, 40.0)\n- target: (50.29, -2.07)\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- 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=-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-488.json b/lamp/data/lamp-488.json new file mode 100644 index 0000000000000000000000000000000000000000..b0e3fa0079cf8bcd551ba946d7b6d6f3998c8806 --- /dev/null +++ b/lamp/data/lamp-488.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-488", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 185.93, + "y": -2.29 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -45 + }, + { + "joint": 2, + "angle": -45 + }, + { + "joint": 3, + "angle": -15 + } + ] + }, + "legacy_answer": [ + -45, + -45, + -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-488\n- segment_count: 3\n- arm_base: (0.0, 120.0)\n- target: (185.93, -2.29)\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=90\n- obstacles:\n- wall_1: 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-489.json b/lamp/data/lamp-489.json new file mode 100644 index 0000000000000000000000000000000000000000..4b39ba898589c51b8e26fb22c23c8502b4bc66fb --- /dev/null +++ b/lamp/data/lamp-489.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-489", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 120 + }, + "target": { + "x": 33.07, + "y": 179.37 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": -170 + }, + { + "joint": 3, + "angle": -40 + }, + { + "joint": 4, + "angle": 70 + }, + { + "joint": 5, + "angle": -55 + } + ] + }, + "legacy_answer": [ + 75, + -170, + -40, + 70, + -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-489\n- segment_count: 5\n- arm_base: (-80.0, 120.0)\n- target: (33.07, 179.37)\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=110\n- joint 5: 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- wall_2: 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-490.json b/lamp/data/lamp-490.json new file mode 100644 index 0000000000000000000000000000000000000000..ae74ac10393f3944aa3785d41edbc2549fb0be32 --- /dev/null +++ b/lamp/data/lamp-490.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-490", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 148.94, + "y": 182.16 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + 10, + 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-490\n- segment_count: 2\n- arm_base: (80.0, 80.0)\n- target: (148.94, 182.16)\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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-491.json b/lamp/data/lamp-491.json new file mode 100644 index 0000000000000000000000000000000000000000..bc0581e215526620bd1923fb5862bb8446ced2da --- /dev/null +++ b/lamp/data/lamp-491.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-491", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 0 + }, + "target": { + "x": 156.25, + "y": -100.67 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -100 + }, + { + "joint": 2, + "angle": 10 + }, + { + "joint": 3, + "angle": -85 + }, + { + "joint": 4, + "angle": 100 + } + ] + }, + "legacy_answer": [ + -100, + 10, + -85, + 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-491\n- segment_count: 4\n- arm_base: (120.0, 0.0)\n- target: (156.25, -100.67)\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=90\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- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, 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-492.json b/lamp/data/lamp-492.json new file mode 100644 index 0000000000000000000000000000000000000000..c62766c1d8b8d3c3051c695ae7ac5795a0222b7f --- /dev/null +++ b/lamp/data/lamp-492.json @@ -0,0 +1,105 @@ +{ + "id": "lamp-492", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 58.52, + "y": 199.41 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -125 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": 100 + }, + { + "joint": 4, + "angle": 135 + } + ] + }, + "legacy_answer": [ + -125, + 30, + 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-492\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (58.52, 199.41)\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- joint 4: length=70\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\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-493.json b/lamp/data/lamp-493.json new file mode 100644 index 0000000000000000000000000000000000000000..d7bd7887f4e8092e94eba9e8624a6909ba3d0e87 --- /dev/null +++ b/lamp/data/lamp-493.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-493", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 161.2, + "y": 203.31 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 240, + "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": 55 + }, + { + "joint": 2, + "angle": 5 + } + ] + }, + "legacy_answer": [ + 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-493\n- segment_count: 2\n- arm_base: (0.0, 120.0)\n- target: (161.2, 203.31)\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=0, y=200, width=80, height=40\n part 2: x=40, y=240, 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-494.json b/lamp/data/lamp-494.json new file mode 100644 index 0000000000000000000000000000000000000000..721ffd80388bbffb551f0076e05ee0938fc0b108 --- /dev/null +++ b/lamp/data/lamp-494.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-494", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": -53.46, + "y": 21.62 + }, + "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": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": -150 + }, + { + "joint": 3, + "angle": -160 + }, + { + "joint": 4, + "angle": -85 + }, + { + "joint": 5, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 150, + -150, + -160, + -85, + 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-494\n- segment_count: 5\n- arm_base: (120.0, 120.0)\n- target: (-53.46, 21.62)\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=110\n- joint 5: length=50\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-495.json b/lamp/data/lamp-495.json new file mode 100644 index 0000000000000000000000000000000000000000..2bb2d73f74e00d3b895f8d914f20526acc5baea3 --- /dev/null +++ b/lamp/data/lamp-495.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-495", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 41.31, + "y": -21.61 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "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": 60 + }, + { + "joint": 2, + "angle": -165 + }, + { + "joint": 3, + "angle": -25 + }, + { + "joint": 4, + "angle": 170 + } + ] + }, + "legacy_answer": [ + 60, + -165, + -25, + 170 + ], + "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-495\n- segment_count: 4\n- arm_base: (120.0, -40.0)\n- target: (41.31, -21.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=90\n- joint 3: length=90\n- joint 4: length=110\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=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-496.json b/lamp/data/lamp-496.json new file mode 100644 index 0000000000000000000000000000000000000000..7cd1a9a3315ba035c7f20104fe202ca68e05acde --- /dev/null +++ b/lamp/data/lamp-496.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-496", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 0 + }, + "target": { + "x": 263.51, + "y": -19.73 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 40, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 240, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "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": 55 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -65 + }, + { + "joint": 4, + "angle": -40 + }, + { + "joint": 5, + "angle": 0 + } + ] + }, + "legacy_answer": [ + 55, + 25, + -65, + -40, + 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-496\n- segment_count: 5\n- arm_base: (-40.0, 0.0)\n- target: (263.51, -19.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=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=160, y=40, width=80, height=80\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=240, y=40, width=80, height=40\n part 2: x=240, 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-497.json b/lamp/data/lamp-497.json new file mode 100644 index 0000000000000000000000000000000000000000..6f93f2d9313b3f31e9c05fa6fca974fb7906a416 --- /dev/null +++ b/lamp/data/lamp-497.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-497", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 141.65, + "y": -5.48 + }, + "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": 160, + "y": -40, + "width": 120, + "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": 45 + }, + { + "joint": 2, + "angle": -60 + }, + { + "joint": 3, + "angle": -115 + } + ] + }, + "legacy_answer": [ + 45, + -60, + -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-497\n- segment_count: 3\n- arm_base: (40.0, 40.0)\n- target: (141.65, -5.48)\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=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=160, 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-498.json b/lamp/data/lamp-498.json new file mode 100644 index 0000000000000000000000000000000000000000..d9d1da9b65e5bce7f5a8d4ed813d9b2217b27599 --- /dev/null +++ b/lamp/data/lamp-498.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-498", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -17.84, + "y": 216.79 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": 130 + }, + { + "joint": 4, + "angle": -175 + } + ] + }, + "legacy_answer": [ + -40, + 95, + 130, + -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-498\n- segment_count: 4\n- arm_base: (40.0, 120.0)\n- target: (-17.84, 216.79)\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- obstacles:\n- wall_1: 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-499.json b/lamp/data/lamp-499.json new file mode 100644 index 0000000000000000000000000000000000000000..38698cd01957782026f727ef4ae9deb21144a219 --- /dev/null +++ b/lamp/data/lamp-499.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-499", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 252.99, + "y": 73 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "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": 110 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 40 + }, + { + "joint": 2, + "angle": -65 + }, + { + "joint": 3, + "angle": -50 + }, + { + "joint": 4, + "angle": 105 + } + ] + }, + "legacy_answer": [ + 40, + -65, + -50, + 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-499\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (252.99, 73.0)\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=110\n- joint 4: length=110\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=200, y=120, width=80, height=40\n part 2: x=200, y=120, 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-500.json b/lamp/data/lamp-500.json new file mode 100644 index 0000000000000000000000000000000000000000..c660da217cfa1fd5da253519d9ffe20b7e8408f1 --- /dev/null +++ b/lamp/data/lamp-500.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-500", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 50.62, + "y": -29.64 + }, + "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_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -30 + }, + { + "joint": 2, + "angle": 120 + }, + { + "joint": 3, + "angle": -120 + } + ] + }, + "legacy_answer": [ + -30, + 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-500\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (50.62, -29.64)\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- 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_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-501.json b/lamp/data/lamp-501.json new file mode 100644 index 0000000000000000000000000000000000000000..e582ba9e1515c7940b613c3fbc94a476538a4329 --- /dev/null +++ b/lamp/data/lamp-501.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-501", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 119.14, + "y": 164.37 + }, + "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": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 105 + }, + { + "joint": 2, + "angle": 15 + } + ] + }, + "legacy_answer": [ + 105, + 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-501\n- segment_count: 2\n- arm_base: (80.0, 40.0)\n- target: (119.14, 164.37)\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=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-502.json b/lamp/data/lamp-502.json new file mode 100644 index 0000000000000000000000000000000000000000..00721e0c127b075a4e569cfb8349289ed8e1c159 --- /dev/null +++ b/lamp/data/lamp-502.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-502", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 78.4, + "y": 155.19 + }, + "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": 40, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 30 + }, + { + "joint": 2, + "angle": 55 + }, + { + "joint": 3, + "angle": -10 + }, + { + "joint": 4, + "angle": -165 + } + ] + }, + "legacy_answer": [ + 30, + 55, + -10, + -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-502\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (78.4, 155.19)\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=110\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=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-503.json b/lamp/data/lamp-503.json new file mode 100644 index 0000000000000000000000000000000000000000..358cefa59d9569f45c1185bd87b61d7c86e7aa89 --- /dev/null +++ b/lamp/data/lamp-503.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-503", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": 133.68, + "y": 247.18 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 200, + "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": 60 + }, + { + "joint": 2, + "angle": 80 + } + ] + }, + "legacy_answer": [ + 60, + 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-503\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (133.68, 247.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=50\n- obstacles:\n- wall_1: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=200, width=80, height=40\n part 2: x=40, 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-504.json b/lamp/data/lamp-504.json new file mode 100644 index 0000000000000000000000000000000000000000..2fd6e4b2c092fc4ed1d2eef307517a361935164c --- /dev/null +++ b/lamp/data/lamp-504.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-504", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 196.34, + "y": 97.51 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 60 + }, + { + "joint": 2, + "angle": 45 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": -100 + }, + { + "joint": 5, + "angle": 150 + } + ] + }, + "legacy_answer": [ + 60, + 45, + 25, + -100, + 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-504\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (196.34, 97.51)\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- joint 4: length=110\n- joint 5: length=70\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=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-505.json b/lamp/data/lamp-505.json new file mode 100644 index 0000000000000000000000000000000000000000..126a8090199bc5e9b4c1e9b318d8dae59439dce1 --- /dev/null +++ b/lamp/data/lamp-505.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-505", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 109.87, + "y": 35.09 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 160, + "width": 80, + "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": 10 + }, + { + "joint": 2, + "angle": 30 + }, + { + "joint": 3, + "angle": -140 + }, + { + "joint": 4, + "angle": -130 + } + ] + }, + "legacy_answer": [ + 10, + 30, + -140, + -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-505\n- segment_count: 4\n- arm_base: (40.0, 80.0)\n- target: (109.87, 35.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=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=0, width=120, height=40\n- wall_2: 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\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-506.json b/lamp/data/lamp-506.json new file mode 100644 index 0000000000000000000000000000000000000000..f59002a5e9cc3ab9827f6c5285a253d1342f308f --- /dev/null +++ b/lamp/data/lamp-506.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-506", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 337.64, + "y": 82.78 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 240, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 280, + "y": 160, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 5 + }, + { + "joint": 2, + "angle": 115 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -70 + }, + { + "joint": 5, + "angle": 10 + } + ] + }, + "legacy_answer": [ + 5, + 115, + 20, + -70, + 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-506\n- segment_count: 5\n- arm_base: (80.0, 40.0)\n- target: (337.64, 82.78)\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=90\n- joint 5: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=240, y=120, width=80, height=40\n part 2: x=280, y=160, width=80, height=40\n- wall_2: 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-507.json b/lamp/data/lamp-507.json new file mode 100644 index 0000000000000000000000000000000000000000..671816f7fc4a20b24312847dc050f37e3411092f --- /dev/null +++ b/lamp/data/lamp-507.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-507", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 313.63, + "y": 101.07 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 200, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 200, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "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": 95 + }, + { + "joint": 2, + "angle": 10 + }, + { + "joint": 3, + "angle": -5 + } + ] + }, + "legacy_answer": [ + 95, + 10, + -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-507\n- segment_count: 3\n- arm_base: (120.0, 40.0)\n- target: (313.63, 101.07)\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=l_corner, pattern=warning_stripes\n part 1: x=200, y=120, width=80, height=40\n part 2: x=200, y=120, width=40, height=120\n- wall_2: type=bar_horizontal, pattern=warning_stripes\n part 1: x=160, 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-508.json b/lamp/data/lamp-508.json new file mode 100644 index 0000000000000000000000000000000000000000..8ec7196cc57a34051ce0844533ca2c894bde613c --- /dev/null +++ b/lamp/data/lamp-508.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-508", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -40 + }, + "target": { + "x": 28.4, + "y": -2.06 + }, + "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 + } + ] + }, + { + "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": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": 165 + } + ] + }, + "legacy_answer": [ + 150, + 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-508\n- segment_count: 2\n- arm_base: (120.0, -40.0)\n- target: (28.4, -2.06)\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=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- 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-509.json b/lamp/data/lamp-509.json new file mode 100644 index 0000000000000000000000000000000000000000..38b57274bb5975bd748ed6ff247aab0ce79a7b2a --- /dev/null +++ b/lamp/data/lamp-509.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-509", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 209.39, + "y": 202.23 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 20 + }, + { + "joint": 2, + "angle": 70 + }, + { + "joint": 3, + "angle": 55 + }, + { + "joint": 4, + "angle": 160 + }, + { + "joint": 5, + "angle": -55 + } + ] + }, + "legacy_answer": [ + 20, + 70, + 55, + 160, + -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-509\n- segment_count: 5\n- arm_base: (80.0, 40.0)\n- target: (209.39, 202.23)\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=110\n- joint 5: length=90\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=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-510.json b/lamp/data/lamp-510.json new file mode 100644 index 0000000000000000000000000000000000000000..838f43ed55b4bd4ef2c219444284e138df8d1840 --- /dev/null +++ b/lamp/data/lamp-510.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-510", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": -32.88, + "y": 41.56 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "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": 150 + } + ] + }, + "legacy_answer": [ + -115, + 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-510\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (-32.88, 41.56)\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=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- 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-511.json b/lamp/data/lamp-511.json new file mode 100644 index 0000000000000000000000000000000000000000..a093292f13abeeb4f0acca108fa4556ce1fd04ce --- /dev/null +++ b/lamp/data/lamp-511.json @@ -0,0 +1,106 @@ +{ + "id": "lamp-511", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 90.11, + "y": 106.91 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 160, + "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": -35 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + -35, + 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-511\n- segment_count: 2\n- arm_base: (0.0, 80.0)\n- target: (90.11, 106.91)\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=120, width=80, height=40\n part 2: x=0, y=120, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=80, y=120, width=80, height=40\n part 2: x=120, 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-512.json b/lamp/data/lamp-512.json new file mode 100644 index 0000000000000000000000000000000000000000..db6494a36194b7773383b94acce63bfe2e9d3a8b --- /dev/null +++ b/lamp/data/lamp-512.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-512", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 0 + }, + "target": { + "x": 249.07, + "y": -36.97 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 80, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -40 + }, + { + "joint": 2, + "angle": 90 + }, + { + "joint": 3, + "angle": -60 + }, + { + "joint": 4, + "angle": 5 + } + ] + }, + "legacy_answer": [ + -40, + 90, + -60, + 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-512\n- segment_count: 4\n- arm_base: (80.0, 0.0)\n- target: (249.07, -36.97)\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=50\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=40, width=80, height=40\n part 2: x=160, y=80, width=80, height=40\n- wall_2: 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-513.json b/lamp/data/lamp-513.json new file mode 100644 index 0000000000000000000000000000000000000000..ddfce896288b1364441f8e0193a077550f4c2e3f --- /dev/null +++ b/lamp/data/lamp-513.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-513", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 47.68, + "y": 65.6 + }, + "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": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 120, + "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": 100 + }, + { + "joint": 2, + "angle": -115 + }, + { + "joint": 3, + "angle": -135 + }, + { + "joint": 4, + "angle": 65 + } + ] + }, + "legacy_answer": [ + 100, + -115, + -135, + 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-513\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (47.68, 65.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=110\n- joint 3: length=90\n- joint 4: 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=l_corner, pattern=warning_stripes\n part 1: x=120, y=120, width=80, height=40\n part 2: x=120, 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-514.json b/lamp/data/lamp-514.json new file mode 100644 index 0000000000000000000000000000000000000000..54027fd98e2206990dd5afc4cdaa3003c1a21125 --- /dev/null +++ b/lamp/data/lamp-514.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-514", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": -65.32, + "y": 200.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 130 + }, + { + "joint": 2, + "angle": 175 + }, + { + "joint": 3, + "angle": 160 + } + ] + }, + "legacy_answer": [ + 130, + 175, + 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-514\n- segment_count: 3\n- arm_base: (120.0, 120.0)\n- target: (-65.32, 200.28)\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=110\n- obstacles:\n- wall_1: 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-515.json b/lamp/data/lamp-515.json new file mode 100644 index 0000000000000000000000000000000000000000..416223c8732c71be9e8573751ca8140854ee1853 --- /dev/null +++ b/lamp/data/lamp-515.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-515", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 0 + }, + "target": { + "x": 142.84, + "y": -54.54 + }, + "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": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 5 + }, + { + "joint": 2, + "angle": 15 + }, + { + "joint": 3, + "angle": -60 + }, + { + "joint": 4, + "angle": 5 + }, + { + "joint": 5, + "angle": -180 + } + ] + }, + "legacy_answer": [ + 5, + 15, + -60, + 5, + -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-515\n- segment_count: 5\n- arm_base: (40.0, 0.0)\n- target: (142.84, -54.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- joint 3: length=90\n- joint 4: length=50\n- joint 5: length=110\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-516.json b/lamp/data/lamp-516.json new file mode 100644 index 0000000000000000000000000000000000000000..46d42675940173018e3dc4c1ba5e3a4fc2a5b380 --- /dev/null +++ b/lamp/data/lamp-516.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-516", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 80 + }, + "target": { + "x": 2.84, + "y": 247.6 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 240, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 240, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 85 + }, + { + "joint": 2, + "angle": 120 + } + ] + }, + "legacy_answer": [ + 85, + 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-516\n- segment_count: 2\n- arm_base: (40.0, 80.0)\n- target: (2.84, 247.6)\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- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=80, y=120, width=40, height=120\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=40, y=240, width=80, height=40\n part 2: x=40, y=240, 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-517.json b/lamp/data/lamp-517.json new file mode 100644 index 0000000000000000000000000000000000000000..e1bdf6c7aec596f72aa5d8bfd1683759bd6312a0 --- /dev/null +++ b/lamp/data/lamp-517.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-517", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -80 + }, + "target": { + "x": 260.99, + "y": 2.37 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 80, + "height": 40 + }, + { + "x": 120, + "y": 40, + "width": 80, + "height": 40 + } + ] + }, + { + "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": 70 + }, + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 5 + }, + { + "joint": 2, + "angle": 35 + }, + { + "joint": 3, + "angle": 10 + }, + { + "joint": 4, + "angle": 85 + }, + { + "joint": 5, + "angle": -100 + } + ] + }, + "legacy_answer": [ + 5, + 35, + 10, + 85, + -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-517\n- segment_count: 5\n- arm_base: (40.0, -80.0)\n- target: (260.99, 2.37)\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- joint 5: length=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=80, y=0, width=80, height=40\n part 2: x=120, y=40, width=80, height=40\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-518.json b/lamp/data/lamp-518.json new file mode 100644 index 0000000000000000000000000000000000000000..56ddc8f339f95786100d88bda71501544f675628 --- /dev/null +++ b/lamp/data/lamp-518.json @@ -0,0 +1,124 @@ +{ + "id": "lamp-518", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 17.21, + "y": 95.99 + }, + "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": "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": 70 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -110 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": 80 + }, + { + "joint": 4, + "angle": 145 + } + ] + }, + "legacy_answer": [ + -110, + -95, + 80, + 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-518\n- segment_count: 4\n- arm_base: (120.0, 80.0)\n- target: (17.21, 95.99)\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- joint 4: 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=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-519.json b/lamp/data/lamp-519.json new file mode 100644 index 0000000000000000000000000000000000000000..45d15ad0489cb89725555d13cfd95d7ec22bc499 --- /dev/null +++ b/lamp/data/lamp-519.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-519", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 55.24, + "y": 103.43 + }, + "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 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 40, + "width": 120, + "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": 35 + }, + { + "joint": 2, + "angle": 70 + }, + { + "joint": 3, + "angle": 120 + }, + { + "joint": 4, + "angle": -140 + } + ] + }, + "legacy_answer": [ + 35, + 70, + 120, + -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-519\n- segment_count: 4\n- arm_base: (80.0, -40.0)\n- target: (55.24, 103.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=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- 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-520.json b/lamp/data/lamp-520.json new file mode 100644 index 0000000000000000000000000000000000000000..fda30da545366c1484e88aef46b087ae49c96d6e --- /dev/null +++ b/lamp/data/lamp-520.json @@ -0,0 +1,133 @@ +{ + "id": "lamp-520", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 114.2, + "y": 90.87 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 120, + "y": 80, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 120, + "width": 80, + "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": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 110 + }, + { + "joint": 2, + "angle": -170 + }, + { + "joint": 3, + "angle": 25 + }, + { + "joint": 4, + "angle": -125 + }, + { + "joint": 5, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 110, + -170, + 25, + -125, + 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-520\n- segment_count: 5\n- arm_base: (80.0, 40.0)\n- target: (114.2, 90.87)\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=50\n- joint 5: length=70\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=120, y=80, width=80, height=40\n part 2: x=160, y=120, width=80, 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-521.json b/lamp/data/lamp-521.json new file mode 100644 index 0000000000000000000000000000000000000000..d98760810b70d43a96dcc19b887df1c535c22a67 --- /dev/null +++ b/lamp/data/lamp-521.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-521", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 222.73, + "y": 49.25 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 0, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -95 + }, + { + "joint": 2, + "angle": 45 + }, + { + "joint": 3, + "angle": 10 + }, + { + "joint": 4, + "angle": -10 + } + ] + }, + "legacy_answer": [ + -95, + 45, + 10, + -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-521\n- segment_count: 4\n- arm_base: (0.0, 120.0)\n- target: (222.73, 49.25)\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=90\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=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-522.json b/lamp/data/lamp-522.json new file mode 100644 index 0000000000000000000000000000000000000000..ed8c8798046f994cd5127cef940c7f8469d89e01 --- /dev/null +++ b/lamp/data/lamp-522.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-522", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": -116.31, + "y": 104.03 + }, + "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": -80, + "y": 160, + "width": 80, + "height": 40 + }, + { + "x": -80, + "y": 160, + "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": 145 + }, + { + "joint": 2, + "angle": 135 + } + ] + }, + "legacy_answer": [ + 145, + 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-522\n- segment_count: 2\n- arm_base: (-40.0, 40.0)\n- target: (-116.31, 104.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=50\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=-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-523.json b/lamp/data/lamp-523.json new file mode 100644 index 0000000000000000000000000000000000000000..c5d7b98be2437a8bf4458dab449311690c360f9c --- /dev/null +++ b/lamp/data/lamp-523.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-523", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": 10.47, + "y": 274.15 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 120, + "height": 40 + } + ] + } + ], + "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": 95 + }, + { + "joint": 2, + "angle": 130 + }, + { + "joint": 3, + "angle": 140 + }, + { + "joint": 4, + "angle": 20 + } + ] + }, + "legacy_answer": [ + 95, + 130, + 140, + 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-523\n- segment_count: 4\n- arm_base: (40.0, 40.0)\n- target: (10.47, 274.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=90\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=0, y=200, 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-524.json b/lamp/data/lamp-524.json new file mode 100644 index 0000000000000000000000000000000000000000..dee889cb631d3ee9e2090f28568f1f9ba17a10e3 --- /dev/null +++ b/lamp/data/lamp-524.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-524", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 18.4, + "y": 31.64 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 160 + }, + { + "joint": 2, + "angle": -155 + }, + { + "joint": 3, + "angle": -30 + }, + { + "joint": 4, + "angle": 150 + }, + { + "joint": 5, + "angle": -45 + } + ] + }, + "legacy_answer": [ + 160, + -155, + -30, + 150, + -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-524\n- segment_count: 5\n- arm_base: (120.0, 120.0)\n- target: (18.4, 31.64)\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=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=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-525.json b/lamp/data/lamp-525.json new file mode 100644 index 0000000000000000000000000000000000000000..f81df85b81c1b6425ac4af762226334a06bb5aac --- /dev/null +++ b/lamp/data/lamp-525.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-525", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -40, + "y": 40 + }, + "target": { + "x": 64.08, + "y": 48.2 + }, + "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": "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": -20 + }, + { + "joint": 2, + "angle": 40 + } + ] + }, + "legacy_answer": [ + -20, + 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-525\n- segment_count: 2\n- arm_base: (-40.0, 40.0)\n- target: (64.08, 48.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- 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=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-526.json b/lamp/data/lamp-526.json new file mode 100644 index 0000000000000000000000000000000000000000..975113105ccf4995607553dc6b445774dc0981ab --- /dev/null +++ b/lamp/data/lamp-526.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-526", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 120 + }, + "target": { + "x": 262.65, + "y": 155.29 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 160, + "width": 120, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "l_corner", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 200, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "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": 10 + }, + { + "joint": 2, + "angle": -95 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": 0 + }, + { + "joint": 5, + "angle": 105 + } + ] + }, + "legacy_answer": [ + 10, + -95, + 20, + 0, + 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-526\n- segment_count: 5\n- arm_base: (0.0, 120.0)\n- target: (262.65, 155.29)\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- joint 5: length=50\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=80, y=160, width=120, height=40\n- wall_2: type=l_corner, pattern=warning_stripes\n part 1: x=80, y=200, width=80, height=40\n part 2: x=80, 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-527.json b/lamp/data/lamp-527.json new file mode 100644 index 0000000000000000000000000000000000000000..98ed7ef76a4405ce05f55ea4689c892e0433c9c6 --- /dev/null +++ b/lamp/data/lamp-527.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-527", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 0 + }, + "target": { + "x": -110.46, + "y": 57.52 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 40, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -140 + }, + { + "joint": 2, + "angle": 85 + } + ] + }, + "legacy_answer": [ + -140, + 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-527\n- segment_count: 2\n- arm_base: (-80.0, 0.0)\n- target: (-110.46, 57.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=90\n- obstacles:\n- wall_1: 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-528.json b/lamp/data/lamp-528.json new file mode 100644 index 0000000000000000000000000000000000000000..a35deb0cb7292a02b70ff8e6fe4f5fe00e0f1a02 --- /dev/null +++ b/lamp/data/lamp-528.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-528", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 80 + }, + "target": { + "x": -36.58, + "y": -19.48 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "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": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -55 + }, + { + "joint": 2, + "angle": 95 + }, + { + "joint": 3, + "angle": -80 + } + ] + }, + "legacy_answer": [ + -55, + 95, + -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-528\n- segment_count: 3\n- arm_base: (-80.0, 80.0)\n- target: (-36.58, -19.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=50\n- joint 3: length=110\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=-80, 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-529.json b/lamp/data/lamp-529.json new file mode 100644 index 0000000000000000000000000000000000000000..8ff4d70a043b3d255168e54dd4f2b87fb11846e4 --- /dev/null +++ b/lamp/data/lamp-529.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-529", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 7.58, + "y": 24.73 + }, + "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": -40, + "y": 40, + "width": 80, + "height": 40 + }, + { + "x": -40, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "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": 115 + }, + { + "joint": 4, + "angle": -75 + }, + { + "joint": 5, + "angle": 155 + } + ] + }, + "legacy_answer": [ + -120, + 10, + 115, + -75, + 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-529\n- segment_count: 5\n- arm_base: (120.0, 40.0)\n- target: (7.58, 24.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=50\n- joint 3: length=90\n- joint 4: length=50\n- joint 5: length=90\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=-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-530.json b/lamp/data/lamp-530.json new file mode 100644 index 0000000000000000000000000000000000000000..82f3cb3aa24a0c0df11729735b22a45eda1c8f6e --- /dev/null +++ b/lamp/data/lamp-530.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-530", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 40 + }, + "target": { + "x": 32.18, + "y": 282.4 + }, + "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": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 240, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 280, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 180 + }, + { + "joint": 2, + "angle": 135 + }, + { + "joint": 3, + "angle": 70 + }, + { + "joint": 4, + "angle": 100 + } + ] + }, + "legacy_answer": [ + 180, + 135, + 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-530\n- segment_count: 4\n- arm_base: (120.0, 40.0)\n- target: (32.18, 282.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=70\n- joint 3: length=90\n- joint 4: length=110\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=stair, pattern=warning_stripes\n part 1: x=40, y=240, width=80, height=40\n part 2: x=80, y=280, 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-531.json b/lamp/data/lamp-531.json new file mode 100644 index 0000000000000000000000000000000000000000..05cd834ecbf0b443e8a6a01a79413804cb1c0a00 --- /dev/null +++ b/lamp/data/lamp-531.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-531", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 0 + }, + "target": { + "x": 57.84, + "y": 89.66 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 0, + 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-531\n- segment_count: 2\n- arm_base: (0.0, 0.0)\n- target: (57.84, 89.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=90\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\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-532.json b/lamp/data/lamp-532.json new file mode 100644 index 0000000000000000000000000000000000000000..aca6e90a040303460339a5c1c8b1919f62d479f8 --- /dev/null +++ b/lamp/data/lamp-532.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-532", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": -6.88, + "y": 158.41 + }, + "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": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": 130 + }, + { + "joint": 3, + "angle": -35 + }, + { + "joint": 4, + "angle": 85 + } + ] + }, + "legacy_answer": [ + -160, + 130, + -35, + 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-532\n- segment_count: 4\n- arm_base: (0.0, 80.0)\n- target: (-6.88, 158.41)\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=110\n- joint 4: 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=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-533.json b/lamp/data/lamp-533.json new file mode 100644 index 0000000000000000000000000000000000000000..8b6824c8bc9e78ca3fe9ad46770be2c02a7dab35 --- /dev/null +++ b/lamp/data/lamp-533.json @@ -0,0 +1,114 @@ +{ + "id": "lamp-533", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 124.43, + "y": 160.16 + }, + "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 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "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": 15 + }, + { + "joint": 4, + "angle": 115 + }, + { + "joint": 5, + "angle": -130 + } + ] + }, + "legacy_answer": [ + -85, + 70, + 15, + 115, + -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-533\n- segment_count: 5\n- arm_base: (120.0, 80.0)\n- target: (124.43, 160.16)\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- joint 4: length=110\n- joint 5: length=70\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\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-534.json b/lamp/data/lamp-534.json new file mode 100644 index 0000000000000000000000000000000000000000..ab362992a390d22222f1ae78a7eb0a8b6694d243 --- /dev/null +++ b/lamp/data/lamp-534.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-534", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": 108.09, + "y": -65.37 + }, + "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": -40, + "width": 80, + "height": 40 + } + ] + }, + { + "id": "wall_2", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 0, + "width": 120, + "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": -55 + }, + { + "joint": 2, + "angle": -60 + }, + { + "joint": 3, + "angle": 180 + } + ] + }, + "legacy_answer": [ + -55, + -60, + 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-534\n- segment_count: 3\n- arm_base: (40.0, 120.0)\n- target: (108.09, -65.37)\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=0, y=-80, width=80, height=40\n part 2: x=40, y=-40, 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-535.json b/lamp/data/lamp-535.json new file mode 100644 index 0000000000000000000000000000000000000000..8c8fa54ea47cca5ecbe04e663ac77f79c4c6fe3d --- /dev/null +++ b/lamp/data/lamp-535.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-535", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": -40 + }, + "target": { + "x": 83.75, + "y": -117.16 + }, + "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 + } + ] + }, + { + "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": 70 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 160 + }, + { + "joint": 2, + "angle": -80 + }, + { + "joint": 3, + "angle": -100 + }, + { + "joint": 4, + "angle": -95 + }, + { + "joint": 5, + "angle": 55 + } + ] + }, + "legacy_answer": [ + 160, + -80, + -100, + -95, + 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-535\n- segment_count: 5\n- arm_base: (80.0, -40.0)\n- target: (83.75, -117.16)\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- joint 5: length=90\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- 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-536.json b/lamp/data/lamp-536.json new file mode 100644 index 0000000000000000000000000000000000000000..434a365b63064bc8f64da49a8350e1f2fb966838 --- /dev/null +++ b/lamp/data/lamp-536.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-536", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 120 + }, + "target": { + "x": -59.73, + "y": 93.28 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -40, + "y": 80, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -110 + }, + { + "joint": 2, + "angle": 140 + } + ] + }, + "legacy_answer": [ + -110, + 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-536\n- segment_count: 2\n- arm_base: (40.0, 120.0)\n- target: (-59.73, 93.28)\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- obstacles:\n- wall_1: 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-537.json b/lamp/data/lamp-537.json new file mode 100644 index 0000000000000000000000000000000000000000..ba32e53f0bb4ff2d7073efa47b107e96bf935343 --- /dev/null +++ b/lamp/data/lamp-537.json @@ -0,0 +1,109 @@ +{ + "id": "lamp-537", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 141.56, + "y": 117.59 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 80, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 120, + "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": 3, + "segments": [ + { + "length": 110 + }, + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 10 + }, + { + "joint": 2, + "angle": -70 + }, + { + "joint": 3, + "angle": 130 + } + ] + }, + "legacy_answer": [ + 10, + -70, + 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-537\n- segment_count: 3\n- arm_base: (80.0, 80.0)\n- target: (141.56, 117.59)\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=stair, pattern=warning_stripes\n part 1: x=80, y=120, width=80, height=40\n part 2: x=120, 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-538.json b/lamp/data/lamp-538.json new file mode 100644 index 0000000000000000000000000000000000000000..cb89f5f6fd5690c79f97c12988874c5332ba94a3 --- /dev/null +++ b/lamp/data/lamp-538.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-538", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 109.39, + "y": 132.71 + }, + "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": 120, + "y": 120, + "width": 80, + "height": 40 + }, + { + "x": 160, + "y": 160, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 65 + }, + { + "joint": 2, + "angle": -110 + } + ] + }, + "legacy_answer": [ + 65, + -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-538\n- segment_count: 2\n- arm_base: (80.0, 80.0)\n- target: (109.39, 132.71)\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- 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=120, y=120, width=80, height=40\n part 2: x=160, 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-539.json b/lamp/data/lamp-539.json new file mode 100644 index 0000000000000000000000000000000000000000..1806a012b97ac5b95c93c603ab88cf5e12462307 --- /dev/null +++ b/lamp/data/lamp-539.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-539", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": -43.96, + "y": -27.73 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "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": -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-539\n- segment_count: 2\n- arm_base: (80.0, 80.0)\n- target: (-43.96, -27.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=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-540.json b/lamp/data/lamp-540.json new file mode 100644 index 0000000000000000000000000000000000000000..f13b242f2d833dfab5bccd077f5d4c87e11a8c45 --- /dev/null +++ b/lamp/data/lamp-540.json @@ -0,0 +1,108 @@ +{ + "id": "lamp-540", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 120 + }, + "target": { + "x": -24.15, + "y": 181.92 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -175 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": -120 + }, + { + "joint": 4, + "angle": -15 + }, + { + "joint": 5, + "angle": 70 + } + ] + }, + "legacy_answer": [ + -175, + 75, + -120, + -15, + 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-540\n- segment_count: 5\n- arm_base: (-80.0, 120.0)\n- target: (-24.15, 181.92)\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=50\n- joint 4: length=90\n- joint 5: length=90\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: 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-541.json b/lamp/data/lamp-541.json new file mode 100644 index 0000000000000000000000000000000000000000..f8be72a2e2e353799ecaf068302783baaa8e2b6e --- /dev/null +++ b/lamp/data/lamp-541.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-541", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": -80, + "y": 40 + }, + "target": { + "x": 34.84, + "y": -64.39 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": -40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 50 + }, + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -110 + }, + { + "joint": 2, + "angle": 105 + }, + { + "joint": 3, + "angle": -40 + }, + { + "joint": 4, + "angle": -30 + } + ] + }, + "legacy_answer": [ + -110, + 105, + -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-541\n- segment_count: 4\n- arm_base: (-80.0, 40.0)\n- target: (34.84, -64.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=110\n- joint 4: length=70\n- obstacles:\n- wall_1: 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-542.json b/lamp/data/lamp-542.json new file mode 100644 index 0000000000000000000000000000000000000000..32d6b97e7612a5ff30e520b9204d52f64a416965 --- /dev/null +++ b/lamp/data/lamp-542.json @@ -0,0 +1,112 @@ +{ + "id": "lamp-542", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 80 + }, + "target": { + "x": 159.69, + "y": 222.69 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 160, + "width": 80, + "height": 80 + } + ] + }, + { + "id": "wall_2", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 160, + "y": 120, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 45 + }, + { + "joint": 2, + "angle": -175 + }, + { + "joint": 3, + "angle": 0 + }, + { + "joint": 4, + "angle": 80 + } + ] + }, + "legacy_answer": [ + 45, + -175, + 0, + 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-542\n- segment_count: 4\n- arm_base: (80.0, 80.0)\n- target: (159.69, 222.69)\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=110\n- joint 4: length=90\n- obstacles:\n- wall_1: type=block, pattern=warning_stripes\n part 1: x=40, y=160, width=80, height=80\n- wall_2: type=bar_vertical, pattern=warning_stripes\n part 1: x=160, 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-543.json b/lamp/data/lamp-543.json new file mode 100644 index 0000000000000000000000000000000000000000..7ddff20d7100da3d60c88066fad477aaaf13c809 --- /dev/null +++ b/lamp/data/lamp-543.json @@ -0,0 +1,100 @@ +{ + "id": "lamp-543", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 23.29, + "y": 276.93 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 120, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 240, + "width": 80, + "height": 40 + }, + { + "x": 80, + "y": 280, + "width": 80, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 75 + }, + { + "joint": 2, + "angle": 90 + } + ] + }, + "legacy_answer": [ + 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-543\n- segment_count: 2\n- arm_base: (0.0, 80.0)\n- target: (23.29, 276.93)\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=120, width=40, height=120\n- wall_2: type=stair, pattern=warning_stripes\n part 1: x=40, y=240, width=80, height=40\n part 2: x=80, y=280, 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-544.json b/lamp/data/lamp-544.json new file mode 100644 index 0000000000000000000000000000000000000000..8c958a9b28d8884d5115f09774b670fa3e24dffb --- /dev/null +++ b/lamp/data/lamp-544.json @@ -0,0 +1,99 @@ +{ + "id": "lamp-544", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": -80 + }, + "target": { + "x": -72.87, + "y": -64.09 + }, + "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": 110 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -160 + }, + { + "joint": 2, + "angle": 125 + }, + { + "joint": 3, + "angle": -130 + }, + { + "joint": 4, + "angle": 95 + } + ] + }, + "legacy_answer": [ + -160, + 125, + -130, + 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-544\n- segment_count: 4\n- arm_base: (120.0, -80.0)\n- target: (-72.87, -64.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=70\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-545.json b/lamp/data/lamp-545.json new file mode 100644 index 0000000000000000000000000000000000000000..f6673369919ee41919e5f87a5b74a453f0e60b22 --- /dev/null +++ b/lamp/data/lamp-545.json @@ -0,0 +1,90 @@ +{ + "id": "lamp-545", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 80 + }, + "target": { + "x": 87.59, + "y": 198.46 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 120, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 55 + }, + { + "joint": 2, + "angle": 85 + }, + { + "joint": 3, + "angle": -170 + } + ] + }, + "legacy_answer": [ + 55, + 85, + -170 + ], + "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-545\n- segment_count: 3\n- arm_base: (120.0, 80.0)\n- target: (87.59, 198.46)\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=70\n- obstacles:\n- wall_1: type=bar_horizontal, pattern=warning_stripes\n part 1: x=0, 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-546.json b/lamp/data/lamp-546.json new file mode 100644 index 0000000000000000000000000000000000000000..df0717b602d80615058d85ad0fadf659f5e6de59 --- /dev/null +++ b/lamp/data/lamp-546.json @@ -0,0 +1,121 @@ +{ + "id": "lamp-546", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": 40 + }, + "target": { + "x": -37.37, + "y": 185.32 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 40, + "y": 80, + "width": 40, + "height": 120 + } + ] + }, + { + "id": "wall_2", + "type": "block", + "pattern": "warning_stripes", + "parts": [ + { + "x": -80, + "y": 0, + "width": 80, + "height": 80 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 120 + }, + { + "joint": 2, + "angle": 170 + }, + { + "joint": 3, + "angle": 20 + }, + { + "joint": 4, + "angle": -155 + }, + { + "joint": 5, + "angle": 85 + } + ] + }, + "legacy_answer": [ + 120, + 170, + 20, + -155, + 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-546\n- segment_count: 5\n- arm_base: (40.0, 40.0)\n- target: (-37.37, 185.32)\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=50\n- joint 5: length=70\n- obstacles:\n- wall_1: type=bar_vertical, pattern=warning_stripes\n part 1: x=40, y=80, width=40, height=120\n- wall_2: type=block, pattern=warning_stripes\n part 1: x=-80, 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-547.json b/lamp/data/lamp-547.json new file mode 100644 index 0000000000000000000000000000000000000000..b6dbae242d20ec58ed6c921d12e421db3648cc0f --- /dev/null +++ b/lamp/data/lamp-547.json @@ -0,0 +1,103 @@ +{ + "id": "lamp-547", + "difficulty": 3, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 125.11, + "y": 84.16 + }, + "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": "bar_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 3, + "segments": [ + { + "length": 50 + }, + { + "length": 110 + }, + { + "length": 50 + } + ], + "initialAngles": [ + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": -125 + }, + { + "joint": 2, + "angle": 75 + }, + { + "joint": 3, + "angle": -25 + } + ] + }, + "legacy_answer": [ + -125, + 75, + -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-547\n- segment_count: 3\n- arm_base: (80.0, 40.0)\n- target: (125.11, 84.16)\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- 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=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-548.json b/lamp/data/lamp-548.json new file mode 100644 index 0000000000000000000000000000000000000000..df8bcc572f3bd5236308de2c583b5d9560e6afcd --- /dev/null +++ b/lamp/data/lamp-548.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-548", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 120, + "y": 120 + }, + "target": { + "x": 27.56, + "y": 189.58 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "stair", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 200, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 240, + "width": 80, + "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": 90 + }, + { + "length": 70 + }, + { + "length": 50 + }, + { + "length": 90 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 150 + }, + { + "joint": 2, + "angle": 25 + }, + { + "joint": 3, + "angle": -90 + }, + { + "joint": 4, + "angle": 150 + } + ] + }, + "legacy_answer": [ + 150, + 25, + -90, + 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-548\n- segment_count: 4\n- arm_base: (120.0, 120.0)\n- target: (27.56, 189.58)\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=90\n- obstacles:\n- wall_1: type=stair, pattern=warning_stripes\n part 1: x=0, y=200, width=80, height=40\n part 2: x=40, y=240, width=80, 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-549.json b/lamp/data/lamp-549.json new file mode 100644 index 0000000000000000000000000000000000000000..5708f374a6f2365e014f9834c7c56b9d23613df7 --- /dev/null +++ b/lamp/data/lamp-549.json @@ -0,0 +1,118 @@ +{ + "id": "lamp-549", + "difficulty": 4, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 80, + "y": 440 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 40, + "y": -40 + }, + "target": { + "x": 155.13, + "y": 65.24 + }, + "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_vertical", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 0, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 4, + "segments": [ + { + "length": 110 + }, + { + "length": 110 + }, + { + "length": 90 + }, + { + "length": 70 + } + ], + "initialAngles": [ + 0, + 0, + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 70 + }, + { + "joint": 2, + "angle": -5 + }, + { + "joint": 3, + "angle": -155 + }, + { + "joint": 4, + "angle": 45 + } + ] + }, + "legacy_answer": [ + 70, + -5, + -155, + 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-549\n- segment_count: 4\n- arm_base: (40.0, -40.0)\n- target: (155.13, 65.24)\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=90\n- joint 4: length=70\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_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-550.json b/lamp/data/lamp-550.json new file mode 100644 index 0000000000000000000000000000000000000000..7f06529a6517a10234979080311dd07f58518b5c --- /dev/null +++ b/lamp/data/lamp-550.json @@ -0,0 +1,81 @@ +{ + "id": "lamp-550", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 160, + "y": 520 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 120 + }, + "target": { + "x": -34.1, + "y": 38.42 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "type": "bar_horizontal", + "pattern": "warning_stripes", + "parts": [ + { + "x": 0, + "y": 40, + "width": 120, + "height": 40 + } + ] + } + ], + "arm": { + "segmentCount": 2, + "segments": [ + { + "length": 70 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 165 + }, + { + "joint": 2, + "angle": -115 + } + ] + }, + "legacy_answer": [ + 165, + -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-550\n- segment_count: 2\n- arm_base: (80.0, 120.0)\n- target: (-34.1, 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=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-551.json b/lamp/data/lamp-551.json new file mode 100644 index 0000000000000000000000000000000000000000..2c71e3db60688dc196505cb58f519403bb4465a3 --- /dev/null +++ b/lamp/data/lamp-551.json @@ -0,0 +1,87 @@ +{ + "id": "lamp-551", + "difficulty": 2, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 0, + "y": 80 + }, + "target": { + "x": 61.53, + "y": 186.25 + }, + "meta": { + "showDebugInfo": true, + "variant": "walls" + }, + "obstacles": [ + { + "id": "wall_1", + "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": 2, + "segments": [ + { + "length": 90 + }, + { + "length": 110 + } + ], + "initialAngles": [ + 0, + 0 + ], + "angleStep": 5, + "angleMin": -180, + "angleMax": 180 + }, + "answer": { + "actions": [ + { + "joint": 1, + "angle": 0 + }, + { + "joint": 2, + "angle": 105 + } + ] + }, + "legacy_answer": [ + 0, + 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-551\n- segment_count: 2\n- arm_base: (0.0, 80.0)\n- target: (61.53, 186.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=110\n- obstacles:\n- wall_1: 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-552.json b/lamp/data/lamp-552.json new file mode 100644 index 0000000000000000000000000000000000000000..d5e102baeaeb7de76eac4bc8bd85a8277f598f09 --- /dev/null +++ b/lamp/data/lamp-552.json @@ -0,0 +1,127 @@ +{ + "id": "lamp-552", + "difficulty": 5, + "workspace": { + "width": 800, + "height": 600, + "gridSize": 40, + "origin": { + "x": 120, + "y": 480 + } + }, + "lamp": { + "lightRadius": 24 + }, + "armBaseOffset": { + "x": 80, + "y": 40 + }, + "target": { + "x": 178.14, + "y": 119.27 + }, + "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": 160, + "width": 80, + "height": 40 + }, + { + "x": 40, + "y": 160, + "width": 40, + "height": 120 + } + ] + } + ], + "arm": { + "segmentCount": 5, + "segments": [ + { + "length": 70 + }, + { + "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": 105 + }, + { + "joint": 2, + "angle": 20 + }, + { + "joint": 3, + "angle": 80 + }, + { + "joint": 4, + "angle": 30 + }, + { + "joint": 5, + "angle": -110 + } + ] + }, + "legacy_answer": [ + 105, + 20, + 80, + 30, + -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-552\n- segment_count: 5\n- arm_base: (80.0, 40.0)\n- target: (178.14, 119.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- joint 3: length=50\n- joint 4: length=70\n- joint 5: 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- wall_2: 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." + } +}