| { | |
| "taskType": "roll_to_target_top_face", | |
| "code": "C005", | |
| "name": "Goal Roll C005", | |
| "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": "?", | |
| "rotation": 0 | |
| }, | |
| { | |
| "faceKey": "BACK", | |
| "faceLabelZh": "BACK", | |
| "row": 0, | |
| "col": 1, | |
| "patternId": "M", | |
| "rotation": 0 | |
| }, | |
| { | |
| "faceKey": "LEFT", | |
| "faceLabelZh": "LEFT", | |
| "row": 1, | |
| "col": 0, | |
| "patternId": "arrow_left", | |
| "rotation": 270 | |
| }, | |
| { | |
| "faceKey": "BOTTOM", | |
| "faceLabelZh": "BOTTOM", | |
| "row": 3, | |
| "col": 1, | |
| "patternId": "?", | |
| "rotation": 0 | |
| } | |
| ] | |
| }, | |
| "solutionFaces": { | |
| "TOP": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| }, | |
| "FRONT": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| }, | |
| "RIGHT": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| }, | |
| "BACK": { | |
| "patternId": "M", | |
| "rotation": 0 | |
| }, | |
| "LEFT": { | |
| "patternId": "arrow_left", | |
| "rotation": 270 | |
| }, | |
| "BOTTOM": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| } | |
| } | |
| }, | |
| "targetTopFace": { | |
| "sourceObservationIndex": 0, | |
| "stepNumber": 1, | |
| "patternId": "M", | |
| "rotation": 90 | |
| }, | |
| "answers": { | |
| "directions": [], | |
| "moveCount": 0, | |
| "referenceValid": false | |
| }, | |
| "imagePaths": { | |
| "initialNetImage": "../images/C005/initial_net.png", | |
| "targetTopFaceImage": "../images/C005/target_top_face.png" | |
| }, | |
| "metadata": { | |
| "difficulty": 1, | |
| "tier": 1, | |
| "targetStepNumber": 1, | |
| "targetRotationOffset": 270, | |
| "levelId": 5, | |
| "moveCount": 2, | |
| "sourceLevelPath": "levels/reconstruct/generated-005.json" | |
| }, | |
| "rollSequence": [ | |
| "W", | |
| "N" | |
| ], | |
| "observedPathFaces": [ | |
| { | |
| "patternId": "arrow_left", | |
| "rotation": 90, | |
| "flipHorizontal": false, | |
| "flipVertical": true | |
| }, | |
| { | |
| "patternId": "M", | |
| "rotation": 90, | |
| "flipHorizontal": false, | |
| "flipVertical": true | |
| } | |
| ], | |
| "answer": { | |
| "directions": [ | |
| "W", | |
| "N" | |
| ] | |
| }, | |
| "legacy_answer": { | |
| "TOP": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| }, | |
| "FRONT": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| }, | |
| "RIGHT": { | |
| "patternId": "?", | |
| "rotation": 0 | |
| }, | |
| "BACK": { | |
| "patternId": "M", | |
| "rotation": 0 | |
| }, | |
| "LEFT": { | |
| "patternId": "arrow_left", | |
| "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: <one-line 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: C005\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=M, 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=M, rotation=0]\n[LEFT: patternId=arrow_left, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=0\n- LEFT: patternId=arrow_left, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\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|S|E|W>\", ...]}\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." | |
| } | |
| } | |