diff --git a/cube1/data/C029.json b/cube1/data/C029.json new file mode 100644 index 0000000000000000000000000000000000000000..b145f3d0c7fb4fbe8f866c7a6da391e524361265 --- /dev/null +++ b/cube1/data/C029.json @@ -0,0 +1,214 @@ +{ + "sample_id": "C029", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> S -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "S", + "N" + ], + "observed_path_faces": [ + { + "patternId": "A", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C029_path_sequence.png" + }, + "metadata": { + "level_id": 29, + "name": "Reconstruct 029", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-029.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "S", + "P", + "arrow_right", + "S", + "A", + "E" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "S", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "E", + "rotation": 0 + }, + "FRONT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "S", + "rotation": 90 + }, + "LEFT": { + "patternId": "A", + "rotation": 90 + }, + "RIGHT": { + "patternId": "arrow_right", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "E", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "A", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "P", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "A", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "FRONT", + "LEFT" + ], + "required_slots": [ + "LEFT", + "FRONT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "A", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "A", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C029\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> S -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=A, rotation=0, flipVertical=true\n- step 2: patternId=P, rotation=180, flipVertical=true\n- step 3: patternId=A, rotation=0, flipVertical=true\n- allowed patternId values for this task: A, P, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C033.json b/cube1/data/C033.json new file mode 100644 index 0000000000000000000000000000000000000000..4e9d2ca66021e2b2cd7a33e87b2ec020e0f33013 --- /dev/null +++ b/cube1/data/C033.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C033", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C033_path_sequence.png" + }, + "metadata": { + "level_id": 33, + "name": "Reconstruct 033", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-033.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "5", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "5", + "X", + "3", + "K", + "I", + "E" + ], + "start_x": 2, + "start_y": 3, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "5", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "E", + "rotation": 270 + }, + "FRONT": { + "patternId": "X", + "rotation": 180 + }, + "BACK": { + "patternId": "K", + "rotation": 90 + }, + "LEFT": { + "patternId": "I", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "E", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "K", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "I", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "5", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "TOP" + ], + "required_slots": [ + "BACK", + "LEFT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "5", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "I", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "5", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "I", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C033\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=K, rotation=270, flipVertical=true\n- step 2: patternId=I, rotation=180, flipVertical=true\n- step 3: patternId=5, rotation=0, flipVertical=true\n- allowed patternId values for this task: K, I, 5, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C034.json b/cube1/data/C034.json new file mode 100644 index 0000000000000000000000000000000000000000..19148ca527229e18032d35c078d7970c0bd9470c --- /dev/null +++ b/cube1/data/C034.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C034", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C034_path_sequence.png" + }, + "metadata": { + "level_id": 34, + "name": "Reconstruct 034", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-034.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "U", + "P", + "circle", + "V", + "H", + "diamond" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "U", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 270 + }, + "FRONT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "V", + "rotation": 90 + }, + "LEFT": { + "patternId": "H", + "rotation": 270 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "diamond", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "H", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "U", + "rotation": 180, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP" + ], + "required_slots": [ + "LEFT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "U", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "H", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "U", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "H", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C034\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=H, rotation=180, flipVertical=true\n- step 2: patternId=U, rotation=180, flipVertical=true\n- allowed patternId values for this task: H, U, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C035.json b/cube1/data/C035.json new file mode 100644 index 0000000000000000000000000000000000000000..3dd991c7d9947d754322d2d89cd356e4984e6859 --- /dev/null +++ b/cube1/data/C035.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C035", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C035_path_sequence.png" + }, + "metadata": { + "level_id": 35, + "name": "Reconstruct 035", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-035.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_right", + "arrow_left", + "K", + "circle", + "Z", + "heart" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_right", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 270 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BACK": { + "patternId": "circle", + "rotation": 0 + }, + "LEFT": { + "patternId": "Z", + "rotation": 270 + }, + "RIGHT": { + "patternId": "K", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "Z", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_left", + "rotation": 90, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "FRONT" + ], + "required_slots": [ + "LEFT", + "FRONT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "Z", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "Z", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C035\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Z, rotation=180, flipVertical=true\n- step 2: patternId=arrow_left, rotation=90, flipVertical=true\n- allowed patternId values for this task: Z, arrow_left, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C036.json b/cube1/data/C036.json new file mode 100644 index 0000000000000000000000000000000000000000..26cd72e9d75d8879f68cef4cde7e338c69e5f722 --- /dev/null +++ b/cube1/data/C036.json @@ -0,0 +1,214 @@ +{ + "sample_id": "C036", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> N -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N", + "S" + ], + "observed_path_faces": [ + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C036_path_sequence.png" + }, + "metadata": { + "level_id": 36, + "name": "Reconstruct 036", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-036.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "smile", + "3", + "G", + "arrow_up", + "circle", + "smile" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "smile", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 90 + }, + "FRONT": { + "patternId": "3", + "rotation": 90 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 270 + }, + "LEFT": { + "patternId": "circle", + "rotation": 90 + }, + "RIGHT": { + "patternId": "G", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "smile", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "arrow_up", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 0, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "BACK", + "LEFT" + ], + "required_slots": [ + "LEFT", + "BACK" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 90 + }, + "LEFT": { + "patternId": "circle", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 90 + }, + "LEFT": { + "patternId": "circle", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C036\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=circle, rotation=0, flipVertical=true\n- step 2: patternId=arrow_up, rotation=180, flipVertical=true\n- step 3: patternId=circle, rotation=0, flipVertical=true\n- allowed patternId values for this task: circle, arrow_up, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C037.json b/cube1/data/C037.json new file mode 100644 index 0000000000000000000000000000000000000000..fb0465c2b535fcdb271c818348b6b928bb9a074b --- /dev/null +++ b/cube1/data/C037.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C037", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C037_path_sequence.png" + }, + "metadata": { + "level_id": 37, + "name": "Reconstruct 037", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-037.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "3", + "B", + "N", + "H", + "2", + "5" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "3", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "5", + "rotation": 90 + }, + "FRONT": { + "patternId": "B", + "rotation": 90 + }, + "BACK": { + "patternId": "H", + "rotation": 90 + }, + "LEFT": { + "patternId": "2", + "rotation": 180 + }, + "RIGHT": { + "patternId": "N", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "5", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "H", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "2", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT" + ], + "required_slots": [ + "BACK", + "LEFT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "H", + "rotation": 270 + }, + "LEFT": { + "patternId": "2", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "H", + "rotation": 270 + }, + "LEFT": { + "patternId": "2", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C037\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=H, rotation=270, flipVertical=true\n- step 2: patternId=2, rotation=0, flipVertical=true\n- allowed patternId values for this task: H, 2, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C038.json b/cube1/data/C038.json new file mode 100644 index 0000000000000000000000000000000000000000..c0f74482b3037d3dfd9fa64fa5ca4323da000314 --- /dev/null +++ b/cube1/data/C038.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C038", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "Q", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C038_path_sequence.png" + }, + "metadata": { + "level_id": 38, + "name": "Reconstruct 038", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-038.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "A", + "H", + "P", + "Q", + "N", + "smile" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "A", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + }, + "FRONT": { + "patternId": "H", + "rotation": 270 + }, + "BACK": { + "patternId": "Q", + "rotation": 90 + }, + "LEFT": { + "patternId": "N", + "rotation": 270 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "smile", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "Q", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "P", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "RIGHT" + ], + "required_slots": [ + "BACK", + "RIGHT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "Q", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "Q", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C038\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Q, rotation=270, flipVertical=true\n- step 2: patternId=P, rotation=180, flipVertical=true\n- allowed patternId values for this task: Q, P, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C039.json b/cube1/data/C039.json new file mode 100644 index 0000000000000000000000000000000000000000..6d7c44744ff7558d1231d17137ff3131576ecd02 --- /dev/null +++ b/cube1/data/C039.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C039", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C039_path_sequence.png" + }, + "metadata": { + "level_id": 39, + "name": "Reconstruct 039", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-039.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "G", + "E", + "5", + "B", + "I", + "Z" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "G", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 270 + }, + "FRONT": { + "patternId": "E", + "rotation": 180 + }, + "BACK": { + "patternId": "B", + "rotation": 180 + }, + "LEFT": { + "patternId": "I", + "rotation": 90 + }, + "RIGHT": { + "patternId": "5", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "Z", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "I", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "B", + "rotation": 90, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "BACK" + ], + "required_slots": [ + "LEFT", + "BACK" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 0 + }, + "LEFT": { + "patternId": "I", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 0 + }, + "LEFT": { + "patternId": "I", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C039\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=I, rotation=0, flipVertical=true\n- step 2: patternId=B, rotation=90, flipVertical=true\n- allowed patternId values for this task: I, B, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C040.json b/cube1/data/C040.json new file mode 100644 index 0000000000000000000000000000000000000000..10ebe2f98c0bf83eef8c9f3a35e6aa9c7b04b209 --- /dev/null +++ b/cube1/data/C040.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C040", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C040_path_sequence.png" + }, + "metadata": { + "level_id": 40, + "name": "Reconstruct 040", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-040.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "heart", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "heart", + "W", + "1", + "I", + "smile", + "I" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "heart", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "I", + "rotation": 180 + }, + "FRONT": { + "patternId": "W", + "rotation": 270 + }, + "BACK": { + "patternId": "I", + "rotation": 180 + }, + "LEFT": { + "patternId": "smile", + "rotation": 180 + }, + "RIGHT": { + "patternId": "1", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "I", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "I", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "smile", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT" + ], + "required_slots": [ + "BACK", + "LEFT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "I", + "rotation": 0 + }, + "LEFT": { + "patternId": "smile", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "I", + "rotation": 0 + }, + "LEFT": { + "patternId": "smile", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C040\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=I, rotation=0, flipVertical=true\n- step 2: patternId=smile, rotation=0, flipVertical=true\n- allowed patternId values for this task: I, smile, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C041.json b/cube1/data/C041.json new file mode 100644 index 0000000000000000000000000000000000000000..6f91d144b6d9eadb3735772ae5340cb42ac10d2b --- /dev/null +++ b/cube1/data/C041.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C041", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C041_path_sequence.png" + }, + "metadata": { + "level_id": 41, + "name": "Reconstruct 041", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-041.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "star", + "6", + "N", + "E", + "Y" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "Y", + "rotation": 270 + }, + "FRONT": { + "patternId": "star", + "rotation": 0 + }, + "BACK": { + "patternId": "N", + "rotation": 90 + }, + "LEFT": { + "patternId": "E", + "rotation": 180 + }, + "RIGHT": { + "patternId": "6", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "Y", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "6", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "star", + "rotation": 90, + "x": 2, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT" + ], + "required_slots": [ + "RIGHT", + "FRONT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C041\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=0, flipVertical=true\n- step 2: patternId=star, rotation=90, flipVertical=true\n- allowed patternId values for this task: 6, star, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C042.json b/cube1/data/C042.json new file mode 100644 index 0000000000000000000000000000000000000000..7b537f3ee8301d13bcf96515de00ddf7d001ca95 --- /dev/null +++ b/cube1/data/C042.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C042", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W" + ], + "observed_path_faces": [ + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C042_path_sequence.png" + }, + "metadata": { + "level_id": 42, + "name": "Reconstruct 042", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-042.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "K", + "arrow_left", + "K", + "R", + "star", + "M" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "K", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "M", + "rotation": 180 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BACK": { + "patternId": "R", + "rotation": 0 + }, + "LEFT": { + "patternId": "star", + "rotation": 270 + }, + "RIGHT": { + "patternId": "K", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "M", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "arrow_left", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "star", + "rotation": 270, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT" + ], + "required_slots": [ + "FRONT", + "LEFT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "star", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "star", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C042\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=arrow_left, rotation=90, flipVertical=true\n- step 2: patternId=star, rotation=270, flipVertical=true\n- allowed patternId values for this task: arrow_left, star, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C043.json b/cube1/data/C043.json new file mode 100644 index 0000000000000000000000000000000000000000..dd8905e3f19f54d54e4e769943fb826d5978e8ca --- /dev/null +++ b/cube1/data/C043.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C043", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C043_path_sequence.png" + }, + "metadata": { + "level_id": 43, + "name": "Reconstruct 043", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-043.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "2", + "9", + "S", + "P", + "Y", + "D" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "2", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 270 + }, + "FRONT": { + "patternId": "9", + "rotation": 0 + }, + "BACK": { + "patternId": "P", + "rotation": 90 + }, + "LEFT": { + "patternId": "Y", + "rotation": 180 + }, + "RIGHT": { + "patternId": "S", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "D", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "P", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "S", + "rotation": 270, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "RIGHT" + ], + "required_slots": [ + "BACK", + "RIGHT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "P", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "S", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "P", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "S", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C043\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=P, rotation=270, flipVertical=true\n- step 2: patternId=S, rotation=270, flipVertical=true\n- allowed patternId values for this task: P, S, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C044.json b/cube1/data/C044.json new file mode 100644 index 0000000000000000000000000000000000000000..77d4ffc599d24dc40456b46292f8634d64aae588 --- /dev/null +++ b/cube1/data/C044.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C044", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C044_path_sequence.png" + }, + "metadata": { + "level_id": 44, + "name": "Reconstruct 044", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-044.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "heart", + "arrow_up", + "7", + "1", + "smile", + "heart" + ], + "start_x": 4, + "start_y": 1, + "grid_width": 6, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "heart", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_up", + "rotation": 0 + }, + "BACK": { + "patternId": "1", + "rotation": 90 + }, + "LEFT": { + "patternId": "smile", + "rotation": 270 + }, + "RIGHT": { + "patternId": "7", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 90, + "x": 4, + "y": 1 + }, + { + "patternId": "smile", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "heart", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "7", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "TOP", + "RIGHT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "heart", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "smile", + "rotation": 0 + }, + "RIGHT": { + "patternId": "7", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "heart", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "smile", + "rotation": 0 + }, + "RIGHT": { + "patternId": "7", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C044\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=smile, rotation=180, flipVertical=true\n- step 2: patternId=heart, rotation=180, flipVertical=true\n- step 3: patternId=7, rotation=0, flipVertical=true\n- allowed patternId values for this task: smile, heart, 7, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C045.json b/cube1/data/C045.json new file mode 100644 index 0000000000000000000000000000000000000000..4e188900192b7bdf8413261ddd7edc0764d34fa3 --- /dev/null +++ b/cube1/data/C045.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C045", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "U", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C045_path_sequence.png" + }, + "metadata": { + "level_id": 45, + "name": "Reconstruct 045", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-045.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "circle", + "R", + "U", + "D", + "7", + "P" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 5, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "circle", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 270 + }, + "FRONT": { + "patternId": "R", + "rotation": 180 + }, + "BACK": { + "patternId": "D", + "rotation": 180 + }, + "LEFT": { + "patternId": "7", + "rotation": 90 + }, + "RIGHT": { + "patternId": "U", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "P", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "U", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "D", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "TOP" + ], + "required_slots": [ + "RIGHT", + "BACK", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "circle", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "D", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "U", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "circle", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "D", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "U", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C045\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=U, rotation=270, flipVertical=true\n- step 2: patternId=D, rotation=270, flipVertical=true\n- step 3: patternId=circle, rotation=180, flipVertical=true\n- allowed patternId values for this task: U, D, circle, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C046.json b/cube1/data/C046.json new file mode 100644 index 0000000000000000000000000000000000000000..f54b5923f21c0f357f91ce611216301712ba8b00 --- /dev/null +++ b/cube1/data/C046.json @@ -0,0 +1,214 @@ +{ + "sample_id": "C046", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "E" + ], + "observed_path_faces": [ + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C046_path_sequence.png" + }, + "metadata": { + "level_id": 46, + "name": "Reconstruct 046", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-046.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_left", + "W", + "arrow_up", + "6", + "C", + "I" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "I", + "rotation": 0 + }, + "FRONT": { + "patternId": "W", + "rotation": 180 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "RIGHT": { + "patternId": "arrow_up", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "I", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "C", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "arrow_left", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "C", + "rotation": 0, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "LEFT" + ], + "required_slots": [ + "LEFT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C046\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=C, rotation=0, flipVertical=true\n- step 2: patternId=arrow_left, rotation=270, flipVertical=true\n- step 3: patternId=C, rotation=0, flipVertical=true\n- allowed patternId values for this task: C, arrow_left, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C047.json b/cube1/data/C047.json new file mode 100644 index 0000000000000000000000000000000000000000..043be18ab8e3f74704c19e7a208aa1f1ff744c0d --- /dev/null +++ b/cube1/data/C047.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C047", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C047_path_sequence.png" + }, + "metadata": { + "level_id": 47, + "name": "Reconstruct 047", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-047.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "N", + "heart", + "B", + "arrow_up", + "H", + "L" + ], + "start_x": 3, + "start_y": 2, + "grid_width": 5, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "L", + "rotation": 180 + }, + "FRONT": { + "patternId": "heart", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 270 + }, + "LEFT": { + "patternId": "H", + "rotation": 90 + }, + "RIGHT": { + "patternId": "B", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "L", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "H", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "N", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "arrow_up", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "BACK" + ], + "required_slots": [ + "LEFT", + "TOP", + "BACK" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 90 + }, + "LEFT": { + "patternId": "H", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 90 + }, + "LEFT": { + "patternId": "H", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C047\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=H, rotation=0, flipVertical=true\n- step 2: patternId=N, rotation=180, flipVertical=true\n- step 3: patternId=arrow_up, rotation=270, flipVertical=true\n- allowed patternId values for this task: H, N, arrow_up, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C048.json b/cube1/data/C048.json new file mode 100644 index 0000000000000000000000000000000000000000..046bf218d89d096ea23f51eb22bcfa4e2f89fe97 --- /dev/null +++ b/cube1/data/C048.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C048", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C048_path_sequence.png" + }, + "metadata": { + "level_id": 48, + "name": "Reconstruct 048", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-048.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_left", + "smile", + "arrow_up", + "plus", + "A", + "smile" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + }, + "FRONT": { + "patternId": "smile", + "rotation": 180 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "A", + "rotation": 270 + }, + "RIGHT": { + "patternId": "arrow_up", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "smile", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "smile", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "A", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 90, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "BACK" + ], + "required_slots": [ + "FRONT", + "LEFT", + "BACK" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "smile", + "rotation": 180 + }, + "BACK": { + "patternId": "plus", + "rotation": 270 + }, + "LEFT": { + "patternId": "A", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "smile", + "rotation": 180 + }, + "BACK": { + "patternId": "plus", + "rotation": 270 + }, + "LEFT": { + "patternId": "A", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C048\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=smile, rotation=180, flipVertical=true\n- step 2: patternId=A, rotation=270, flipVertical=true\n- step 3: patternId=plus, rotation=90, flipVertical=true\n- allowed patternId values for this task: smile, A, plus, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C049.json b/cube1/data/C049.json new file mode 100644 index 0000000000000000000000000000000000000000..7c55d0c727e06607b0b743290e5f79edfb2efd18 --- /dev/null +++ b/cube1/data/C049.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C049", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C049_path_sequence.png" + }, + "metadata": { + "level_id": 49, + "name": "Reconstruct 049", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-049.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "V", + "D", + "Y", + "arrow_left", + "Z", + "V" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "V", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 270 + }, + "FRONT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_left", + "rotation": 90 + }, + "LEFT": { + "patternId": "Z", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "V", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "D", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "V", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "Y", + "rotation": 180, + "x": 2, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "TOP", + "RIGHT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "V", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "V", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C049\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=D, rotation=0, flipVertical=true\n- step 2: patternId=V, rotation=180, flipVertical=true\n- step 3: patternId=Y, rotation=180, flipVertical=true\n- allowed patternId values for this task: D, V, Y, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C050.json b/cube1/data/C050.json new file mode 100644 index 0000000000000000000000000000000000000000..772c62d7aead575a9bb5f6896a2cbbd8d0785b97 --- /dev/null +++ b/cube1/data/C050.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C050", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C050_path_sequence.png" + }, + "metadata": { + "level_id": 50, + "name": "Reconstruct 050", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-050.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "smile", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "smile", + "T", + "square", + "3", + "P", + "8" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "smile", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 0 + }, + "FRONT": { + "patternId": "T", + "rotation": 180 + }, + "BACK": { + "patternId": "3", + "rotation": 0 + }, + "LEFT": { + "patternId": "P", + "rotation": 270 + }, + "RIGHT": { + "patternId": "square", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "8", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "P", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "8", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "3", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "BOTTOM", + "BACK" + ], + "required_slots": [ + "LEFT", + "BOTTOM", + "BACK" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "3", + "rotation": 180 + }, + "LEFT": { + "patternId": "P", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "3", + "rotation": 180 + }, + "LEFT": { + "patternId": "P", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C050\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=P, rotation=180, flipVertical=true\n- step 2: patternId=8, rotation=0, flipVertical=true\n- step 3: patternId=3, rotation=180, flipVertical=true\n- allowed patternId values for this task: P, 8, 3, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C051.json b/cube1/data/C051.json new file mode 100644 index 0000000000000000000000000000000000000000..15a7d10e36acb85d3f89f057d568bb3031b0d4ac --- /dev/null +++ b/cube1/data/C051.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C051", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C051_path_sequence.png" + }, + "metadata": { + "level_id": 51, + "name": "Reconstruct 051", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-051.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "plus", + "L", + "plus", + "star", + "C" + ], + "start_x": 4, + "start_y": 1, + "grid_width": 6, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 270 + }, + "FRONT": { + "patternId": "plus", + "rotation": 270 + }, + "BACK": { + "patternId": "plus", + "rotation": 0 + }, + "LEFT": { + "patternId": "star", + "rotation": 180 + }, + "RIGHT": { + "patternId": "L", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "C", + "rotation": 270, + "x": 4, + "y": 1 + }, + { + "patternId": "star", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "6", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "L", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "TOP", + "RIGHT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "6", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "star", + "rotation": 270 + }, + "RIGHT": { + "patternId": "L", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "6", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "star", + "rotation": 270 + }, + "RIGHT": { + "patternId": "L", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C051\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=star, rotation=90, flipVertical=true\n- step 2: patternId=6, rotation=180, flipVertical=true\n- step 3: patternId=L, rotation=270, flipVertical=true\n- allowed patternId values for this task: star, 6, L, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C052.json b/cube1/data/C052.json new file mode 100644 index 0000000000000000000000000000000000000000..8d8cea4e829c7312b5d2468f6f9da65270eeb917 --- /dev/null +++ b/cube1/data/C052.json @@ -0,0 +1,214 @@ +{ + "sample_id": "C052", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> E -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "W" + ], + "observed_path_faces": [ + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C052_path_sequence.png" + }, + "metadata": { + "level_id": 52, + "name": "Reconstruct 052", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-052.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "square", + "arrow_down", + "P", + "W", + "U", + "square" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "square", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "BACK": { + "patternId": "W", + "rotation": 180 + }, + "LEFT": { + "patternId": "U", + "rotation": 90 + }, + "RIGHT": { + "patternId": "P", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "square", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "P", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "FRONT" + ], + "required_slots": [ + "FRONT", + "RIGHT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C052\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=arrow_down, rotation=90, flipVertical=true\n- step 2: patternId=P, rotation=90, flipVertical=true\n- step 3: patternId=arrow_down, rotation=90, flipVertical=true\n- allowed patternId values for this task: arrow_down, P, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C053.json b/cube1/data/C053.json new file mode 100644 index 0000000000000000000000000000000000000000..ea8b269c31f6592fde630cb684d24078d875761e --- /dev/null +++ b/cube1/data/C053.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C053", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C053_path_sequence.png" + }, + "metadata": { + "level_id": 53, + "name": "Reconstruct 053", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-053.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "9", + "heart", + "arrow_right", + "9", + "L", + "C" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 3, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "9", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 270 + }, + "FRONT": { + "patternId": "heart", + "rotation": 270 + }, + "BACK": { + "patternId": "9", + "rotation": 180 + }, + "LEFT": { + "patternId": "L", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_right", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "C", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "heart", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "9", + "rotation": 0, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "TOP" + ], + "required_slots": [ + "FRONT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "9", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "heart", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "9", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "heart", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C053\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=heart, rotation=270, flipVertical=true\n- step 2: patternId=9, rotation=0, flipVertical=true\n- allowed patternId values for this task: heart, 9, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C054.json b/cube1/data/C054.json new file mode 100644 index 0000000000000000000000000000000000000000..babd2ea42218b482b592ce783cf97a62776af95a --- /dev/null +++ b/cube1/data/C054.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C054", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C054_path_sequence.png" + }, + "metadata": { + "level_id": 54, + "name": "Reconstruct 054", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-054.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "M", + "U", + "star", + "M", + "5", + "3" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "M", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "3", + "rotation": 270 + }, + "FRONT": { + "patternId": "U", + "rotation": 180 + }, + "BACK": { + "patternId": "M", + "rotation": 0 + }, + "LEFT": { + "patternId": "5", + "rotation": 180 + }, + "RIGHT": { + "patternId": "star", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "3", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "U", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "5", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "M", + "rotation": 270, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "TOP" + ], + "required_slots": [ + "FRONT", + "LEFT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "M", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "U", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "5", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "M", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "U", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "5", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C054\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=U, rotation=180, flipVertical=true\n- step 2: patternId=5, rotation=180, flipVertical=true\n- step 3: patternId=M, rotation=270, flipVertical=true\n- allowed patternId values for this task: U, 5, M, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C055.json b/cube1/data/C055.json new file mode 100644 index 0000000000000000000000000000000000000000..372b4635a827e3b9b90d2b3cc2378383fabef602 --- /dev/null +++ b/cube1/data/C055.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C055", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N", + "N" + ], + "observed_path_faces": [ + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C055_path_sequence.png" + }, + "metadata": { + "level_id": 55, + "name": "Reconstruct 055", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-055.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "7", + "E", + "K", + "9", + "9", + "heart" + ], + "start_x": 2, + "start_y": 3, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "7", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 270 + }, + "FRONT": { + "patternId": "E", + "rotation": 90 + }, + "BACK": { + "patternId": "9", + "rotation": 270 + }, + "LEFT": { + "patternId": "9", + "rotation": 90 + }, + "RIGHT": { + "patternId": "K", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "9", + "rotation": 0, + "x": 1, + "y": 3 + }, + { + "patternId": "9", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "K", + "rotation": 180, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "BACK", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "BACK", + "RIGHT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "9", + "rotation": 90 + }, + "LEFT": { + "patternId": "9", + "rotation": 180 + }, + "RIGHT": { + "patternId": "K", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "9", + "rotation": 90 + }, + "LEFT": { + "patternId": "9", + "rotation": 180 + }, + "RIGHT": { + "patternId": "K", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C055\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=9, rotation=0, flipVertical=true\n- step 2: patternId=9, rotation=180, flipVertical=true\n- step 3: patternId=K, rotation=180, flipVertical=true\n- allowed patternId values for this task: 9, K, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C056.json b/cube1/data/C056.json new file mode 100644 index 0000000000000000000000000000000000000000..724ec5e30c84fd630d1d07c24171b2d7ad4c182c --- /dev/null +++ b/cube1/data/C056.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C056", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C056_path_sequence.png" + }, + "metadata": { + "level_id": 56, + "name": "Reconstruct 056", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-056.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "square", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "square", + "arrow_left", + "J", + "star", + "square", + "6" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "square", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 270 + }, + "FRONT": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BACK": { + "patternId": "star", + "rotation": 0 + }, + "LEFT": { + "patternId": "square", + "rotation": 90 + }, + "RIGHT": { + "patternId": "J", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "6", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "star", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "J", + "rotation": 270, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "RIGHT" + ], + "required_slots": [ + "BACK", + "RIGHT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "star", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "star", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C056\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=star, rotation=180, flipVertical=true\n- step 2: patternId=J, rotation=270, flipVertical=true\n- allowed patternId values for this task: star, J, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C057.json b/cube1/data/C057.json new file mode 100644 index 0000000000000000000000000000000000000000..1d7008fc17296ab67d401d52071bcf885438786c --- /dev/null +++ b/cube1/data/C057.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C057", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "W" + ], + "observed_path_faces": [ + { + "patternId": "J", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C057_path_sequence.png" + }, + "metadata": { + "level_id": 57, + "name": "Reconstruct 057", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-057.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "4", + "7", + "J", + "plus", + "arrow_left", + "R" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "4", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "7", + "rotation": 0 + }, + "BACK": { + "patternId": "plus", + "rotation": 0 + }, + "LEFT": { + "patternId": "arrow_left", + "rotation": 270 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "R", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "J", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "7", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "R", + "rotation": 270, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "7", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "J", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "7", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "J", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C057\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=J, rotation=90, flipVertical=true\n- step 2: patternId=7, rotation=90, flipVertical=true\n- step 3: patternId=R, rotation=270, flipVertical=true\n- allowed patternId values for this task: J, 7, R, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C058.json b/cube1/data/C058.json new file mode 100644 index 0000000000000000000000000000000000000000..dea4cd8a8720b322626aff0f35642b1452829376 --- /dev/null +++ b/cube1/data/C058.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C058", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C058_path_sequence.png" + }, + "metadata": { + "level_id": 58, + "name": "Reconstruct 058", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-058.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "J", + "arrow_down", + "8", + "5", + "G", + "heart" + ], + "start_x": 2, + "start_y": 3, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "J", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 180 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 270 + }, + "BACK": { + "patternId": "5", + "rotation": 270 + }, + "LEFT": { + "patternId": "G", + "rotation": 90 + }, + "RIGHT": { + "patternId": "8", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "5", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "G", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "J", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "TOP" + ], + "required_slots": [ + "BACK", + "LEFT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "J", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 90 + }, + "LEFT": { + "patternId": "G", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "J", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 90 + }, + "LEFT": { + "patternId": "G", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C058\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=5, rotation=90, flipVertical=true\n- step 2: patternId=G, rotation=270, flipVertical=true\n- step 3: patternId=J, rotation=270, flipVertical=true\n- allowed patternId values for this task: 5, G, J, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C059.json b/cube1/data/C059.json new file mode 100644 index 0000000000000000000000000000000000000000..678f23bc5d50960beb3919a06e3ab7446a67277f --- /dev/null +++ b/cube1/data/C059.json @@ -0,0 +1,214 @@ +{ + "sample_id": "C059", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> E -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E", + "W" + ], + "observed_path_faces": [ + { + "patternId": "U", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C059_path_sequence.png" + }, + "metadata": { + "level_id": 59, + "name": "Reconstruct 059", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-059.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "diamond", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "diamond", + "G", + "U", + "9", + "A", + "heart" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "diamond", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 0 + }, + "FRONT": { + "patternId": "G", + "rotation": 270 + }, + "BACK": { + "patternId": "9", + "rotation": 180 + }, + "LEFT": { + "patternId": "A", + "rotation": 270 + }, + "RIGHT": { + "patternId": "U", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "U", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "diamond", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "U", + "rotation": 270, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "RIGHT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "diamond", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "U", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "diamond", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "U", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C059\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=U, rotation=270, flipVertical=true\n- step 2: patternId=diamond, rotation=0, flipVertical=true\n- step 3: patternId=U, rotation=270, flipVertical=true\n- allowed patternId values for this task: U, diamond, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C060.json b/cube1/data/C060.json new file mode 100644 index 0000000000000000000000000000000000000000..d5693dd13d740f73005dedbcff21169681a1eb68 --- /dev/null +++ b/cube1/data/C060.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C060", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C060_path_sequence.png" + }, + "metadata": { + "level_id": 60, + "name": "Reconstruct 060", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-060.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "F", + "W", + "3", + "M", + "star", + "J" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "F", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "W", + "rotation": 0 + }, + "BACK": { + "patternId": "M", + "rotation": 180 + }, + "LEFT": { + "patternId": "star", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "J", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "3", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "M", + "rotation": 270, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK" + ], + "required_slots": [ + "RIGHT", + "BACK" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "M", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "M", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C060\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=3, rotation=270, flipVertical=true\n- step 2: patternId=M, rotation=270, flipVertical=true\n- allowed patternId values for this task: 3, M, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C061.json b/cube1/data/C061.json new file mode 100644 index 0000000000000000000000000000000000000000..701a342b28950836fc64c3ae8a23ff9934a03bb8 --- /dev/null +++ b/cube1/data/C061.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C061", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "D", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C061_path_sequence.png" + }, + "metadata": { + "level_id": 61, + "name": "Reconstruct 061", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-061.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Z", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Z", + "Q", + "C", + "arrow_up", + "D", + "heart" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "Z", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 270 + }, + "FRONT": { + "patternId": "Q", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 0 + }, + "LEFT": { + "patternId": "D", + "rotation": 270 + }, + "RIGHT": { + "patternId": "C", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "D", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "Z", + "rotation": 180, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP" + ], + "required_slots": [ + "LEFT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "Z", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "D", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Z", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "D", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C061\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=D, rotation=180, flipVertical=true\n- step 2: patternId=Z, rotation=180, flipVertical=true\n- allowed patternId values for this task: D, Z, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C062.json b/cube1/data/C062.json new file mode 100644 index 0000000000000000000000000000000000000000..37371adb3e30d4aa08ba3884504498d3352884d5 --- /dev/null +++ b/cube1/data/C062.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C062", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C062_path_sequence.png" + }, + "metadata": { + "level_id": 62, + "name": "Reconstruct 062", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-062.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "L", + "F", + "C", + "7", + "arrow_left", + "triangle" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "L", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "triangle", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 0 + }, + "BACK": { + "patternId": "7", + "rotation": 180 + }, + "LEFT": { + "patternId": "arrow_left", + "rotation": 180 + }, + "RIGHT": { + "patternId": "C", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "triangle", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "C", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "L", + "rotation": 270, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "L", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "C", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "L", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "C", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C062\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=C, rotation=0, flipVertical=true\n- step 2: patternId=L, rotation=270, flipVertical=true\n- allowed patternId values for this task: C, L, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C063.json b/cube1/data/C063.json new file mode 100644 index 0000000000000000000000000000000000000000..d02d80926040a100de09856aa052678aa3cc9eaa --- /dev/null +++ b/cube1/data/C063.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C063", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "N" + ], + "observed_path_faces": [ + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C063_path_sequence.png" + }, + "metadata": { + "level_id": 63, + "name": "Reconstruct 063", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-063.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "H", + "O", + "K", + "triangle", + "circle", + "T" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 3, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "H", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 270 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "triangle", + "rotation": 0 + }, + "LEFT": { + "patternId": "circle", + "rotation": 270 + }, + "RIGHT": { + "patternId": "K", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "T", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "triangle", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "H", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "TOP" + ], + "required_slots": [ + "BACK", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "H", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "triangle", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "H", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "triangle", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C063\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=triangle, rotation=180, flipVertical=true\n- step 2: patternId=H, rotation=0, flipVertical=true\n- allowed patternId values for this task: triangle, H, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C064.json b/cube1/data/C064.json new file mode 100644 index 0000000000000000000000000000000000000000..569d7fc4c2080906a887339d40572271a4f10475 --- /dev/null +++ b/cube1/data/C064.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C064", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C064_path_sequence.png" + }, + "metadata": { + "level_id": 64, + "name": "Reconstruct 064", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-064.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "O", + "A", + "arrow_up", + "S", + "W", + "R" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "O", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 270 + }, + "BACK": { + "patternId": "S", + "rotation": 90 + }, + "LEFT": { + "patternId": "W", + "rotation": 270 + }, + "RIGHT": { + "patternId": "arrow_up", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "R", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "A", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "W", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "O", + "rotation": 180, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "TOP" + ], + "required_slots": [ + "FRONT", + "LEFT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "O", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "A", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "W", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "O", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "A", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "W", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C064\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=A, rotation=270, flipVertical=true\n- step 2: patternId=W, rotation=270, flipVertical=true\n- step 3: patternId=O, rotation=180, flipVertical=true\n- allowed patternId values for this task: A, W, O, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C065.json b/cube1/data/C065.json new file mode 100644 index 0000000000000000000000000000000000000000..5c3f65470fb8f377968c4bb2e7ba87d7a1249081 --- /dev/null +++ b/cube1/data/C065.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C065", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "Z", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C065_path_sequence.png" + }, + "metadata": { + "level_id": 65, + "name": "Reconstruct 065", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-065.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "H", + "S", + "Z", + "4", + "L", + "C" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "H", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 90 + }, + "FRONT": { + "patternId": "S", + "rotation": 180 + }, + "BACK": { + "patternId": "4", + "rotation": 180 + }, + "LEFT": { + "patternId": "L", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Z", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "C", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "Z", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "H", + "rotation": 270, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "H", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Z", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "H", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Z", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C065\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Z, rotation=0, flipVertical=true\n- step 2: patternId=H, rotation=270, flipVertical=true\n- allowed patternId values for this task: Z, H, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C066.json b/cube1/data/C066.json new file mode 100644 index 0000000000000000000000000000000000000000..f79887126c3cbcbdcce3beba8c24f1445a443be8 --- /dev/null +++ b/cube1/data/C066.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C066", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "N" + ], + "observed_path_faces": [ + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C066_path_sequence.png" + }, + "metadata": { + "level_id": 66, + "name": "Reconstruct 066", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-066.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Q", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Q", + "A", + "R", + "B", + "V", + "triangle" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "Q", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "triangle", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 90 + }, + "BACK": { + "patternId": "B", + "rotation": 90 + }, + "LEFT": { + "patternId": "V", + "rotation": 180 + }, + "RIGHT": { + "patternId": "R", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "triangle", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "R", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "B", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "V", + "rotation": 270, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "LEFT" + ], + "required_slots": [ + "RIGHT", + "BACK", + "LEFT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 270 + }, + "LEFT": { + "patternId": "V", + "rotation": 270 + }, + "RIGHT": { + "patternId": "R", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 270 + }, + "LEFT": { + "patternId": "V", + "rotation": 270 + }, + "RIGHT": { + "patternId": "R", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C066\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=R, rotation=90, flipVertical=true\n- step 2: patternId=B, rotation=180, flipVertical=true\n- step 3: patternId=V, rotation=270, flipVertical=true\n- allowed patternId values for this task: R, B, V, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C067.json b/cube1/data/C067.json new file mode 100644 index 0000000000000000000000000000000000000000..03dfb8dd9be26d7fe3083c216487044c2061898c --- /dev/null +++ b/cube1/data/C067.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C067", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C067_path_sequence.png" + }, + "metadata": { + "level_id": 67, + "name": "Reconstruct 067", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-067.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "9", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "9", + "1", + "B", + "Y", + "1", + "F" + ], + "start_x": 2, + "start_y": 3, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "9", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 180 + }, + "FRONT": { + "patternId": "1", + "rotation": 0 + }, + "BACK": { + "patternId": "Y", + "rotation": 270 + }, + "LEFT": { + "patternId": "1", + "rotation": 0 + }, + "RIGHT": { + "patternId": "B", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "F", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "Y", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "1", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "9", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "TOP" + ], + "required_slots": [ + "BACK", + "LEFT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "9", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "Y", + "rotation": 90 + }, + "LEFT": { + "patternId": "1", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "9", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "Y", + "rotation": 90 + }, + "LEFT": { + "patternId": "1", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C067\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Y, rotation=90, flipVertical=true\n- step 2: patternId=1, rotation=180, flipVertical=true\n- step 3: patternId=9, rotation=270, flipVertical=true\n- allowed patternId values for this task: Y, 1, 9, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C068.json b/cube1/data/C068.json new file mode 100644 index 0000000000000000000000000000000000000000..12fb142fc8d09a2889ec573102e4d83675514855 --- /dev/null +++ b/cube1/data/C068.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C068", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C068_path_sequence.png" + }, + "metadata": { + "level_id": 68, + "name": "Reconstruct 068", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-068.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "7", + "diamond", + "D", + "Q", + "arrow_right", + "heart" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 3, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "7", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 270 + }, + "BACK": { + "patternId": "Q", + "rotation": 0 + }, + "LEFT": { + "patternId": "arrow_right", + "rotation": 270 + }, + "RIGHT": { + "patternId": "D", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "heart", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "diamond", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "7", + "rotation": 270, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "TOP" + ], + "required_slots": [ + "FRONT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "7", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "7", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C068\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=diamond, rotation=270, flipVertical=true\n- step 2: patternId=7, rotation=270, flipVertical=true\n- allowed patternId values for this task: diamond, 7, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C069.json b/cube1/data/C069.json new file mode 100644 index 0000000000000000000000000000000000000000..a7fc68fac3213765389470619cfa514b31f0111b --- /dev/null +++ b/cube1/data/C069.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C069", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C069_path_sequence.png" + }, + "metadata": { + "level_id": 69, + "name": "Reconstruct 069", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-069.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "K", + "H", + "V", + "O", + "square", + "Q" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "K", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "Q", + "rotation": 180 + }, + "FRONT": { + "patternId": "H", + "rotation": 270 + }, + "BACK": { + "patternId": "O", + "rotation": 270 + }, + "LEFT": { + "patternId": "square", + "rotation": 90 + }, + "RIGHT": { + "patternId": "V", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "Q", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "V", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "H", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "square", + "rotation": 180, + "x": 2, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "LEFT" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "LEFT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "H", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "square", + "rotation": 180 + }, + "RIGHT": { + "patternId": "V", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "H", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "square", + "rotation": 180 + }, + "RIGHT": { + "patternId": "V", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C069\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=V, rotation=180, flipVertical=true\n- step 2: patternId=H, rotation=0, flipVertical=true\n- step 3: patternId=square, rotation=180, flipVertical=true\n- allowed patternId values for this task: V, H, square, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C070.json b/cube1/data/C070.json new file mode 100644 index 0000000000000000000000000000000000000000..3f3bdd134930b3c521782b1dfb3d1430d0bedcbe --- /dev/null +++ b/cube1/data/C070.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C070", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C070_path_sequence.png" + }, + "metadata": { + "level_id": 70, + "name": "Reconstruct 070", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-070.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "N", + "circle", + "heart", + "K", + "6", + "C" + ], + "start_x": 4, + "start_y": 1, + "grid_width": 6, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 90 + }, + "FRONT": { + "patternId": "circle", + "rotation": 0 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "6", + "rotation": 270 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "C", + "rotation": 90, + "x": 4, + "y": 1 + }, + { + "patternId": "6", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "N", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "heart", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "TOP", + "RIGHT" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "6", + "rotation": 0 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "6", + "rotation": 0 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C070\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=180, flipVertical=true\n- step 2: patternId=N, rotation=180, flipVertical=true\n- step 3: patternId=heart, rotation=270, flipVertical=true\n- allowed patternId values for this task: 6, N, heart, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C071.json b/cube1/data/C071.json new file mode 100644 index 0000000000000000000000000000000000000000..2a39cbaa1eceeb27860bfad2b72c85d29295a3eb --- /dev/null +++ b/cube1/data/C071.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C071", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C071_path_sequence.png" + }, + "metadata": { + "level_id": 71, + "name": "Reconstruct 071", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-071.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "circle", + "H", + "arrow_left", + "Z", + "4", + "9" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 3, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "circle", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "9", + "rotation": 270 + }, + "FRONT": { + "patternId": "H", + "rotation": 0 + }, + "BACK": { + "patternId": "Z", + "rotation": 90 + }, + "LEFT": { + "patternId": "4", + "rotation": 180 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "9", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "H", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "TOP" + ], + "required_slots": [ + "FRONT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "circle", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "H", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "circle", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "H", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C071\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=H, rotation=0, flipVertical=true\n- step 2: patternId=circle, rotation=90, flipVertical=true\n- allowed patternId values for this task: H, circle, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C072.json b/cube1/data/C072.json new file mode 100644 index 0000000000000000000000000000000000000000..585ea01c92a7cb8398250786ff32d6325c202a71 --- /dev/null +++ b/cube1/data/C072.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C072", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C072_path_sequence.png" + }, + "metadata": { + "level_id": 72, + "name": "Reconstruct 072", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-072.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "D", + "arrow_left", + "R", + "plus", + "J" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 90 + }, + "FRONT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "R", + "rotation": 90 + }, + "LEFT": { + "patternId": "plus", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "J", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_left", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "D", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "6", + "rotation": 180, + "x": 3, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "6", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "6", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C072\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=arrow_left, rotation=0, flipVertical=true\n- step 2: patternId=D, rotation=0, flipVertical=true\n- step 3: patternId=6, rotation=180, flipVertical=true\n- allowed patternId values for this task: arrow_left, D, 6, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C073.json b/cube1/data/C073.json new file mode 100644 index 0000000000000000000000000000000000000000..3363a15eca0555de4cfd5671784e24897838dd7f --- /dev/null +++ b/cube1/data/C073.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C073", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W" + ], + "observed_path_faces": [ + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C073_path_sequence.png" + }, + "metadata": { + "level_id": 73, + "name": "Reconstruct 073", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-073.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "M", + "X", + "smile", + "W", + "5", + "L" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "M", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "L", + "rotation": 180 + }, + "FRONT": { + "patternId": "X", + "rotation": 90 + }, + "BACK": { + "patternId": "W", + "rotation": 0 + }, + "LEFT": { + "patternId": "5", + "rotation": 0 + }, + "RIGHT": { + "patternId": "smile", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "L", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "X", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "5", + "rotation": 0, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT" + ], + "required_slots": [ + "FRONT", + "LEFT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "5", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "5", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C073\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=X, rotation=90, flipVertical=true\n- step 2: patternId=5, rotation=0, flipVertical=true\n- allowed patternId values for this task: X, 5, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C074.json b/cube1/data/C074.json new file mode 100644 index 0000000000000000000000000000000000000000..6b6b987d30d6787ccbf1b26cf25bdf94741188e5 --- /dev/null +++ b/cube1/data/C074.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C074", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C074_path_sequence.png" + }, + "metadata": { + "level_id": 74, + "name": "Reconstruct 074", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-074.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "R", + "O", + "O", + "C", + "S", + "arrow_left" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "R", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 90 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "C", + "rotation": 180 + }, + "LEFT": { + "patternId": "S", + "rotation": 180 + }, + "RIGHT": { + "patternId": "O", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_left", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "S", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "C", + "rotation": 90, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "BACK" + ], + "required_slots": [ + "LEFT", + "BACK" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "C", + "rotation": 0 + }, + "LEFT": { + "patternId": "S", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "C", + "rotation": 0 + }, + "LEFT": { + "patternId": "S", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C074\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=S, rotation=90, flipVertical=true\n- step 2: patternId=C, rotation=90, flipVertical=true\n- allowed patternId values for this task: S, C, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C075.json b/cube1/data/C075.json new file mode 100644 index 0000000000000000000000000000000000000000..3b9f101541bdfdc8b2aec5ea61272d9fac144c5c --- /dev/null +++ b/cube1/data/C075.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C075", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C075_path_sequence.png" + }, + "metadata": { + "level_id": 75, + "name": "Reconstruct 075", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-075.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "F", + "6", + "3", + "arrow_down", + "C" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 180 + }, + "BACK": { + "patternId": "3", + "rotation": 90 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 270 + }, + "RIGHT": { + "patternId": "6", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "C", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "6", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "F", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "6", + "rotation": 90, + "x": 3, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "TOP" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "6", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "F", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "6", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "F", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C075\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=0, flipVertical=true\n- step 2: patternId=F, rotation=270, flipVertical=true\n- step 3: patternId=6, rotation=90, flipVertical=true\n- allowed patternId values for this task: 6, F, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C076.json b/cube1/data/C076.json new file mode 100644 index 0000000000000000000000000000000000000000..c9aa7dfd915b436e23a0724618d7f46cc9d0578e --- /dev/null +++ b/cube1/data/C076.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C076", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C076_path_sequence.png" + }, + "metadata": { + "level_id": 76, + "name": "Reconstruct 076", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-076.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "X", + "square", + "star", + "F", + "6", + "K" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "X", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 180 + }, + "FRONT": { + "patternId": "square", + "rotation": 270 + }, + "BACK": { + "patternId": "F", + "rotation": 90 + }, + "LEFT": { + "patternId": "6", + "rotation": 90 + }, + "RIGHT": { + "patternId": "star", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "K", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "star", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "F", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK" + ], + "required_slots": [ + "RIGHT", + "BACK" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "F", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "star", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "F", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "star", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C076\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=star, rotation=0, flipVertical=true\n- step 2: patternId=F, rotation=180, flipVertical=true\n- allowed patternId values for this task: star, F, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C077.json b/cube1/data/C077.json new file mode 100644 index 0000000000000000000000000000000000000000..cb325dd9b7ffd4c43df2eceb3b2d195f9efe4c75 --- /dev/null +++ b/cube1/data/C077.json @@ -0,0 +1,215 @@ +{ + "sample_id": "C077", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C077_path_sequence.png" + }, + "metadata": { + "level_id": 77, + "name": "Reconstruct 077", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-077.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "7", + "J", + "Y", + "M", + "heart", + "E" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 3, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "7", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "E", + "rotation": 90 + }, + "FRONT": { + "patternId": "J", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 270 + }, + "LEFT": { + "patternId": "heart", + "rotation": 180 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "E", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "J", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "7", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "M", + "rotation": 90, + "x": 1, + "y": 4 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "BACK" + ], + "required_slots": [ + "FRONT", + "TOP", + "BACK" + ], + "required_count": 3, + "answer": { + "faces": { + "TOP": { + "patternId": "7", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "J", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 90 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "7", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "J", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 90 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C077\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=J, rotation=270, flipVertical=true\n- step 2: patternId=7, rotation=180, flipVertical=true\n- step 3: patternId=M, rotation=90, flipVertical=true\n- allowed patternId values for this task: J, 7, M, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C078.json b/cube1/data/C078.json new file mode 100644 index 0000000000000000000000000000000000000000..0f25e6da4d4642c739a8db048ba57eb62292a62d --- /dev/null +++ b/cube1/data/C078.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C078", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C078_path_sequence.png" + }, + "metadata": { + "level_id": 78, + "name": "Reconstruct 078", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-078.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "M", + "Q", + "A", + "6", + "E", + "arrow_left" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "M", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "Q", + "rotation": 180 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "E", + "rotation": 180 + }, + "RIGHT": { + "patternId": "A", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_left", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "E", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "M", + "rotation": 90, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP" + ], + "required_slots": [ + "LEFT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "M", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "E", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "M", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "E", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C078\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=E, rotation=90, flipVertical=true\n- step 2: patternId=M, rotation=90, flipVertical=true\n- allowed patternId values for this task: E, M, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C079.json b/cube1/data/C079.json new file mode 100644 index 0000000000000000000000000000000000000000..48bafcfa14e5d407f28faa39dc8466544027fc63 --- /dev/null +++ b/cube1/data/C079.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C079", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C079_path_sequence.png" + }, + "metadata": { + "level_id": 79, + "name": "Reconstruct 079", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-079.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Q", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Q", + "triangle", + "star", + "arrow_left", + "S", + "N" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 3, + "true_solution_faces": { + "TOP": { + "patternId": "Q", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "N", + "rotation": 90 + }, + "FRONT": { + "patternId": "triangle", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_left", + "rotation": 90 + }, + "LEFT": { + "patternId": "S", + "rotation": 0 + }, + "RIGHT": { + "patternId": "star", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "N", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "star", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "Q", + "rotation": 90, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "TOP" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "Q", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "star", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Q", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "star", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C079\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=star, rotation=180, flipVertical=true\n- step 2: patternId=Q, rotation=90, flipVertical=true\n- allowed patternId values for this task: star, Q, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C080.json b/cube1/data/C080.json new file mode 100644 index 0000000000000000000000000000000000000000..5f3074c519a6d102fc5d1af77ba3ac5df7d420f1 --- /dev/null +++ b/cube1/data/C080.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C080", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C080_path_sequence.png" + }, + "metadata": { + "level_id": 80, + "name": "Reconstruct 080", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-080.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_left", + "plus", + "6", + "circle", + "square", + "7" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "7", + "rotation": 270 + }, + "FRONT": { + "patternId": "plus", + "rotation": 270 + }, + "BACK": { + "patternId": "circle", + "rotation": 180 + }, + "LEFT": { + "patternId": "square", + "rotation": 270 + }, + "RIGHT": { + "patternId": "6", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "7", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "6", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "plus", + "rotation": 0, + "x": 2, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT" + ], + "required_slots": [ + "RIGHT", + "FRONT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "plus", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "plus", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C080\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=0, flipVertical=true\n- step 2: patternId=plus, rotation=0, flipVertical=true\n- allowed patternId values for this task: 6, plus, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C081.json b/cube1/data/C081.json new file mode 100644 index 0000000000000000000000000000000000000000..0a52dc05624664fb44cd040d2cbd9d873aa8cd51 --- /dev/null +++ b/cube1/data/C081.json @@ -0,0 +1,214 @@ +{ + "sample_id": "C081", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> N -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N", + "S" + ], + "observed_path_faces": [ + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C081_path_sequence.png" + }, + "metadata": { + "level_id": 81, + "name": "Reconstruct 081", + "difficulty": 1, + "move_count": 3, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-081.json", + "tier_label": "Difficulty 1" + }, + "description": "3-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "G", + "E", + "P", + "plus", + "C", + "1" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "G", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + }, + "FRONT": { + "patternId": "E", + "rotation": 90 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "C", + "rotation": 180 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "1", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "C", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "C", + "rotation": 90, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "BACK", + "LEFT" + ], + "required_slots": [ + "LEFT", + "BACK" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "plus", + "rotation": 270 + }, + "LEFT": { + "patternId": "C", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "plus", + "rotation": 270 + }, + "LEFT": { + "patternId": "C", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C081\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 3\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=C, rotation=90, flipVertical=true\n- step 2: patternId=plus, rotation=0, flipVertical=true\n- step 3: patternId=C, rotation=90, flipVertical=true\n- allowed patternId values for this task: C, plus, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C082.json b/cube1/data/C082.json new file mode 100644 index 0000000000000000000000000000000000000000..c5ddaa9eb8f34f8def92d89a818da6889f9d2eb4 --- /dev/null +++ b/cube1/data/C082.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C082", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "N" + ], + "observed_path_faces": [ + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C082_path_sequence.png" + }, + "metadata": { + "level_id": 82, + "name": "Reconstruct 082", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-082.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "star", + "8", + "Q", + "C", + "Y", + "6" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 3, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "star", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 0 + }, + "FRONT": { + "patternId": "8", + "rotation": 90 + }, + "BACK": { + "patternId": "C", + "rotation": 270 + }, + "LEFT": { + "patternId": "Y", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "6", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "8", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "6", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "BOTTOM" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 0 + }, + "FRONT": { + "patternId": "8", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 0 + }, + "FRONT": { + "patternId": "8", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C082\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=8, rotation=90, flipVertical=true\n- step 2: patternId=6, rotation=0, flipVertical=true\n- allowed patternId values for this task: 8, 6, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C083.json b/cube1/data/C083.json new file mode 100644 index 0000000000000000000000000000000000000000..155fb74c073876cbaf2cb9298e4764805c896e7b --- /dev/null +++ b/cube1/data/C083.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C083", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C083_path_sequence.png" + }, + "metadata": { + "level_id": 83, + "name": "Reconstruct 083", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-083.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "L", + "8", + "1", + "P", + "O", + "F" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "L", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 0 + }, + "FRONT": { + "patternId": "8", + "rotation": 270 + }, + "BACK": { + "patternId": "P", + "rotation": 90 + }, + "LEFT": { + "patternId": "O", + "rotation": 270 + }, + "RIGHT": { + "patternId": "1", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "F", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "8", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "1", + "rotation": 180, + "x": 2, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "RIGHT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "8", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "8", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C083\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=8, rotation=270, flipVertical=true\n- step 2: patternId=1, rotation=180, flipVertical=true\n- allowed patternId values for this task: 8, 1, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube1/data/C087.json b/cube1/data/C087.json new file mode 100644 index 0000000000000000000000000000000000000000..d73eb2e5c52270a6af32edd9c08c98c3def4b184 --- /dev/null +++ b/cube1/data/C087.json @@ -0,0 +1,200 @@ +{ + "sample_id": "C087", + "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C087_path_sequence.png" + }, + "metadata": { + "level_id": 87, + "name": "Reconstruct 087", + "difficulty": 1, + "move_count": 2, + "tier": 1, + "source_level_path": "levels/reconstruct/generated-087.json", + "tier_label": "Difficulty 1" + }, + "description": "2-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "E", + "7", + "circle", + "I", + "N", + "H" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "H", + "rotation": 180 + }, + "FRONT": { + "patternId": "7", + "rotation": 90 + }, + "BACK": { + "patternId": "I", + "rotation": 180 + }, + "LEFT": { + "patternId": "N", + "rotation": 90 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "H", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "7", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 2, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "RIGHT" + ], + "required_count": 2, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "7", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "7", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.", + "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C087\n- net_layout: standard_cross\n- difficulty: 1\n- move_count: 2\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=7, rotation=90, flipVertical=true\n- step 2: patternId=circle, rotation=90, flipVertical=true\n- allowed patternId values for this task: 7, circle, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":,\"rotation\":},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C378.json b/cube2/data/C378.json new file mode 100644 index 0000000000000000000000000000000000000000..48f7080e04dfff08b73ae7980d31258e4be942bc --- /dev/null +++ b/cube2/data/C378.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C378", + "name": "Goal Roll C378", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "5", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "O", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "T", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "Y", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "8", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "5", + "rotation": 180 + }, + "RIGHT": { + "patternId": "O", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "5", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C378/initial_net.png", + "targetTopFaceImage": "../images/C378/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 2, + "targetRotationOffset": 90, + "levelId": 378, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-378.json" + }, + "rollSequence": [ + "E", + "N", + "N", + "N", + "W", + "N", + "E", + "E", + "S" + ], + "observedPathFaces": [ + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "N", + "N", + "N", + "W", + "N", + "E", + "E", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "5", + "rotation": 180 + }, + "RIGHT": { + "patternId": "O", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C378\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=5, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=T, rotation=0]\n[LEFT: patternId=Y, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=O, rotation=0]\n [FRONT: patternId=5, rotation=180]\n [BOTTOM: patternId=8, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=T, rotation=0\n- LEFT: patternId=Y, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=O, rotation=0\n- FRONT: patternId=5, rotation=180\n- BOTTOM: patternId=8, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C379.json b/cube2/data/C379.json new file mode 100644 index 0000000000000000000000000000000000000000..45c27a3541bf35e471bee61082e248e05d17aa91 --- /dev/null +++ b/cube2/data/C379.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C379", + "name": "Goal Roll C379", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "F", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "B", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "S", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "heart", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "M", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "V", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "F", + "rotation": 90 + }, + "FRONT": { + "patternId": "B", + "rotation": 0 + }, + "RIGHT": { + "patternId": "S", + "rotation": 0 + }, + "BACK": { + "patternId": "heart", + "rotation": 0 + }, + "LEFT": { + "patternId": "M", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "S", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C379/initial_net.png", + "targetTopFaceImage": "../images/C379/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 2, + "targetRotationOffset": 270, + "levelId": 379, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-379.json" + }, + "rollSequence": [ + "N", + "W", + "N", + "S", + "N", + "W", + "W", + "N", + "N" + ], + "observedPathFaces": [ + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "W", + "N", + "S", + "N", + "W", + "W", + "N", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "F", + "rotation": 90 + }, + "FRONT": { + "patternId": "B", + "rotation": 0 + }, + "RIGHT": { + "patternId": "S", + "rotation": 0 + }, + "BACK": { + "patternId": "heart", + "rotation": 0 + }, + "LEFT": { + "patternId": "M", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C379\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=S, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=heart, rotation=0]\n[LEFT: patternId=M, rotation=180] [TOP: patternId=F, rotation=90] [RIGHT: patternId=S, rotation=0]\n [FRONT: patternId=B, rotation=0]\n [BOTTOM: patternId=V, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=heart, rotation=0\n- LEFT: patternId=M, rotation=180\n- TOP: patternId=F, rotation=90\n- RIGHT: patternId=S, rotation=0\n- FRONT: patternId=B, rotation=0\n- BOTTOM: patternId=V, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C380.json b/cube2/data/C380.json new file mode 100644 index 0000000000000000000000000000000000000000..c6a82325093d8b220dfa7d50d57e51d18d1a1026 --- /dev/null +++ b/cube2/data/C380.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C380", + "name": "Goal Roll C380", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "X", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "diamond", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "F", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "6", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "4", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "?", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 0 + }, + "RIGHT": { + "patternId": "F", + "rotation": 180 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "4", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "diamond", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C380/initial_net.png", + "targetTopFaceImage": "../images/C380/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 4, + "targetRotationOffset": 180, + "levelId": 380, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-380.json" + }, + "rollSequence": [ + "N", + "N", + "E", + "S", + "W", + "W", + "S", + "E" + ], + "observedPathFaces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "N", + "E", + "S", + "W", + "W", + "S", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 0 + }, + "RIGHT": { + "patternId": "F", + "rotation": 180 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "4", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C380\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=diamond, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=6, rotation=270]\n[LEFT: patternId=4, rotation=270] [TOP: patternId=X, rotation=90] [RIGHT: patternId=F, rotation=180]\n [FRONT: patternId=diamond, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=6, rotation=270\n- LEFT: patternId=4, rotation=270\n- TOP: patternId=X, rotation=90\n- RIGHT: patternId=F, rotation=180\n- FRONT: patternId=diamond, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C381.json b/cube2/data/C381.json new file mode 100644 index 0000000000000000000000000000000000000000..c94eed08cdc9fd475c6f5ff8cd0ee8a0a869a93f --- /dev/null +++ b/cube2/data/C381.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C381", + "name": "Goal Roll C381", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "C", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "E", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "X", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "5", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "B", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "A", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "C", + "rotation": 90 + }, + "FRONT": { + "patternId": "E", + "rotation": 0 + }, + "RIGHT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 180 + }, + "LEFT": { + "patternId": "B", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 2, + "stepNumber": 3, + "patternId": "5", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C381/initial_net.png", + "targetTopFaceImage": "../images/C381/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 3, + "targetRotationOffset": 90, + "levelId": 381, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-381.json" + }, + "rollSequence": [ + "N", + "N", + "N", + "W", + "N", + "E", + "W", + "N" + ], + "observedPathFaces": [ + { + "patternId": "5", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "N", + "N", + "W", + "N", + "E", + "W", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "C", + "rotation": 90 + }, + "FRONT": { + "patternId": "E", + "rotation": 0 + }, + "RIGHT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 180 + }, + "LEFT": { + "patternId": "B", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C381\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=5, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=5, rotation=180]\n[LEFT: patternId=B, rotation=180] [TOP: patternId=C, rotation=90] [RIGHT: patternId=X, rotation=0]\n [FRONT: patternId=E, rotation=0]\n [BOTTOM: patternId=A, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=5, rotation=180\n- LEFT: patternId=B, rotation=180\n- TOP: patternId=C, rotation=90\n- RIGHT: patternId=X, rotation=0\n- FRONT: patternId=E, rotation=0\n- BOTTOM: patternId=A, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C382.json b/cube2/data/C382.json new file mode 100644 index 0000000000000000000000000000000000000000..1a4e097e34884468301628893ebaad332ea0c9fd --- /dev/null +++ b/cube2/data/C382.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C382", + "name": "Goal Roll C382", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "Y", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "X", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "8", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "heart", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "T", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "Y", + "rotation": 180 + }, + "FRONT": { + "patternId": "X", + "rotation": 270 + }, + "RIGHT": { + "patternId": "8", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 0, + "stepNumber": 1, + "patternId": "8", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C382/initial_net.png", + "targetTopFaceImage": "../images/C382/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 1, + "targetRotationOffset": 180, + "levelId": 382, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-382.json" + }, + "rollSequence": [ + "W", + "S", + "E", + "S", + "W", + "S", + "E", + "E" + ], + "observedPathFaces": [ + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "S", + "E", + "S", + "W", + "S", + "E", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "Y", + "rotation": 180 + }, + "FRONT": { + "patternId": "X", + "rotation": 270 + }, + "RIGHT": { + "patternId": "8", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C382\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=8, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=heart, rotation=90] [TOP: patternId=Y, rotation=180] [RIGHT: patternId=8, rotation=0]\n [FRONT: patternId=X, rotation=270]\n [BOTTOM: patternId=T, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=heart, rotation=90\n- TOP: patternId=Y, rotation=180\n- RIGHT: patternId=8, rotation=0\n- FRONT: patternId=X, rotation=270\n- BOTTOM: patternId=T, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C383.json b/cube2/data/C383.json new file mode 100644 index 0000000000000000000000000000000000000000..8d0201d686d4dd8de20a9f79fa631a154c63104f --- /dev/null +++ b/cube2/data/C383.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C383", + "name": "Goal Roll C383", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "star", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "J", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "R", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "Z", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "N", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "V", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "star", + "rotation": 0 + }, + "FRONT": { + "patternId": "J", + "rotation": 180 + }, + "RIGHT": { + "patternId": "R", + "rotation": 0 + }, + "BACK": { + "patternId": "Z", + "rotation": 270 + }, + "LEFT": { + "patternId": "N", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "Z", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C383/initial_net.png", + "targetTopFaceImage": "../images/C383/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 4, + "targetRotationOffset": 90, + "levelId": 383, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-383.json" + }, + "rollSequence": [ + "S", + "E", + "S", + "W", + "N", + "W", + "N", + "S", + "W" + ], + "observedPathFaces": [ + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "E", + "S", + "W", + "N", + "W", + "N", + "S", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "star", + "rotation": 0 + }, + "FRONT": { + "patternId": "J", + "rotation": 180 + }, + "RIGHT": { + "patternId": "R", + "rotation": 0 + }, + "BACK": { + "patternId": "Z", + "rotation": 270 + }, + "LEFT": { + "patternId": "N", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C383\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=Z, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Z, rotation=270]\n[LEFT: patternId=N, rotation=270] [TOP: patternId=star, rotation=0] [RIGHT: patternId=R, rotation=0]\n [FRONT: patternId=J, rotation=180]\n [BOTTOM: patternId=V, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Z, rotation=270\n- LEFT: patternId=N, rotation=270\n- TOP: patternId=star, rotation=0\n- RIGHT: patternId=R, rotation=0\n- FRONT: patternId=J, rotation=180\n- BOTTOM: patternId=V, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C384.json b/cube2/data/C384.json new file mode 100644 index 0000000000000000000000000000000000000000..bf55277b29552e1ed85f0b68b166a08923de8bf7 --- /dev/null +++ b/cube2/data/C384.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C384", + "name": "Goal Roll C384", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "Y", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "K", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "P", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "J", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "R", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_left", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "Y", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "J", + "rotation": 180 + }, + "LEFT": { + "patternId": "R", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 5, + "stepNumber": 6, + "patternId": "P", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C384/initial_net.png", + "targetTopFaceImage": "../images/C384/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 6, + "targetRotationOffset": 90, + "levelId": 384, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-384.json" + }, + "rollSequence": [ + "E", + "E", + "E", + "N", + "W", + "S", + "W", + "S", + "E" + ], + "observedPathFaces": [ + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "E", + "E", + "N", + "W", + "S", + "W", + "S", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "Y", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "J", + "rotation": 180 + }, + "LEFT": { + "patternId": "R", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C384\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=P, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=J, rotation=180]\n[LEFT: patternId=R, rotation=180] [TOP: patternId=Y, rotation=0] [RIGHT: patternId=P, rotation=270]\n [FRONT: patternId=K, rotation=180]\n [BOTTOM: patternId=arrow_left, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=J, rotation=180\n- LEFT: patternId=R, rotation=180\n- TOP: patternId=Y, rotation=0\n- RIGHT: patternId=P, rotation=270\n- FRONT: patternId=K, rotation=180\n- BOTTOM: patternId=arrow_left, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C385.json b/cube2/data/C385.json new file mode 100644 index 0000000000000000000000000000000000000000..7eaadc9582d2d2f9e2c8f22878077a96355b5035 --- /dev/null +++ b/cube2/data/C385.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C385", + "name": "Goal Roll C385", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "W", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "square", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "R", + "rotation": 90 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "1", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "7", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "K", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "W", + "rotation": 0 + }, + "FRONT": { + "patternId": "square", + "rotation": 270 + }, + "RIGHT": { + "patternId": "R", + "rotation": 90 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "7", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 7, + "stepNumber": 8, + "patternId": "K", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C385/initial_net.png", + "targetTopFaceImage": "../images/C385/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 8, + "targetRotationOffset": 180, + "levelId": 385, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-385.json" + }, + "rollSequence": [ + "W", + "S", + "W", + "N", + "N", + "W", + "N", + "W" + ], + "observedPathFaces": [ + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "S", + "W", + "N", + "N", + "W", + "N", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "W", + "rotation": 0 + }, + "FRONT": { + "patternId": "square", + "rotation": 270 + }, + "RIGHT": { + "patternId": "R", + "rotation": 90 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "7", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C385\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=K, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=1, rotation=180]\n[LEFT: patternId=7, rotation=90] [TOP: patternId=W, rotation=0] [RIGHT: patternId=R, rotation=90]\n [FRONT: patternId=square, rotation=270]\n [BOTTOM: patternId=K, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=1, rotation=180\n- LEFT: patternId=7, rotation=90\n- TOP: patternId=W, rotation=0\n- RIGHT: patternId=R, rotation=90\n- FRONT: patternId=square, rotation=270\n- BOTTOM: patternId=K, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C386.json b/cube2/data/C386.json new file mode 100644 index 0000000000000000000000000000000000000000..2f8ac3c05973f53746d45674168f839d86dcaebd --- /dev/null +++ b/cube2/data/C386.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C386", + "name": "Goal Roll C386", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "E", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "1", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "J", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "U", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "7", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "E", + "rotation": 180 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 0 + }, + "BACK": { + "patternId": "J", + "rotation": 270 + }, + "LEFT": { + "patternId": "U", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "7", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 2, + "stepNumber": 3, + "patternId": "E", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C386/initial_net.png", + "targetTopFaceImage": "../images/C386/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 3, + "targetRotationOffset": 90, + "levelId": 386, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-386.json" + }, + "rollSequence": [ + "E", + "N", + "W", + "N", + "N", + "N", + "S", + "E" + ], + "observedPathFaces": [ + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "N", + "W", + "N", + "N", + "N", + "S", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "E", + "rotation": 180 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 0 + }, + "BACK": { + "patternId": "J", + "rotation": 270 + }, + "LEFT": { + "patternId": "U", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "7", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C386\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=E, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=J, rotation=270]\n[LEFT: patternId=U, rotation=90] [TOP: patternId=E, rotation=180] [RIGHT: patternId=1, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=7, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=J, rotation=270\n- LEFT: patternId=U, rotation=90\n- TOP: patternId=E, rotation=180\n- RIGHT: patternId=1, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=7, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C387.json b/cube2/data/C387.json new file mode 100644 index 0000000000000000000000000000000000000000..e3408d01c29b959ecdc0e459631ffe250ab71786 --- /dev/null +++ b/cube2/data/C387.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C387", + "name": "Goal Roll C387", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "I", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "A", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "Z", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "7", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "M", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "F", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "I", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Z", + "rotation": 180 + }, + "BACK": { + "patternId": "7", + "rotation": 90 + }, + "LEFT": { + "patternId": "M", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 8, + "stepNumber": 9, + "patternId": "F", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C387/initial_net.png", + "targetTopFaceImage": "../images/C387/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 9, + "targetRotationOffset": 90, + "levelId": 387, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-387.json" + }, + "rollSequence": [ + "N", + "E", + "W", + "N", + "N", + "W", + "N", + "E", + "E" + ], + "observedPathFaces": [ + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "E", + "W", + "N", + "N", + "W", + "N", + "E", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "I", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Z", + "rotation": 180 + }, + "BACK": { + "patternId": "7", + "rotation": 90 + }, + "LEFT": { + "patternId": "M", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C387\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=F, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=7, rotation=90]\n[LEFT: patternId=M, rotation=0] [TOP: patternId=I, rotation=180] [RIGHT: patternId=Z, rotation=180]\n [FRONT: patternId=A, rotation=90]\n [BOTTOM: patternId=F, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=7, rotation=90\n- LEFT: patternId=M, rotation=0\n- TOP: patternId=I, rotation=180\n- RIGHT: patternId=Z, rotation=180\n- FRONT: patternId=A, rotation=90\n- BOTTOM: patternId=F, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C388.json b/cube2/data/C388.json new file mode 100644 index 0000000000000000000000000000000000000000..aad1bed709cc816d7548f0035f402c2039c16f37 --- /dev/null +++ b/cube2/data/C388.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C388", + "name": "Goal Roll C388", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "arrow_right", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "V", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "H", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "square", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_right", + "rotation": 0 + }, + "BACK": { + "patternId": "V", + "rotation": 0 + }, + "LEFT": { + "patternId": "H", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 0, + "stepNumber": 1, + "patternId": "arrow_right", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C388/initial_net.png", + "targetTopFaceImage": "../images/C388/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 1, + "targetRotationOffset": 180, + "levelId": 388, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-388.json" + }, + "rollSequence": [ + "W", + "N", + "E", + "N", + "W", + "W", + "S", + "S" + ], + "observedPathFaces": [ + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "N", + "E", + "N", + "W", + "W", + "S", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_right", + "rotation": 0 + }, + "BACK": { + "patternId": "V", + "rotation": 0 + }, + "LEFT": { + "patternId": "H", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C388\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=arrow_right, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=V, rotation=0]\n[LEFT: patternId=H, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=arrow_right, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=square, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=V, rotation=0\n- LEFT: patternId=H, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=arrow_right, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=square, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C389.json b/cube2/data/C389.json new file mode 100644 index 0000000000000000000000000000000000000000..96bfc224658c5aae54473f163bd24e3754d7344e --- /dev/null +++ b/cube2/data/C389.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C389", + "name": "Goal Roll C389", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "G", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "arrow_right", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "I", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "I", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_left", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "G", + "rotation": 180 + }, + "FRONT": { + "patternId": "arrow_right", + "rotation": 0 + }, + "RIGHT": { + "patternId": "I", + "rotation": 270 + }, + "BACK": { + "patternId": "I", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "G", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C389/initial_net.png", + "targetTopFaceImage": "../images/C389/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 4, + "targetRotationOffset": 90, + "levelId": 389, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-389.json" + }, + "rollSequence": [ + "S", + "S", + "N", + "N", + "E", + "N", + "W", + "W" + ], + "observedPathFaces": [ + { + "patternId": "arrow_right", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "S", + "N", + "N", + "E", + "N", + "W", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "G", + "rotation": 180 + }, + "FRONT": { + "patternId": "arrow_right", + "rotation": 0 + }, + "RIGHT": { + "patternId": "I", + "rotation": 270 + }, + "BACK": { + "patternId": "I", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C389\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=G, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=I, rotation=270]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=G, rotation=180] [RIGHT: patternId=I, rotation=270]\n [FRONT: patternId=arrow_right, rotation=0]\n [BOTTOM: patternId=arrow_left, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=I, rotation=270\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=G, rotation=180\n- RIGHT: patternId=I, rotation=270\n- FRONT: patternId=arrow_right, rotation=0\n- BOTTOM: patternId=arrow_left, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C390.json b/cube2/data/C390.json new file mode 100644 index 0000000000000000000000000000000000000000..170d3cd3facafa8df4e69a8246e63c01c27e1d21 --- /dev/null +++ b/cube2/data/C390.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C390", + "name": "Goal Roll C390", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "circle", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "7", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "T", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "C", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "7", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "circle", + "rotation": 0 + }, + "FRONT": { + "patternId": "7", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "7", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 5, + "stepNumber": 6, + "patternId": "T", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C390/initial_net.png", + "targetTopFaceImage": "../images/C390/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 6, + "targetRotationOffset": 270, + "levelId": 390, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-390.json" + }, + "rollSequence": [ + "N", + "W", + "S", + "W", + "E", + "W", + "W", + "N" + ], + "observedPathFaces": [ + { + "patternId": "T", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "W", + "S", + "W", + "E", + "W", + "W", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "circle", + "rotation": 0 + }, + "FRONT": { + "patternId": "7", + "rotation": 90 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "7", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C390\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=T, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=T, rotation=0]\n[LEFT: patternId=C, rotation=90] [TOP: patternId=circle, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=7, rotation=90]\n [BOTTOM: patternId=7, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=T, rotation=0\n- LEFT: patternId=C, rotation=90\n- TOP: patternId=circle, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=7, rotation=90\n- BOTTOM: patternId=7, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C391.json b/cube2/data/C391.json new file mode 100644 index 0000000000000000000000000000000000000000..162408f6b75e0e3b31da60bb6a3bb345aaf0a6c1 --- /dev/null +++ b/cube2/data/C391.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C391", + "name": "Goal Roll C391", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "X", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "7", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "triangle", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "G", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "heart", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "B", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "FRONT": { + "patternId": "7", + "rotation": 180 + }, + "RIGHT": { + "patternId": "triangle", + "rotation": 180 + }, + "BACK": { + "patternId": "G", + "rotation": 90 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "B", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 0, + "stepNumber": 1, + "patternId": "G", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C391/initial_net.png", + "targetTopFaceImage": "../images/C391/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 1, + "targetRotationOffset": 270, + "levelId": 391, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-391.json" + }, + "rollSequence": [ + "S", + "E", + "S", + "W", + "S", + "W", + "S", + "W", + "N" + ], + "observedPathFaces": [ + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "E", + "S", + "W", + "S", + "W", + "S", + "W", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "FRONT": { + "patternId": "7", + "rotation": 180 + }, + "RIGHT": { + "patternId": "triangle", + "rotation": 180 + }, + "BACK": { + "patternId": "G", + "rotation": 90 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "B", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C391\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=G, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=G, rotation=90]\n[LEFT: patternId=heart, rotation=90] [TOP: patternId=X, rotation=90] [RIGHT: patternId=triangle, rotation=180]\n [FRONT: patternId=7, rotation=180]\n [BOTTOM: patternId=B, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=G, rotation=90\n- LEFT: patternId=heart, rotation=90\n- TOP: patternId=X, rotation=90\n- RIGHT: patternId=triangle, rotation=180\n- FRONT: patternId=7, rotation=180\n- BOTTOM: patternId=B, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C392.json b/cube2/data/C392.json new file mode 100644 index 0000000000000000000000000000000000000000..147913e477afa9115a8bfe1b2e85566572af4b57 --- /dev/null +++ b/cube2/data/C392.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C392", + "name": "Goal Roll C392", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "diamond", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "Y", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "arrow_down", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "V", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "O", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 180 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 270 + }, + "LEFT": { + "patternId": "V", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 6, + "stepNumber": 7, + "patternId": "Y", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C392/initial_net.png", + "targetTopFaceImage": "../images/C392/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 7, + "targetRotationOffset": 90, + "levelId": 392, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-392.json" + }, + "rollSequence": [ + "W", + "E", + "E", + "N", + "W", + "W", + "N", + "S" + ], + "observedPathFaces": [ + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "E", + "E", + "N", + "W", + "W", + "N", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 180 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 270 + }, + "LEFT": { + "patternId": "V", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C392\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=Y, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_down, rotation=270]\n[LEFT: patternId=V, rotation=180] [TOP: patternId=?, rotation=0] [RIGHT: patternId=Y, rotation=180]\n [FRONT: patternId=diamond, rotation=180]\n [BOTTOM: patternId=O, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_down, rotation=270\n- LEFT: patternId=V, rotation=180\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=Y, rotation=180\n- FRONT: patternId=diamond, rotation=180\n- BOTTOM: patternId=O, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C393.json b/cube2/data/C393.json new file mode 100644 index 0000000000000000000000000000000000000000..c2acb5db7f326ac379b242b1e25d9e3433214c7b --- /dev/null +++ b/cube2/data/C393.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C393", + "name": "Goal Roll C393", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "triangle", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "D", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "S", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "C", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "4", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "triangle", + "rotation": 90 + }, + "RIGHT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "S", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "4", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "S", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C393/initial_net.png", + "targetTopFaceImage": "../images/C393/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 2, + "targetRotationOffset": 270, + "levelId": 393, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-393.json" + }, + "rollSequence": [ + "W", + "S", + "S", + "S", + "E", + "S", + "N", + "W" + ], + "observedPathFaces": [ + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "S", + "S", + "S", + "E", + "S", + "N", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "triangle", + "rotation": 90 + }, + "RIGHT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "S", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "4", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C393\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=S, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=S, rotation=0]\n[LEFT: patternId=C, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=D, rotation=0]\n [FRONT: patternId=triangle, rotation=90]\n [BOTTOM: patternId=4, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=S, rotation=0\n- LEFT: patternId=C, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=D, rotation=0\n- FRONT: patternId=triangle, rotation=90\n- BOTTOM: patternId=4, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C394.json b/cube2/data/C394.json new file mode 100644 index 0000000000000000000000000000000000000000..b2edc4e07fe5269de235073cf6357ebab6cf9bd6 --- /dev/null +++ b/cube2/data/C394.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C394", + "name": "Goal Roll C394", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "X", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "J", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "2", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "W", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_up", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 180 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + }, + "BACK": { + "patternId": "2", + "rotation": 0 + }, + "LEFT": { + "patternId": "W", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 0, + "stepNumber": 1, + "patternId": "2", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C394/initial_net.png", + "targetTopFaceImage": "../images/C394/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 1, + "targetRotationOffset": 180, + "levelId": 394, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-394.json" + }, + "rollSequence": [ + "S", + "W", + "W", + "N", + "W", + "E", + "E", + "W" + ], + "observedPathFaces": [ + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "W", + "W", + "N", + "W", + "E", + "E", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 180 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + }, + "BACK": { + "patternId": "2", + "rotation": 0 + }, + "LEFT": { + "patternId": "W", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C394\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=2, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=2, rotation=0]\n[LEFT: patternId=W, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=J, rotation=0]\n [FRONT: patternId=X, rotation=180]\n [BOTTOM: patternId=arrow_up, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=2, rotation=0\n- LEFT: patternId=W, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=J, rotation=0\n- FRONT: patternId=X, rotation=180\n- BOTTOM: patternId=arrow_up, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C395.json b/cube2/data/C395.json new file mode 100644 index 0000000000000000000000000000000000000000..a6117c166d3b24a9d83d4526a19c4d77df622454 --- /dev/null +++ b/cube2/data/C395.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C395", + "name": "Goal Roll C395", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "U", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "K", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "triangle", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "plus", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "K", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "O", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "U", + "rotation": 90 + }, + "FRONT": { + "patternId": "K", + "rotation": 0 + }, + "RIGHT": { + "patternId": "triangle", + "rotation": 180 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "K", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 2, + "stepNumber": 3, + "patternId": "O", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C395/initial_net.png", + "targetTopFaceImage": "../images/C395/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 3, + "targetRotationOffset": 90, + "levelId": 395, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-395.json" + }, + "rollSequence": [ + "S", + "E", + "S", + "S", + "W", + "W", + "W", + "S", + "S" + ], + "observedPathFaces": [ + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "E", + "S", + "S", + "W", + "W", + "W", + "S", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "U", + "rotation": 90 + }, + "FRONT": { + "patternId": "K", + "rotation": 0 + }, + "RIGHT": { + "patternId": "triangle", + "rotation": 180 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "K", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C395\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=O, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=plus, rotation=90]\n[LEFT: patternId=K, rotation=270] [TOP: patternId=U, rotation=90] [RIGHT: patternId=triangle, rotation=180]\n [FRONT: patternId=K, rotation=0]\n [BOTTOM: patternId=O, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=plus, rotation=90\n- LEFT: patternId=K, rotation=270\n- TOP: patternId=U, rotation=90\n- RIGHT: patternId=triangle, rotation=180\n- FRONT: patternId=K, rotation=0\n- BOTTOM: patternId=O, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C396.json b/cube2/data/C396.json new file mode 100644 index 0000000000000000000000000000000000000000..cf9c00e0e8c5d07f01a909e9c5e42d9ff5deaba4 --- /dev/null +++ b/cube2/data/C396.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C396", + "name": "Goal Roll C396", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "2", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "C", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "K", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "Z", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "smile", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "F", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "2", + "rotation": 180 + }, + "FRONT": { + "patternId": "C", + "rotation": 180 + }, + "RIGHT": { + "patternId": "K", + "rotation": 0 + }, + "BACK": { + "patternId": "Z", + "rotation": 90 + }, + "LEFT": { + "patternId": "smile", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 8, + "stepNumber": 9, + "patternId": "F", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C396/initial_net.png", + "targetTopFaceImage": "../images/C396/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 9, + "targetRotationOffset": 90, + "levelId": 396, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-396.json" + }, + "rollSequence": [ + "N", + "E", + "E", + "S", + "W", + "W", + "S", + "W", + "N" + ], + "observedPathFaces": [ + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "E", + "E", + "S", + "W", + "W", + "S", + "W", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "2", + "rotation": 180 + }, + "FRONT": { + "patternId": "C", + "rotation": 180 + }, + "RIGHT": { + "patternId": "K", + "rotation": 0 + }, + "BACK": { + "patternId": "Z", + "rotation": 90 + }, + "LEFT": { + "patternId": "smile", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C396\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=F, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Z, rotation=90]\n[LEFT: patternId=smile, rotation=90] [TOP: patternId=2, rotation=180] [RIGHT: patternId=K, rotation=0]\n [FRONT: patternId=C, rotation=180]\n [BOTTOM: patternId=F, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Z, rotation=90\n- LEFT: patternId=smile, rotation=90\n- TOP: patternId=2, rotation=180\n- RIGHT: patternId=K, rotation=0\n- FRONT: patternId=C, rotation=180\n- BOTTOM: patternId=F, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C397.json b/cube2/data/C397.json new file mode 100644 index 0000000000000000000000000000000000000000..a8383b23c6f6b5f99b8e091ca1c77f4b59d08393 --- /dev/null +++ b/cube2/data/C397.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C397", + "name": "Goal Roll C397", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "D", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "P", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "arrow_up", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "C", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "K", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "D", + "rotation": 270 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 270 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 7, + "stepNumber": 8, + "patternId": "P", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C397/initial_net.png", + "targetTopFaceImage": "../images/C397/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 8, + "targetRotationOffset": 90, + "levelId": 397, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-397.json" + }, + "rollSequence": [ + "E", + "E", + "N", + "N", + "S", + "W", + "N", + "N" + ], + "observedPathFaces": [ + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "E", + "N", + "N", + "S", + "W", + "N", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "D", + "rotation": 270 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 270 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C397\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=P, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_up, rotation=270]\n[LEFT: patternId=C, rotation=90] [TOP: patternId=D, rotation=270] [RIGHT: patternId=P, rotation=270]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=K, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_up, rotation=270\n- LEFT: patternId=C, rotation=90\n- TOP: patternId=D, rotation=270\n- RIGHT: patternId=P, rotation=270\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=K, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C398.json b/cube2/data/C398.json new file mode 100644 index 0000000000000000000000000000000000000000..cd59e2039991b7a44edc7361ef563192013ab7f5 --- /dev/null +++ b/cube2/data/C398.json @@ -0,0 +1,230 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C398", + "name": "Goal Roll C398", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "I", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "1", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "1", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "Y", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_left", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "I", + "rotation": 270 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 270 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 6, + "stepNumber": 7, + "patternId": "1", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C398/initial_net.png", + "targetTopFaceImage": "../images/C398/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 7, + "targetRotationOffset": 180, + "levelId": 398, + "moveCount": 8, + "sourceLevelPath": "levels/reconstruct/generated-398.json" + }, + "rollSequence": [ + "E", + "E", + "N", + "E", + "N", + "W", + "S", + "W" + ], + "observedPathFaces": [ + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "E", + "N", + "E", + "N", + "W", + "S", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "I", + "rotation": 270 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 270 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C398\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=1, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=1, rotation=180]\n[LEFT: patternId=Y, rotation=270] [TOP: patternId=I, rotation=270] [RIGHT: patternId=1, rotation=270]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=arrow_left, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=1, rotation=180\n- LEFT: patternId=Y, rotation=270\n- TOP: patternId=I, rotation=270\n- RIGHT: patternId=1, rotation=270\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=arrow_left, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C399.json b/cube2/data/C399.json new file mode 100644 index 0000000000000000000000000000000000000000..ee15cbceed5398f64760612015448d87987bfb55 --- /dev/null +++ b/cube2/data/C399.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C399", + "name": "Goal Roll C399", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "square", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "arrow_down", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "R", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "C", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_down", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "square", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "R", + "rotation": 90 + }, + "LEFT": { + "patternId": "C", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "arrow_down", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "square", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C399/initial_net.png", + "targetTopFaceImage": "../images/C399/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 4, + "targetRotationOffset": 270, + "levelId": 399, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-399.json" + }, + "rollSequence": [ + "N", + "W", + "W", + "S", + "N", + "N", + "E", + "N", + "S" + ], + "observedPathFaces": [ + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "W", + "W", + "S", + "N", + "N", + "E", + "N", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "square", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "R", + "rotation": 90 + }, + "LEFT": { + "patternId": "C", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "arrow_down", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C399\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=square, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=R, rotation=90]\n[LEFT: patternId=C, rotation=180] [TOP: patternId=square, rotation=90] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=arrow_down, rotation=270]\n [BOTTOM: patternId=arrow_down, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=R, rotation=90\n- LEFT: patternId=C, rotation=180\n- TOP: patternId=square, rotation=90\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=arrow_down, rotation=270\n- BOTTOM: patternId=arrow_down, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C400.json b/cube2/data/C400.json new file mode 100644 index 0000000000000000000000000000000000000000..d3f8c55a3cfc7b9559e1745312ae623afbd30ee8 --- /dev/null +++ b/cube2/data/C400.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C400", + "name": "Goal Roll C400", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "N", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "circle", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "Q", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "V", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "G", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "circle", + "rotation": 270 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 0 + }, + "BACK": { + "patternId": "V", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "G", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 8, + "stepNumber": 9, + "patternId": "V", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C400/initial_net.png", + "targetTopFaceImage": "../images/C400/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 9, + "targetRotationOffset": 180, + "levelId": 400, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-400.json" + }, + "rollSequence": [ + "S", + "E", + "E", + "W", + "W", + "S", + "N", + "N", + "S" + ], + "observedPathFaces": [ + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "E", + "E", + "W", + "W", + "S", + "N", + "N", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "circle", + "rotation": 270 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 0 + }, + "BACK": { + "patternId": "V", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "G", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C400\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=V, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=V, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=N, rotation=180] [RIGHT: patternId=Q, rotation=0]\n [FRONT: patternId=circle, rotation=270]\n [BOTTOM: patternId=G, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=V, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=N, rotation=180\n- RIGHT: patternId=Q, rotation=0\n- FRONT: patternId=circle, rotation=270\n- BOTTOM: patternId=G, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C401.json b/cube2/data/C401.json new file mode 100644 index 0000000000000000000000000000000000000000..45cd7aa09c756feaba41e4eb02c5a216b042603c --- /dev/null +++ b/cube2/data/C401.json @@ -0,0 +1,238 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C401", + "name": "Goal Roll C401", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "star", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "2", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "L", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "F", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "O", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "R", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "star", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 90 + }, + "RIGHT": { + "patternId": "L", + "rotation": 180 + }, + "BACK": { + "patternId": "F", + "rotation": 180 + }, + "LEFT": { + "patternId": "O", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 5, + "stepNumber": 6, + "patternId": "O", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C401/initial_net.png", + "targetTopFaceImage": "../images/C401/target_top_face.png" + }, + "metadata": { + "difficulty": 4, + "tier": 4, + "targetStepNumber": 6, + "targetRotationOffset": 90, + "levelId": 401, + "moveCount": 9, + "sourceLevelPath": "levels/reconstruct/generated-401.json" + }, + "rollSequence": [ + "W", + "E", + "S", + "W", + "W", + "W", + "S", + "S", + "W" + ], + "observedPathFaces": [ + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "E", + "S", + "W", + "W", + "W", + "S", + "S", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "star", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 90 + }, + "RIGHT": { + "patternId": "L", + "rotation": 180 + }, + "BACK": { + "patternId": "F", + "rotation": 180 + }, + "LEFT": { + "patternId": "O", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C401\n- task_type: roll_to_target_top_face\n- difficulty: 4\n- target_top_face: patternId=O, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=F, rotation=180]\n[LEFT: patternId=O, rotation=90] [TOP: patternId=star, rotation=180] [RIGHT: patternId=L, rotation=180]\n [FRONT: patternId=2, rotation=90]\n [BOTTOM: patternId=R, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=F, rotation=180\n- LEFT: patternId=O, rotation=90\n- TOP: patternId=star, rotation=180\n- RIGHT: patternId=L, rotation=180\n- FRONT: patternId=2, rotation=90\n- BOTTOM: patternId=R, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C402.json b/cube2/data/C402.json new file mode 100644 index 0000000000000000000000000000000000000000..9c6af08917dc165421ea340f4a49b0c2fbd889c6 --- /dev/null +++ b/cube2/data/C402.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C402", + "name": "Goal Roll C402", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "M", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "circle", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "D", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "7", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "smile", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "M", + "rotation": 180 + }, + "FRONT": { + "patternId": "circle", + "rotation": 90 + }, + "RIGHT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "7", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "smile", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C402/initial_net.png", + "targetTopFaceImage": "../images/C402/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 2, + "targetRotationOffset": 270, + "levelId": 402, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-402.json" + }, + "rollSequence": [ + "S", + "S", + "N", + "E", + "N", + "E", + "W", + "S", + "W", + "S" + ], + "observedPathFaces": [ + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "S", + "N", + "E", + "N", + "E", + "W", + "S", + "W", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "M", + "rotation": 180 + }, + "FRONT": { + "patternId": "circle", + "rotation": 90 + }, + "RIGHT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "7", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C402\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=smile, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=7, rotation=180]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=M, rotation=180] [RIGHT: patternId=D, rotation=270]\n [FRONT: patternId=circle, rotation=90]\n [BOTTOM: patternId=smile, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=7, rotation=180\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=M, rotation=180\n- RIGHT: patternId=D, rotation=270\n- FRONT: patternId=circle, rotation=90\n- BOTTOM: patternId=smile, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C403.json b/cube2/data/C403.json new file mode 100644 index 0000000000000000000000000000000000000000..0148ac7a8f24c15e1021d5442699334ad3ead94c --- /dev/null +++ b/cube2/data/C403.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C403", + "name": "Goal Roll C403", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "diamond", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "N", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "triangle", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "plus", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "?", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "diamond", + "rotation": 270 + }, + "FRONT": { + "patternId": "N", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "triangle", + "rotation": 90 + }, + "LEFT": { + "patternId": "plus", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 5, + "stepNumber": 6, + "patternId": "triangle", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C403/initial_net.png", + "targetTopFaceImage": "../images/C403/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 6, + "targetRotationOffset": 90, + "levelId": 403, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-403.json" + }, + "rollSequence": [ + "W", + "W", + "E", + "N", + "S", + "S", + "W", + "W", + "N", + "E" + ], + "observedPathFaces": [ + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "W", + "E", + "N", + "S", + "S", + "W", + "W", + "N", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "diamond", + "rotation": 270 + }, + "FRONT": { + "patternId": "N", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "triangle", + "rotation": 90 + }, + "LEFT": { + "patternId": "plus", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C403\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=triangle, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=triangle, rotation=90]\n[LEFT: patternId=plus, rotation=0] [TOP: patternId=diamond, rotation=270] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=N, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=triangle, rotation=90\n- LEFT: patternId=plus, rotation=0\n- TOP: patternId=diamond, rotation=270\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=N, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C404.json b/cube2/data/C404.json new file mode 100644 index 0000000000000000000000000000000000000000..26c85f7a4004c4f11147c48243530334ae03294d --- /dev/null +++ b/cube2/data/C404.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C404", + "name": "Goal Roll C404", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "O", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "6", + "rotation": 90 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "9", + "rotation": 0 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "3", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "?", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "O", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 90 + }, + "BACK": { + "patternId": "9", + "rotation": 0 + }, + "LEFT": { + "patternId": "3", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "3", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C404/initial_net.png", + "targetTopFaceImage": "../images/C404/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 4, + "targetRotationOffset": 270, + "levelId": 404, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-404.json" + }, + "rollSequence": [ + "W", + "W", + "N", + "W", + "S", + "E", + "W", + "S", + "E", + "E" + ], + "observedPathFaces": [ + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "W", + "N", + "W", + "S", + "E", + "W", + "S", + "E", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "O", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 90 + }, + "BACK": { + "patternId": "9", + "rotation": 0 + }, + "LEFT": { + "patternId": "3", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C404\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=3, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=9, rotation=0]\n[LEFT: patternId=3, rotation=90] [TOP: patternId=O, rotation=90] [RIGHT: patternId=6, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=9, rotation=0\n- LEFT: patternId=3, rotation=90\n- TOP: patternId=O, rotation=90\n- RIGHT: patternId=6, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C405.json b/cube2/data/C405.json new file mode 100644 index 0000000000000000000000000000000000000000..f0fbdbd6ee804986694ee6c8e8f33c99a689c83c --- /dev/null +++ b/cube2/data/C405.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C405", + "name": "Goal Roll C405", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "N", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "9", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "D", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "plus", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "L", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "?", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "9", + "rotation": 0 + }, + "RIGHT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "L", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 7, + "stepNumber": 8, + "patternId": "9", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C405/initial_net.png", + "targetTopFaceImage": "../images/C405/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 8, + "targetRotationOffset": 180, + "levelId": 405, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-405.json" + }, + "rollSequence": [ + "E", + "S", + "E", + "N", + "E", + "S", + "E", + "N", + "W", + "E" + ], + "observedPathFaces": [ + { + "patternId": "D", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "S", + "E", + "N", + "E", + "S", + "E", + "N", + "W", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "9", + "rotation": 0 + }, + "RIGHT": { + "patternId": "D", + "rotation": 0 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "L", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C405\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=9, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=plus, rotation=90]\n[LEFT: patternId=L, rotation=180] [TOP: patternId=N, rotation=180] [RIGHT: patternId=D, rotation=0]\n [FRONT: patternId=9, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=plus, rotation=90\n- LEFT: patternId=L, rotation=180\n- TOP: patternId=N, rotation=180\n- RIGHT: patternId=D, rotation=0\n- FRONT: patternId=9, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C406.json b/cube2/data/C406.json new file mode 100644 index 0000000000000000000000000000000000000000..14d9ef3d13eee054eff971b801f3e9e01a05ebc9 --- /dev/null +++ b/cube2/data/C406.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C406", + "name": "Goal Roll C406", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "P", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "Y", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "X", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "L", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "Y", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "C", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "P", + "rotation": 180 + }, + "FRONT": { + "patternId": "Y", + "rotation": 0 + }, + "RIGHT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "L", + "rotation": 180 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 6, + "stepNumber": 7, + "patternId": "Y", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C406/initial_net.png", + "targetTopFaceImage": "../images/C406/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 7, + "targetRotationOffset": 90, + "levelId": 406, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-406.json" + }, + "rollSequence": [ + "E", + "S", + "W", + "E", + "S", + "E", + "S", + "S", + "S", + "W" + ], + "observedPathFaces": [ + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "S", + "W", + "E", + "S", + "E", + "S", + "S", + "S", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "P", + "rotation": 180 + }, + "FRONT": { + "patternId": "Y", + "rotation": 0 + }, + "RIGHT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "L", + "rotation": 180 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "C", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C406\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=Y, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=L, rotation=180]\n[LEFT: patternId=Y, rotation=270] [TOP: patternId=P, rotation=180] [RIGHT: patternId=X, rotation=0]\n [FRONT: patternId=Y, rotation=0]\n [BOTTOM: patternId=C, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=L, rotation=180\n- LEFT: patternId=Y, rotation=270\n- TOP: patternId=P, rotation=180\n- RIGHT: patternId=X, rotation=0\n- FRONT: patternId=Y, rotation=0\n- BOTTOM: patternId=C, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C407.json b/cube2/data/C407.json new file mode 100644 index 0000000000000000000000000000000000000000..1c0cc95278bb55e15613023f8377b265244df5ad --- /dev/null +++ b/cube2/data/C407.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C407", + "name": "Goal Roll C407", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "8", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "U", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "S", + "rotation": 90 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "B", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "arrow_down", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "2", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "8", + "rotation": 0 + }, + "FRONT": { + "patternId": "U", + "rotation": 180 + }, + "RIGHT": { + "patternId": "S", + "rotation": 90 + }, + "BACK": { + "patternId": "B", + "rotation": 180 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "2", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 0, + "stepNumber": 1, + "patternId": "S", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C407/initial_net.png", + "targetTopFaceImage": "../images/C407/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 1, + "targetRotationOffset": 180, + "levelId": 407, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-407.json" + }, + "rollSequence": [ + "W", + "W", + "N", + "S", + "W", + "S", + "W", + "S", + "W", + "N" + ], + "observedPathFaces": [ + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "W", + "N", + "S", + "W", + "S", + "W", + "S", + "W", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "8", + "rotation": 0 + }, + "FRONT": { + "patternId": "U", + "rotation": 180 + }, + "RIGHT": { + "patternId": "S", + "rotation": 90 + }, + "BACK": { + "patternId": "B", + "rotation": 180 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "2", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C407\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=S, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=B, rotation=180]\n[LEFT: patternId=arrow_down, rotation=90] [TOP: patternId=8, rotation=0] [RIGHT: patternId=S, rotation=90]\n [FRONT: patternId=U, rotation=180]\n [BOTTOM: patternId=2, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=B, rotation=180\n- LEFT: patternId=arrow_down, rotation=90\n- TOP: patternId=8, rotation=0\n- RIGHT: patternId=S, rotation=90\n- FRONT: patternId=U, rotation=180\n- BOTTOM: patternId=2, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C408.json b/cube2/data/C408.json new file mode 100644 index 0000000000000000000000000000000000000000..76ae160f0d9645a202cc33a790d9470986456b1b --- /dev/null +++ b/cube2/data/C408.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C408", + "name": "Goal Roll C408", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "2", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "M", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "L", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "Z", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "Q", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "A", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "2", + "rotation": 180 + }, + "FRONT": { + "patternId": "M", + "rotation": 270 + }, + "RIGHT": { + "patternId": "L", + "rotation": 180 + }, + "BACK": { + "patternId": "Z", + "rotation": 270 + }, + "LEFT": { + "patternId": "Q", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 8, + "stepNumber": 9, + "patternId": "Q", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C408/initial_net.png", + "targetTopFaceImage": "../images/C408/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 9, + "targetRotationOffset": 90, + "levelId": 408, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-408.json" + }, + "rollSequence": [ + "S", + "W", + "S", + "S", + "W", + "N", + "W", + "S", + "S", + "W" + ], + "observedPathFaces": [ + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "W", + "S", + "S", + "W", + "N", + "W", + "S", + "S", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "2", + "rotation": 180 + }, + "FRONT": { + "patternId": "M", + "rotation": 270 + }, + "RIGHT": { + "patternId": "L", + "rotation": 180 + }, + "BACK": { + "patternId": "Z", + "rotation": 270 + }, + "LEFT": { + "patternId": "Q", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C408\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=Q, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Z, rotation=270]\n[LEFT: patternId=Q, rotation=90] [TOP: patternId=2, rotation=180] [RIGHT: patternId=L, rotation=180]\n [FRONT: patternId=M, rotation=270]\n [BOTTOM: patternId=A, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Z, rotation=270\n- LEFT: patternId=Q, rotation=90\n- TOP: patternId=2, rotation=180\n- RIGHT: patternId=L, rotation=180\n- FRONT: patternId=M, rotation=270\n- BOTTOM: patternId=A, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C409.json b/cube2/data/C409.json new file mode 100644 index 0000000000000000000000000000000000000000..ade84e72bc68d46ac3ffa7835e581069e572356f --- /dev/null +++ b/cube2/data/C409.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C409", + "name": "Goal Roll C409", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "N", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "V", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "P", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "A", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "M", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "K", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "V", + "rotation": 270 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + }, + "BACK": { + "patternId": "A", + "rotation": 180 + }, + "LEFT": { + "patternId": "M", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 5, + "stepNumber": 6, + "patternId": "K", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C409/initial_net.png", + "targetTopFaceImage": "../images/C409/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 6, + "targetRotationOffset": 180, + "levelId": 409, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-409.json" + }, + "rollSequence": [ + "N", + "W", + "S", + "E", + "S", + "E", + "E", + "S", + "S", + "E" + ], + "observedPathFaces": [ + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "W", + "S", + "E", + "S", + "E", + "E", + "S", + "S", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "V", + "rotation": 270 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + }, + "BACK": { + "patternId": "A", + "rotation": 180 + }, + "LEFT": { + "patternId": "M", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C409\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=K, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=A, rotation=180]\n[LEFT: patternId=M, rotation=180] [TOP: patternId=N, rotation=180] [RIGHT: patternId=P, rotation=0]\n [FRONT: patternId=V, rotation=270]\n [BOTTOM: patternId=K, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=A, rotation=180\n- LEFT: patternId=M, rotation=180\n- TOP: patternId=N, rotation=180\n- RIGHT: patternId=P, rotation=0\n- FRONT: patternId=V, rotation=270\n- BOTTOM: patternId=K, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C410.json b/cube2/data/C410.json new file mode 100644 index 0000000000000000000000000000000000000000..5875a5b49b4241d08d671c97a0374a671a4b0c2d --- /dev/null +++ b/cube2/data/C410.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C410", + "name": "Goal Roll C410", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "3", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "B", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "A", + "rotation": 90 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "4", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "C", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "circle", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "3", + "rotation": 0 + }, + "FRONT": { + "patternId": "B", + "rotation": 270 + }, + "RIGHT": { + "patternId": "A", + "rotation": 90 + }, + "BACK": { + "patternId": "4", + "rotation": 180 + }, + "LEFT": { + "patternId": "C", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "circle", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C410/initial_net.png", + "targetTopFaceImage": "../images/C410/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 2, + "targetRotationOffset": 90, + "levelId": 410, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-410.json" + }, + "rollSequence": [ + "N", + "N", + "E", + "E", + "E", + "S", + "S", + "S", + "N", + "W" + ], + "observedPathFaces": [ + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "N", + "E", + "E", + "E", + "S", + "S", + "S", + "N", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "3", + "rotation": 0 + }, + "FRONT": { + "patternId": "B", + "rotation": 270 + }, + "RIGHT": { + "patternId": "A", + "rotation": 90 + }, + "BACK": { + "patternId": "4", + "rotation": 180 + }, + "LEFT": { + "patternId": "C", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C410\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=circle, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=4, rotation=180]\n[LEFT: patternId=C, rotation=270] [TOP: patternId=3, rotation=0] [RIGHT: patternId=A, rotation=90]\n [FRONT: patternId=B, rotation=270]\n [BOTTOM: patternId=circle, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=4, rotation=180\n- LEFT: patternId=C, rotation=270\n- TOP: patternId=3, rotation=0\n- RIGHT: patternId=A, rotation=90\n- FRONT: patternId=B, rotation=270\n- BOTTOM: patternId=circle, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C411.json b/cube2/data/C411.json new file mode 100644 index 0000000000000000000000000000000000000000..54d8e4c77ecd10655d44a70ae791fa1f4ecdb937 --- /dev/null +++ b/cube2/data/C411.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C411", + "name": "Goal Roll C411", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "W", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "O", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "heart", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "6", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "arrow_up", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "Z", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "W", + "rotation": 180 + }, + "FRONT": { + "patternId": "O", + "rotation": 90 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 180 + }, + "BACK": { + "patternId": "6", + "rotation": 90 + }, + "LEFT": { + "patternId": "arrow_up", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "arrow_up", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C411/initial_net.png", + "targetTopFaceImage": "../images/C411/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 4, + "targetRotationOffset": 270, + "levelId": 411, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-411.json" + }, + "rollSequence": [ + "W", + "E", + "S", + "E", + "S", + "W", + "S", + "W", + "S", + "N" + ], + "observedPathFaces": [ + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "E", + "S", + "E", + "S", + "W", + "S", + "W", + "S", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "W", + "rotation": 180 + }, + "FRONT": { + "patternId": "O", + "rotation": 90 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 180 + }, + "BACK": { + "patternId": "6", + "rotation": 90 + }, + "LEFT": { + "patternId": "arrow_up", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C411\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=arrow_up, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=6, rotation=90]\n[LEFT: patternId=arrow_up, rotation=90] [TOP: patternId=W, rotation=180] [RIGHT: patternId=heart, rotation=180]\n [FRONT: patternId=O, rotation=90]\n [BOTTOM: patternId=Z, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=6, rotation=90\n- LEFT: patternId=arrow_up, rotation=90\n- TOP: patternId=W, rotation=180\n- RIGHT: patternId=heart, rotation=180\n- FRONT: patternId=O, rotation=90\n- BOTTOM: patternId=Z, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C412.json b/cube2/data/C412.json new file mode 100644 index 0000000000000000000000000000000000000000..8420337d3dff6c6e445595aee32613fbf9e6078a --- /dev/null +++ b/cube2/data/C412.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C412", + "name": "Goal Roll C412", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "U", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "S", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "1", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "arrow_up", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "1", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_right", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "U", + "rotation": 90 + }, + "FRONT": { + "patternId": "S", + "rotation": 180 + }, + "RIGHT": { + "patternId": "1", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 90 + }, + "LEFT": { + "patternId": "1", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "1", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C412/initial_net.png", + "targetTopFaceImage": "../images/C412/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 2, + "targetRotationOffset": 180, + "levelId": 412, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-412.json" + }, + "rollSequence": [ + "N", + "E", + "E", + "E", + "S", + "W", + "W", + "W", + "N", + "S" + ], + "observedPathFaces": [ + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "E", + "E", + "E", + "S", + "W", + "W", + "W", + "N", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "U", + "rotation": 90 + }, + "FRONT": { + "patternId": "S", + "rotation": 180 + }, + "RIGHT": { + "patternId": "1", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 90 + }, + "LEFT": { + "patternId": "1", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C412\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=1, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_up, rotation=90]\n[LEFT: patternId=1, rotation=90] [TOP: patternId=U, rotation=90] [RIGHT: patternId=1, rotation=0]\n [FRONT: patternId=S, rotation=180]\n [BOTTOM: patternId=arrow_right, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_up, rotation=90\n- LEFT: patternId=1, rotation=90\n- TOP: patternId=U, rotation=90\n- RIGHT: patternId=1, rotation=0\n- FRONT: patternId=S, rotation=180\n- BOTTOM: patternId=arrow_right, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C413.json b/cube2/data/C413.json new file mode 100644 index 0000000000000000000000000000000000000000..6fa0f99389f4dae0587c04c36c31b5405160e7af --- /dev/null +++ b/cube2/data/C413.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C413", + "name": "Goal Roll C413", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "O", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "5", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "5", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "circle", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "arrow_left", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "1", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "O", + "rotation": 180 + }, + "FRONT": { + "patternId": "5", + "rotation": 90 + }, + "RIGHT": { + "patternId": "5", + "rotation": 0 + }, + "BACK": { + "patternId": "circle", + "rotation": 270 + }, + "LEFT": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 5, + "stepNumber": 6, + "patternId": "1", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C413/initial_net.png", + "targetTopFaceImage": "../images/C413/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 6, + "targetRotationOffset": 180, + "levelId": 413, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-413.json" + }, + "rollSequence": [ + "S", + "W", + "N", + "N", + "W", + "N", + "N", + "W", + "E", + "S" + ], + "observedPathFaces": [ + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "W", + "N", + "N", + "W", + "N", + "N", + "W", + "E", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "O", + "rotation": 180 + }, + "FRONT": { + "patternId": "5", + "rotation": 90 + }, + "RIGHT": { + "patternId": "5", + "rotation": 0 + }, + "BACK": { + "patternId": "circle", + "rotation": 270 + }, + "LEFT": { + "patternId": "arrow_left", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C413\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=1, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=circle, rotation=270]\n[LEFT: patternId=arrow_left, rotation=90] [TOP: patternId=O, rotation=180] [RIGHT: patternId=5, rotation=0]\n [FRONT: patternId=5, rotation=90]\n [BOTTOM: patternId=1, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=circle, rotation=270\n- LEFT: patternId=arrow_left, rotation=90\n- TOP: patternId=O, rotation=180\n- RIGHT: patternId=5, rotation=0\n- FRONT: patternId=5, rotation=90\n- BOTTOM: patternId=1, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C414.json b/cube2/data/C414.json new file mode 100644 index 0000000000000000000000000000000000000000..cb92a91ba80fd020db0e661a7fa759021a71f578 --- /dev/null +++ b/cube2/data/C414.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C414", + "name": "Goal Roll C414", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "B", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "triangle", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "star", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "star", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "plus", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "9", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "FRONT": { + "patternId": "triangle", + "rotation": 180 + }, + "RIGHT": { + "patternId": "star", + "rotation": 180 + }, + "BACK": { + "patternId": "star", + "rotation": 180 + }, + "LEFT": { + "patternId": "plus", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "9", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 9, + "stepNumber": 10, + "patternId": "B", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C414/initial_net.png", + "targetTopFaceImage": "../images/C414/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 10, + "targetRotationOffset": 90, + "levelId": 414, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-414.json" + }, + "rollSequence": [ + "W", + "N", + "W", + "W", + "S", + "S", + "N", + "E", + "E", + "E" + ], + "observedPathFaces": [ + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "N", + "W", + "W", + "S", + "S", + "N", + "E", + "E", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "FRONT": { + "patternId": "triangle", + "rotation": 180 + }, + "RIGHT": { + "patternId": "star", + "rotation": 180 + }, + "BACK": { + "patternId": "star", + "rotation": 180 + }, + "LEFT": { + "patternId": "plus", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "9", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C414\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=B, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=star, rotation=180]\n[LEFT: patternId=plus, rotation=180] [TOP: patternId=B, rotation=270] [RIGHT: patternId=star, rotation=180]\n [FRONT: patternId=triangle, rotation=180]\n [BOTTOM: patternId=9, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=star, rotation=180\n- LEFT: patternId=plus, rotation=180\n- TOP: patternId=B, rotation=270\n- RIGHT: patternId=star, rotation=180\n- FRONT: patternId=triangle, rotation=180\n- BOTTOM: patternId=9, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C415.json b/cube2/data/C415.json new file mode 100644 index 0000000000000000000000000000000000000000..0088fe0e270e714a443b6f114150b31f83dbce98 --- /dev/null +++ b/cube2/data/C415.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C415", + "name": "Goal Roll C415", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "smile", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "G", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "8", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "Y", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "arrow_down", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "P", + "rotation": 180 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "smile", + "rotation": 270 + }, + "FRONT": { + "patternId": "G", + "rotation": 90 + }, + "RIGHT": { + "patternId": "8", + "rotation": 270 + }, + "BACK": { + "patternId": "Y", + "rotation": 270 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 180 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 4, + "stepNumber": 5, + "patternId": "8", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C415/initial_net.png", + "targetTopFaceImage": "../images/C415/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 5, + "targetRotationOffset": 90, + "levelId": 415, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-415.json" + }, + "rollSequence": [ + "S", + "S", + "E", + "S", + "S", + "N", + "W", + "W", + "N", + "W" + ], + "observedPathFaces": [ + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "S", + "E", + "S", + "S", + "N", + "W", + "W", + "N", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "smile", + "rotation": 270 + }, + "FRONT": { + "patternId": "G", + "rotation": 90 + }, + "RIGHT": { + "patternId": "8", + "rotation": 270 + }, + "BACK": { + "patternId": "Y", + "rotation": 270 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 180 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C415\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=8, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Y, rotation=270]\n[LEFT: patternId=arrow_down, rotation=180] [TOP: patternId=smile, rotation=270] [RIGHT: patternId=8, rotation=270]\n [FRONT: patternId=G, rotation=90]\n [BOTTOM: patternId=P, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Y, rotation=270\n- LEFT: patternId=arrow_down, rotation=180\n- TOP: patternId=smile, rotation=270\n- RIGHT: patternId=8, rotation=270\n- FRONT: patternId=G, rotation=90\n- BOTTOM: patternId=P, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C416.json b/cube2/data/C416.json new file mode 100644 index 0000000000000000000000000000000000000000..08a6cdaa4c4378f573fd71fbcd9b8a20df27e3b8 --- /dev/null +++ b/cube2/data/C416.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C416", + "name": "Goal Roll C416", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "G", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "plus", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "smile", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "arrow_down", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "6", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "?", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "G", + "rotation": 180 + }, + "FRONT": { + "patternId": "plus", + "rotation": 270 + }, + "RIGHT": { + "patternId": "smile", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 180 + }, + "LEFT": { + "patternId": "6", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 3, + "stepNumber": 4, + "patternId": "smile", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C416/initial_net.png", + "targetTopFaceImage": "../images/C416/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 4, + "targetRotationOffset": 270, + "levelId": 416, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-416.json" + }, + "rollSequence": [ + "S", + "W", + "S", + "N", + "W", + "W", + "W", + "E", + "E", + "S" + ], + "observedPathFaces": [ + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "W", + "S", + "N", + "W", + "W", + "W", + "E", + "E", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "G", + "rotation": 180 + }, + "FRONT": { + "patternId": "plus", + "rotation": 270 + }, + "RIGHT": { + "patternId": "smile", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 180 + }, + "LEFT": { + "patternId": "6", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C416\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=smile, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_down, rotation=180]\n[LEFT: patternId=6, rotation=90] [TOP: patternId=G, rotation=180] [RIGHT: patternId=smile, rotation=180]\n [FRONT: patternId=plus, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_down, rotation=180\n- LEFT: patternId=6, rotation=90\n- TOP: patternId=G, rotation=180\n- RIGHT: patternId=smile, rotation=180\n- FRONT: patternId=plus, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C417.json b/cube2/data/C417.json new file mode 100644 index 0000000000000000000000000000000000000000..690f79c71879dbed576185f85461430a445fe567 --- /dev/null +++ b/cube2/data/C417.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C417", + "name": "Goal Roll C417", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "K", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "heart", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "4", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "Z", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "square", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "K", + "rotation": 90 + }, + "FRONT": { + "patternId": "heart", + "rotation": 180 + }, + "RIGHT": { + "patternId": "4", + "rotation": 270 + }, + "BACK": { + "patternId": "Z", + "rotation": 90 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 6, + "stepNumber": 7, + "patternId": "heart", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C417/initial_net.png", + "targetTopFaceImage": "../images/C417/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 7, + "targetRotationOffset": 270, + "levelId": 417, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-417.json" + }, + "rollSequence": [ + "N", + "E", + "S", + "E", + "E", + "N", + "E", + "N", + "W", + "W" + ], + "observedPathFaces": [ + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "N", + "E", + "S", + "E", + "E", + "N", + "E", + "N", + "W", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "K", + "rotation": 90 + }, + "FRONT": { + "patternId": "heart", + "rotation": 180 + }, + "RIGHT": { + "patternId": "4", + "rotation": 270 + }, + "BACK": { + "patternId": "Z", + "rotation": 90 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C417\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=heart, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Z, rotation=90]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=K, rotation=90] [RIGHT: patternId=4, rotation=270]\n [FRONT: patternId=heart, rotation=180]\n [BOTTOM: patternId=square, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Z, rotation=90\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=K, rotation=90\n- RIGHT: patternId=4, rotation=270\n- FRONT: patternId=heart, rotation=180\n- BOTTOM: patternId=square, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C418.json b/cube2/data/C418.json new file mode 100644 index 0000000000000000000000000000000000000000..4d28a61ed2f057858a551fdbce6fcd14320c2c6b --- /dev/null +++ b/cube2/data/C418.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C418", + "name": "Goal Roll C418", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "plus", + "rotation": 180 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "N", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "J", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "1", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "arrow_right", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "plus", + "rotation": 180 + }, + "FRONT": { + "patternId": "N", + "rotation": 90 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 1, + "stepNumber": 2, + "patternId": "arrow_right", + "rotation": 90 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C418/initial_net.png", + "targetTopFaceImage": "../images/C418/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 2, + "targetRotationOffset": 270, + "levelId": 418, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-418.json" + }, + "rollSequence": [ + "E", + "E", + "S", + "W", + "E", + "S", + "W", + "N", + "W", + "W" + ], + "observedPathFaces": [ + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "E", + "S", + "W", + "E", + "S", + "W", + "N", + "W", + "W" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "plus", + "rotation": 180 + }, + "FRONT": { + "patternId": "N", + "rotation": 90 + }, + "RIGHT": { + "patternId": "J", + "rotation": 0 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C418\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=arrow_right, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=1, rotation=180]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=plus, rotation=180] [RIGHT: patternId=J, rotation=0]\n [FRONT: patternId=N, rotation=90]\n [BOTTOM: patternId=arrow_right, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=1, rotation=180\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=plus, rotation=180\n- RIGHT: patternId=J, rotation=0\n- FRONT: patternId=N, rotation=90\n- BOTTOM: patternId=arrow_right, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C419.json b/cube2/data/C419.json new file mode 100644 index 0000000000000000000000000000000000000000..f46b4307ebc5f6e598998605f06eddfb7607c0d9 --- /dev/null +++ b/cube2/data/C419.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C419", + "name": "Goal Roll C419", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "5", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "H", + "rotation": 90 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "2", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "3", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "R", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "?", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "5", + "rotation": 270 + }, + "FRONT": { + "patternId": "H", + "rotation": 90 + }, + "RIGHT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 90 + }, + "LEFT": { + "patternId": "R", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 6, + "stepNumber": 7, + "patternId": "H", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C419/initial_net.png", + "targetTopFaceImage": "../images/C419/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 7, + "targetRotationOffset": 180, + "levelId": 419, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-419.json" + }, + "rollSequence": [ + "S", + "E", + "S", + "W", + "S", + "E", + "S", + "E", + "E", + "N" + ], + "observedPathFaces": [ + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "E", + "S", + "W", + "S", + "E", + "S", + "E", + "E", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "5", + "rotation": 270 + }, + "FRONT": { + "patternId": "H", + "rotation": 90 + }, + "RIGHT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 90 + }, + "LEFT": { + "patternId": "R", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C419\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=H, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=3, rotation=90]\n[LEFT: patternId=R, rotation=90] [TOP: patternId=5, rotation=270] [RIGHT: patternId=2, rotation=270]\n [FRONT: patternId=H, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=3, rotation=90\n- LEFT: patternId=R, rotation=90\n- TOP: patternId=5, rotation=270\n- RIGHT: patternId=2, rotation=270\n- FRONT: patternId=H, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C420.json b/cube2/data/C420.json new file mode 100644 index 0000000000000000000000000000000000000000..456ebf138cb65bdb0d3183433d4aef2765f2e6c6 --- /dev/null +++ b/cube2/data/C420.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C420", + "name": "Goal Roll C420", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "H", + "rotation": 180 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "I", + "rotation": 180 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "K", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "I", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "8", + "rotation": 0 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "H", + "rotation": 180 + }, + "RIGHT": { + "patternId": "I", + "rotation": 180 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "I", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 0 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 4, + "stepNumber": 5, + "patternId": "I", + "rotation": 0 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C420/initial_net.png", + "targetTopFaceImage": "../images/C420/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 5, + "targetRotationOffset": 270, + "levelId": 420, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-420.json" + }, + "rollSequence": [ + "E", + "N", + "W", + "W", + "N", + "E", + "N", + "E", + "S", + "E" + ], + "observedPathFaces": [ + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "N", + "W", + "W", + "N", + "E", + "N", + "E", + "S", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "H", + "rotation": 180 + }, + "RIGHT": { + "patternId": "I", + "rotation": 180 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "I", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 0 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C420\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=I, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=K, rotation=270]\n[LEFT: patternId=I, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=I, rotation=180]\n [FRONT: patternId=H, rotation=180]\n [BOTTOM: patternId=8, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=K, rotation=270\n- LEFT: patternId=I, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=I, rotation=180\n- FRONT: patternId=H, rotation=180\n- BOTTOM: patternId=8, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C421.json b/cube2/data/C421.json new file mode 100644 index 0000000000000000000000000000000000000000..ec5823deafd33fa54f05fef2265acd6e6858c305 --- /dev/null +++ b/cube2/data/C421.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C421", + "name": "Goal Roll C421", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "V", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "C", + "rotation": 270 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "M", + "rotation": 90 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "3", + "rotation": 270 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "W", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "V", + "rotation": 0 + }, + "RIGHT": { + "patternId": "C", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 90 + }, + "LEFT": { + "patternId": "3", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 9, + "stepNumber": 10, + "patternId": "V", + "rotation": 180 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C421/initial_net.png", + "targetTopFaceImage": "../images/C421/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 10, + "targetRotationOffset": 270, + "levelId": 421, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-421.json" + }, + "rollSequence": [ + "E", + "W", + "S", + "E", + "W", + "E", + "N", + "W", + "N", + "N" + ], + "observedPathFaces": [ + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "W", + "S", + "E", + "W", + "E", + "N", + "W", + "N", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "V", + "rotation": 0 + }, + "RIGHT": { + "patternId": "C", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 90 + }, + "LEFT": { + "patternId": "3", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C421\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=V, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=M, rotation=90]\n[LEFT: patternId=3, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=C, rotation=270]\n [FRONT: patternId=V, rotation=0]\n [BOTTOM: patternId=W, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=90\n- LEFT: patternId=3, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=C, rotation=270\n- FRONT: patternId=V, rotation=0\n- BOTTOM: patternId=W, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C422.json b/cube2/data/C422.json new file mode 100644 index 0000000000000000000000000000000000000000..d67d23bbfed3f51d0f0912d9e650433f80bae9aa --- /dev/null +++ b/cube2/data/C422.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C422", + "name": "Goal Roll C422", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "5", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "H", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "E", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "circle", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "V", + "rotation": 90 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "1", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "5", + "rotation": 90 + }, + "FRONT": { + "patternId": "H", + "rotation": 0 + }, + "RIGHT": { + "patternId": "E", + "rotation": 0 + }, + "BACK": { + "patternId": "circle", + "rotation": 270 + }, + "LEFT": { + "patternId": "V", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 6, + "stepNumber": 7, + "patternId": "1", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C422/initial_net.png", + "targetTopFaceImage": "../images/C422/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 7, + "targetRotationOffset": 90, + "levelId": 422, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-422.json" + }, + "rollSequence": [ + "E", + "E", + "N", + "W", + "W", + "W", + "S", + "S", + "W", + "S" + ], + "observedPathFaces": [ + { + "patternId": "E", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "E", + "E", + "N", + "W", + "W", + "W", + "S", + "S", + "W", + "S" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "5", + "rotation": 90 + }, + "FRONT": { + "patternId": "H", + "rotation": 0 + }, + "RIGHT": { + "patternId": "E", + "rotation": 0 + }, + "BACK": { + "patternId": "circle", + "rotation": 270 + }, + "LEFT": { + "patternId": "V", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C422\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=1, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=circle, rotation=270]\n[LEFT: patternId=V, rotation=90] [TOP: patternId=5, rotation=90] [RIGHT: patternId=E, rotation=0]\n [FRONT: patternId=H, rotation=0]\n [BOTTOM: patternId=1, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=circle, rotation=270\n- LEFT: patternId=V, rotation=90\n- TOP: patternId=5, rotation=90\n- RIGHT: patternId=E, rotation=0\n- FRONT: patternId=H, rotation=0\n- BOTTOM: patternId=1, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C423.json b/cube2/data/C423.json new file mode 100644 index 0000000000000000000000000000000000000000..8b2fee3d033b9e9949ff0fd87f5c8f5d17e959fa --- /dev/null +++ b/cube2/data/C423.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C423", + "name": "Goal Roll C423", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "B", + "rotation": 270 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "heart", + "rotation": 270 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "F", + "rotation": 90 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "M", + "rotation": 180 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "?", + "rotation": 0 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "F", + "rotation": 270 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "FRONT": { + "patternId": "heart", + "rotation": 270 + }, + "RIGHT": { + "patternId": "F", + "rotation": 90 + }, + "BACK": { + "patternId": "M", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 270 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 2, + "stepNumber": 3, + "patternId": "B", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C423/initial_net.png", + "targetTopFaceImage": "../images/C423/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 3, + "targetRotationOffset": 270, + "levelId": 423, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-423.json" + }, + "rollSequence": [ + "S", + "E", + "N", + "E", + "S", + "E", + "N", + "W", + "N", + "E" + ], + "observedPathFaces": [ + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "S", + "E", + "N", + "E", + "S", + "E", + "N", + "W", + "N", + "E" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "FRONT": { + "patternId": "heart", + "rotation": 270 + }, + "RIGHT": { + "patternId": "F", + "rotation": 90 + }, + "BACK": { + "patternId": "M", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 270 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C423\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=B, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=M, rotation=180]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=B, rotation=270] [RIGHT: patternId=F, rotation=90]\n [FRONT: patternId=heart, rotation=270]\n [BOTTOM: patternId=F, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=180\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=B, rotation=270\n- RIGHT: patternId=F, rotation=90\n- FRONT: patternId=heart, rotation=270\n- BOTTOM: patternId=F, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +} diff --git a/cube2/data/C424.json b/cube2/data/C424.json new file mode 100644 index 0000000000000000000000000000000000000000..79060a5b892447496e059b76883b199a03598cf4 --- /dev/null +++ b/cube2/data/C424.json @@ -0,0 +1,246 @@ +{ + "taskType": "roll_to_target_top_face", + "code": "C424", + "name": "Goal Roll C424", + "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.", + "instructions": { + "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.", + "directionVocabulary": { + "N": "Up", + "S": "Down", + "W": "Left", + "E": "Right" + } + }, + "initialCube": { + "net": { + "layout": "reconstruction_cross", + "faceOrder": [ + "TOP", + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM" + ], + "cells": [ + { + "faceKey": "TOP", + "faceLabelZh": "TOP", + "row": 1, + "col": 1, + "patternId": "A", + "rotation": 90 + }, + { + "faceKey": "FRONT", + "faceLabelZh": "FRONT", + "row": 2, + "col": 1, + "patternId": "Z", + "rotation": 0 + }, + { + "faceKey": "RIGHT", + "faceLabelZh": "RIGHT", + "row": 1, + "col": 2, + "patternId": "U", + "rotation": 0 + }, + { + "faceKey": "BACK", + "faceLabelZh": "BACK", + "row": 0, + "col": 1, + "patternId": "diamond", + "rotation": 270 + }, + { + "faceKey": "LEFT", + "faceLabelZh": "LEFT", + "row": 1, + "col": 0, + "patternId": "D", + "rotation": 180 + }, + { + "faceKey": "BOTTOM", + "faceLabelZh": "BOTTOM", + "row": 3, + "col": 1, + "patternId": "heart", + "rotation": 90 + } + ] + }, + "solutionFaces": { + "TOP": { + "patternId": "A", + "rotation": 90 + }, + "FRONT": { + "patternId": "Z", + "rotation": 0 + }, + "RIGHT": { + "patternId": "U", + "rotation": 0 + }, + "BACK": { + "patternId": "diamond", + "rotation": 270 + }, + "LEFT": { + "patternId": "D", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 90 + } + } + }, + "targetTopFace": { + "sourceObservationIndex": 2, + "stepNumber": 3, + "patternId": "D", + "rotation": 270 + }, + "answers": { + "directions": [], + "moveCount": 0, + "referenceValid": false + }, + "imagePaths": { + "initialNetImage": "../images/C424/initial_net.png", + "targetTopFaceImage": "../images/C424/target_top_face.png" + }, + "metadata": { + "difficulty": 5, + "tier": 5, + "targetStepNumber": 3, + "targetRotationOffset": 180, + "levelId": 424, + "moveCount": 10, + "sourceLevelPath": "levels/reconstruct/generated-424.json" + }, + "rollSequence": [ + "W", + "N", + "N", + "E", + "N", + "E", + "E", + "N", + "E", + "N" + ], + "observedPathFaces": [ + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "answer": { + "directions": [ + "W", + "N", + "N", + "E", + "N", + "E", + "E", + "N", + "E", + "N" + ] + }, + "legacy_answer": { + "TOP": { + "patternId": "A", + "rotation": 90 + }, + "FRONT": { + "patternId": "Z", + "rotation": 0 + }, + "RIGHT": { + "patternId": "U", + "rotation": 0 + }, + "BACK": { + "patternId": "diamond", + "rotation": 270 + }, + "LEFT": { + "patternId": "D", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "heart", + "rotation": 90 + } + }, + "prompt": { + "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: \n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.", + "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C424\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=D, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=diamond, rotation=270]\n[LEFT: patternId=D, rotation=180] [TOP: patternId=A, rotation=90] [RIGHT: patternId=U, rotation=0]\n [FRONT: patternId=Z, rotation=0]\n [BOTTOM: patternId=heart, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=diamond, rotation=270\n- LEFT: patternId=D, rotation=180\n- TOP: patternId=A, rotation=90\n- RIGHT: patternId=U, rotation=0\n- FRONT: patternId=Z, rotation=0\n- BOTTOM: patternId=heart, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it." + } +}