diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f07debeb0287e9147bbb52528b4610a96a86cbe1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 SimVerse Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this dataset and associated documentation files (the "Dataset"), to deal +in the Dataset without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Dataset, and to permit persons to whom the Dataset is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Dataset. + +THE DATASET IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE DATASET OR THE USE OR OTHER DEALINGS IN THE +DATASET. diff --git a/README.md b/README.md index 7be5fc7f47d5db027d120b8024982df93db95b74..908946cb4b773f5e294e8407a0754282ae0fb474 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,173 @@ --- license: mit +task_categories: + - visual-question-answering + - text-generation +language: + - en +size_categories: + - 1K ⚠️ **Anonymized for double-blind review.** This dataset is currently undergoing peer review. It is hosted under an anonymous account dedicated to the review process; the author and citation fields are deliberately unfilled. Permanent ownership and citation information will be added after the review concludes. Please do not attempt to deanonymize the maintainers of this dataset during review. + +A multi-task benchmark for evaluating multimodal LLMs on **interactive simulation puzzles**. Five independent tasks that share a uniform prompt skeleton and a uniform output contract, so cross-task comparisons are meaningfully apples-to-apples. + +## What's in this dataset + +| Config | Records | Modality | Output | +|---|---|---|---| +| `voi` | 600 | images (target + base shapes) | shape placements | +| `cube1` | 502 | images (blank net + path) | face → patternId map | +| `cube2` | 502 | images (initial net + target) | roll direction sequence | +| `lamp` | 610 | image (arm + obstacles) | per-joint angle list | +| `cutrope` | 272 | gameplay video | text command script | + +Total: **2,486** levels across 5 tasks. + +## Quickstart + +```python +from datasets import load_dataset + +# Load one task config +ds = load_dataset("Sayaka123/simverse2026", "lamp") +example = ds["test"][0] + +# Each example is fully self-contained: +print(example["prompt"]["system"]) # 5-section system prompt text +print(example["prompt"]["user"]) # 9-section user prompt text +print(example["answer"]) # gold answer in the locked schema +print(example["images_relative_to_config"]) # paths to media (relative to this config dir) +``` + +The `prompt` field contains the **exact text** the original benchmark presented to models — see [`docs/PROMPT_SKELETON.md`](https://github.com/Sayaka123/simverse2026/blob/main/docs/PROMPT_SKELETON.md) for the canonical 5-section system + 9-section user structure shared by all five tasks. + +## Output contract (all five tasks) + +Every task asks the model to end its reply with a single line: + +``` +FINAL_JSON: +``` + +The JSON's schema is fixed per task (see the per-config README for shape). The dataset's `answer` field uses the **same** schema, so one JSON loader handles both model output and ground truth. + +| Task | `answer` schema | +|---|---| +| `voi` | `{"placements": [{"shape", "angle", "vertex", "grid"}, ...]}` | +| `cube1` | `{"faces": {TOP: {patternId, rotation}, ...}}` | +| `cube2` | `{"directions": ["N","S","E","W", ...]}` (open-ended; engine validates) | +| `lamp` | `{"actions": [{"joint", "angle"}, ...]}` | +| `cutrope` | `{"commands": "...", "reason": "...", "confidence": 0..1}` (open-ended; simulator validates) | + +## Files in each config + +``` +/ +├── test.jsonl # one JSON object per line — HF-auto-loadable +├── data/ # same records, split into per-level files (frontend-compatible) +└── images/ or videos/ # binary media referenced by the JSON +``` + +`cube1` and `cube2` additionally ship a `catalog.json` (the frontend's index/manifest), and `cutrope` additionally ships a `source/` mirror of the original frontend level files. + +The per-record fields visible in `test.jsonl` are a superset of what's in `data/`. Two extra helper fields appear only in JSONL records: + +| Field | Purpose | +|---|---| +| `__sample_id__` | The canonical level id (e.g. `"lamp-000"`, `"C123"`) — handy as a primary key. | +| `images_relative_to_config` (or `video_relative_to_config`) | Media paths rewritten to be relative to the config root, so they resolve from the `Image()` / `Video()` feature loader without further normalization. | + +The original media paths inside the JSON record (e.g. `imageAssets.target` for VOI, `image_paths.blank_net_image` for cube1, `video.path` for cutrope) are preserved as the canonical task-native fields — use either depending on your loader. + +## Reproducing the benchmark + +Each record carries the **complete** prompt the benchmark submits to the model. To reproduce a run from scratch: + +1. Read `prompt.system` and `prompt.user` from the record. +2. Attach the referenced media (image/video) using either `images_relative_to_config` or the task-native field. +3. Submit to your model with whatever multimodal protocol it accepts. +4. Extract the line starting with `FINAL_JSON:` from the reply, parse it as JSON. +5. Compare against `answer` (or invoke the per-task validator from the [SimVerse repo](https://github.com/Sayaka123/simverse2026)). + +The accompanying code at includes the parser, validator, and runner for every config. + +## Per-config details + +- [`voi/README.md`](voi/README.md) +- [`cube1/README.md`](cube1/README.md) +- [`cube2/README.md`](cube2/README.md) +- [`lamp/README.md`](lamp/README.md) +- [`cutrope/README.md`](cutrope/README.md) + +## Responsible-AI metadata + +The full **datasheet** (Gebru et al. 2018, 7-section format) is in [`datasheet.md`](datasheet.md). The machine-readable RAI metadata is in [`croissant.json`](croissant.json) (Croissant 1.0, including the RAI extension). A human summary: + +- **Data collection.** All five tasks are programmatically generated. VOI uses a polygon-rasterization XOR generator; cube1/cube2 use a Python cube-state simulator; lamp uses a forward-kinematics generator with axis-aligned obstacle placement; cutrope is built on top of the open-source [yell0wsuit/cuttherope-h5dx](https://github.com/yell0wsuit/cuttherope-h5dx) HTML5 port (MIT-licensed) by recording deterministic gameplay clips and authoring matching command scripts. **No human subjects or real-world data were involved.** +- **Annotation protocol.** Reference solutions are produced by the same generators that create each puzzle. For closed-form tasks (VOI, cube1, lamp), the answer is uniquely determined and machine-verifiable. For open-ended tasks (cube2, cutrope), the dataset's `answer` field carries one known-valid reference solution; validators run the underlying engine against the model's actual output rather than performing string equality, so multiple correct answers earn full credit. +- **Limitations.** Synthetic puzzles in fixed visual styles per task — models may learn render-style shortcuts. All prompts are English-only. cube1 includes `?` sentinel patterns when faces are under-determined; downstream uses outside the SimVerse evaluation flow may need to filter these. Reference solutions for open-ended tasks are non-unique, so simple string-match scoring is inappropriate; use the bundled engine-based validator. +- **Biases.** Each task's visual style is uniform across its records, which can bias evaluations toward render-style recognition rather than the reasoning skill the task is intended to probe. Reference solutions for open-ended tasks favor specific solution paths even when other paths are equally valid. Object-count distributions in cutrope reflect the upstream yell0wsuit corpus. +- **Personal / sensitive information.** **None.** Fully synthetic; the dataset contains no personally identifiable information, no human-subject data, and no sensitive content. +- **Intended use cases.** Held-out benchmarking of multimodal LLMs on (a) spatial-pattern reconstruction, (b) multi-step planning under physical constraints, and (c) short-horizon video-to-program inference. **Not** a held-out training set, **not** a real-world capability predictor, **not** a substitute for application-specific evaluation. +- **Social impact.** Low. Synthetic abstract puzzles unlikely to encode harmful content. Primary risk: benchmark gaming via render-style overfitting if widely adopted. +- **Maintenance.** All levels are deterministically regenerable from the generators in the accompanying code repository (linked from this card under the post-acceptance camera-ready URL). Schema changes are released as new versioned snapshots. + +## NeurIPS 2026 compliance + +This dataset is prepared for the [NeurIPS 2026 Datasets & Benchmarks track](https://neurips.cc/Conferences/2026/EvaluationsDatasetsHosting): + +- ✅ Hosted on Hugging Face (one of the supported platforms with auto-Croissant generation) +- ✅ Croissant 1.0 metadata file at [`croissant.json`](croissant.json), with both Core and minimum-RAI fields +- ✅ Open license (MIT) declared in both the dataset card YAML and Croissant +- ✅ RAI items addressed in this README and machine-readable in `croissant.json` +- ✅ Anonymized for double-blind review (see notice above) + +Reviewers can validate the Croissant file via . + +## Citation + +```bibtex +@dataset{simverse_2026, + title = {SimVerse: A Multi-Task Benchmark for Multimodal Reasoning on Interactive Simulation Puzzles}, + author = {}, + year = {2026}, + url = {https://huggingface.co/datasets/Sayaka123/simverse2026} +} +``` + +## License + +MIT — see [LICENSE](LICENSE). diff --git a/cube1/data/C321.json b/cube1/data/C321.json new file mode 100644 index 0000000000000000000000000000000000000000..f1c09320bb20a2a76af12d1f4e3f231b03801d04 --- /dev/null +++ b/cube1/data/C321.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C321", + "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 -> E -> E -> N -> S -> S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "E", + "E", + "N", + "S", + "S", + "W" + ], + "observed_path_faces": [ + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C321_path_sequence.png" + }, + "metadata": { + "level_id": 321, + "name": "Reconstruct 321", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-321.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "O", + "smile", + "T", + "X", + "I", + "diamond" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "O", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 270 + }, + "FRONT": { + "patternId": "smile", + "rotation": 270 + }, + "BACK": { + "patternId": "X", + "rotation": 90 + }, + "LEFT": { + "patternId": "I", + "rotation": 90 + }, + "RIGHT": { + "patternId": "T", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "diamond", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "smile", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "X", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "I", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "diamond", + "rotation": 0, + "x": 4, + "y": 1 + }, + { + "patternId": "I", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "O", + "rotation": 270, + "x": 4, + "y": 3 + }, + { + "patternId": "X", + "rotation": 180, + "x": 3, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM", + "LEFT", + "TOP", + "BACK" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "BACK", + "LEFT", + "BOTTOM", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "O", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 270 + }, + "FRONT": { + "patternId": "smile", + "rotation": 270 + }, + "BACK": { + "patternId": "X", + "rotation": 270 + }, + "LEFT": { + "patternId": "I", + "rotation": 180 + }, + "RIGHT": { + "patternId": "T", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "O", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 270 + }, + "FRONT": { + "patternId": "smile", + "rotation": 270 + }, + "BACK": { + "patternId": "X", + "rotation": 270 + }, + "LEFT": { + "patternId": "I", + "rotation": 180 + }, + "RIGHT": { + "patternId": "T", + "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: C321\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> E -> E -> N -> S -> S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=smile, rotation=270, flipVertical=true\n- step 2: patternId=T, rotation=270, flipVertical=true\n- step 3: patternId=X, rotation=90, flipVertical=true\n- step 4: patternId=I, rotation=90, flipVertical=true\n- step 5: patternId=diamond, rotation=0, flipVertical=true\n- step 6: patternId=I, rotation=90, flipVertical=true\n- step 7: patternId=O, rotation=270, flipVertical=true\n- step 8: patternId=X, rotation=180, flipVertical=true\n- allowed patternId values for this task: smile, T, X, I, diamond, 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/C322.json b/cube1/data/C322.json new file mode 100644 index 0000000000000000000000000000000000000000..c1e05d10500d5cf541fa04b496d2cb1d508e2f5d --- /dev/null +++ b/cube1/data/C322.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C322", + "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 -> S -> W -> E -> W -> W -> S -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "S", + "W", + "E", + "W", + "W", + "S", + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C322_path_sequence.png" + }, + "metadata": { + "level_id": 322, + "name": "Reconstruct 322", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-322.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "circle", + "star", + "heart", + "B", + "T", + "J" + ], + "start_x": 4, + "start_y": 2, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "circle", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 270 + }, + "LEFT": { + "patternId": "T", + "rotation": 90 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "J", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "B", + "rotation": 90, + "x": 4, + "y": 1 + }, + { + "patternId": "J", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "T", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "J", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "T", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "star", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "heart", + "rotation": 180, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "BACK", + "BOTTOM", + "LEFT", + "BOTTOM", + "LEFT", + "TOP", + "FRONT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "BACK", + "BOTTOM", + "LEFT", + "TOP", + "FRONT", + "RIGHT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "circle", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 90 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "circle", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 0 + }, + "BACK": { + "patternId": "B", + "rotation": 90 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "heart", + "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: C322\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> S -> W -> E -> W -> W -> S -> N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=B, rotation=90, flipVertical=true\n- step 2: patternId=J, rotation=0, flipVertical=true\n- step 3: patternId=T, rotation=0, flipVertical=true\n- step 4: patternId=J, rotation=0, flipVertical=true\n- step 5: patternId=T, rotation=0, flipVertical=true\n- step 6: patternId=circle, rotation=180, flipVertical=true\n- step 7: patternId=star, rotation=180, flipVertical=true\n- step 8: patternId=circle, rotation=180, flipVertical=true\n- step 9: patternId=heart, rotation=180, flipVertical=true\n- allowed patternId values for this task: B, J, T, circle, star, 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/C323.json b/cube1/data/C323.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2e314bfc6dbf445e530f01be50f3ecaa52e6ba --- /dev/null +++ b/cube1/data/C323.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C323", + "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 -> W -> W -> S -> S -> W -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "W", + "W", + "S", + "S", + "W", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "9", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C323_path_sequence.png" + }, + "metadata": { + "level_id": 323, + "name": "Reconstruct 323", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-323.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_left", + "P", + "9", + "arrow_down", + "T", + "D" + ], + "start_x": 4, + "start_y": 2, + "grid_width": 7, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 180 + }, + "FRONT": { + "patternId": "P", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 270 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "9", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "D", + "rotation": 180, + "x": 4, + "y": 2 + }, + { + "patternId": "9", + "rotation": 180, + "x": 5, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 0, + "x": 5, + "y": 1 + }, + { + "patternId": "D", + "rotation": 90, + "x": 4, + "y": 1 + }, + { + "patternId": "P", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "9", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_left", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "P", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "T", + "rotation": 270, + "x": 1, + "y": 4 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "BOTTOM", + "FRONT", + "RIGHT", + "BACK", + "TOP", + "FRONT", + "LEFT" + ], + "required_slots": [ + "RIGHT", + "BACK", + "BOTTOM", + "FRONT", + "TOP", + "LEFT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 180 + }, + "FRONT": { + "patternId": "P", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 90 + }, + "LEFT": { + "patternId": "T", + "rotation": 270 + }, + "RIGHT": { + "patternId": "9", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 180 + }, + "FRONT": { + "patternId": "P", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 90 + }, + "LEFT": { + "patternId": "T", + "rotation": 270 + }, + "RIGHT": { + "patternId": "9", + "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: C323\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> W -> W -> S -> S -> W -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=9, rotation=180, flipVertical=true\n- step 2: patternId=arrow_down, rotation=0, flipVertical=true\n- step 3: patternId=D, rotation=90, flipVertical=true\n- step 4: patternId=P, rotation=90, flipVertical=true\n- step 5: patternId=9, rotation=0, flipVertical=true\n- step 6: patternId=arrow_down, rotation=180, flipVertical=true\n- step 7: patternId=arrow_left, rotation=0, flipVertical=true\n- step 8: patternId=P, rotation=270, flipVertical=true\n- step 9: patternId=T, rotation=270, flipVertical=true\n- allowed patternId values for this task: 9, arrow_down, D, P, arrow_left, T, ?\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/C324.json b/cube1/data/C324.json new file mode 100644 index 0000000000000000000000000000000000000000..a0bf41a532b5a1f55368a58e917ddbb8ca21e501 --- /dev/null +++ b/cube1/data/C324.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C324", + "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 -> S -> S -> W -> S -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E", + "S", + "S", + "W", + "S", + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C324_path_sequence.png" + }, + "metadata": { + "level_id": 324, + "name": "Reconstruct 324", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-324.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Z", + "2", + "Y", + "L", + "arrow_down", + "W" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "Z", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "L", + "rotation": 90 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "W", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "Y", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "Z", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "2", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "W", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "Y", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "L", + "rotation": 0, + "x": 2, + "y": 4 + }, + { + "patternId": "Y", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "Z", + "rotation": 270, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP", + "FRONT", + "BOTTOM", + "RIGHT", + "BACK", + "RIGHT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "TOP", + "FRONT", + "BOTTOM", + "BACK" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "Z", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "L", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Y", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Z", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "L", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Y", + "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: C324\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E -> S -> S -> W -> S -> N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Y, rotation=180, flipVertical=true\n- step 2: patternId=Z, rotation=90, flipVertical=true\n- step 3: patternId=2, rotation=90, flipVertical=true\n- step 4: patternId=W, rotation=270, flipVertical=true\n- step 5: patternId=Y, rotation=0, flipVertical=true\n- step 6: patternId=L, rotation=0, flipVertical=true\n- step 7: patternId=Y, rotation=0, flipVertical=true\n- step 8: patternId=Z, rotation=270, flipVertical=true\n- allowed patternId values for this task: Y, Z, 2, W, 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/C325.json b/cube1/data/C325.json new file mode 100644 index 0000000000000000000000000000000000000000..1a466ae4a6bec1495dacd6e1d01bf250a6091f40 --- /dev/null +++ b/cube1/data/C325.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C325", + "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 -> E -> E -> N -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "E", + "E", + "E", + "N", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C325_path_sequence.png" + }, + "metadata": { + "level_id": 325, + "name": "Reconstruct 325", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-325.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "M", + "D", + "I", + "T", + "S", + "arrow_left" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 7, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "M", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "S", + "rotation": 270 + }, + "RIGHT": { + "patternId": "I", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_left", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "I", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "D", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "M", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "T", + "rotation": 270, + "x": 4, + "y": 2 + }, + { + "patternId": "arrow_left", + "rotation": 90, + "x": 5, + "y": 2 + }, + { + "patternId": "I", + "rotation": 0, + "x": 5, + "y": 1 + }, + { + "patternId": "T", + "rotation": 180, + "x": 4, + "y": 1 + }, + { + "patternId": "arrow_left", + "rotation": 0, + "x": 4, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "TOP", + "BACK", + "BOTTOM", + "RIGHT", + "BACK", + "BOTTOM" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "M", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "I", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "M", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 270 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "I", + "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: C325\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> E -> E -> E -> N -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=I, rotation=270, flipVertical=true\n- step 2: patternId=D, rotation=0, flipVertical=true\n- step 3: patternId=M, rotation=180, flipVertical=true\n- step 4: patternId=T, rotation=270, flipVertical=true\n- step 5: patternId=arrow_left, rotation=90, flipVertical=true\n- step 6: patternId=I, rotation=0, flipVertical=true\n- step 7: patternId=T, rotation=180, flipVertical=true\n- step 8: patternId=arrow_left, rotation=0, flipVertical=true\n- allowed patternId values for this task: I, D, M, T, 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/C326.json b/cube1/data/C326.json new file mode 100644 index 0000000000000000000000000000000000000000..de85d058597054dc2b91b5c7c734676818aa1346 --- /dev/null +++ b/cube1/data/C326.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C326", + "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 -> E -> N -> E -> N -> E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "S", + "E", + "N", + "E", + "N", + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C326_path_sequence.png" + }, + "metadata": { + "level_id": 326, + "name": "Reconstruct 326", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-326.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "4", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "4", + "M", + "I", + "star", + "O", + "diamond" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 7, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "4", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 180 + }, + "FRONT": { + "patternId": "M", + "rotation": 0 + }, + "BACK": { + "patternId": "star", + "rotation": 180 + }, + "LEFT": { + "patternId": "O", + "rotation": 180 + }, + "RIGHT": { + "patternId": "I", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "diamond", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "I", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "M", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "O", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "4", + "rotation": 90, + "x": 3, + "y": 4 + }, + { + "patternId": "M", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "I", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "diamond", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "star", + "rotation": 270, + "x": 5, + "y": 2 + }, + { + "patternId": "O", + "rotation": 270, + "x": 5, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "LEFT", + "TOP", + "FRONT", + "RIGHT", + "BOTTOM", + "BACK", + "LEFT" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "LEFT", + "TOP", + "BOTTOM", + "BACK" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "4", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 180 + }, + "FRONT": { + "patternId": "M", + "rotation": 0 + }, + "BACK": { + "patternId": "star", + "rotation": 0 + }, + "LEFT": { + "patternId": "O", + "rotation": 270 + }, + "RIGHT": { + "patternId": "I", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "4", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "diamond", + "rotation": 180 + }, + "FRONT": { + "patternId": "M", + "rotation": 0 + }, + "BACK": { + "patternId": "star", + "rotation": 0 + }, + "LEFT": { + "patternId": "O", + "rotation": 270 + }, + "RIGHT": { + "patternId": "I", + "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: C326\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> S -> E -> N -> E -> N -> E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=I, rotation=180, flipVertical=true\n- step 2: patternId=M, rotation=90, flipVertical=true\n- step 3: patternId=O, rotation=270, flipVertical=true\n- step 4: patternId=4, rotation=90, flipVertical=true\n- step 5: patternId=M, rotation=0, flipVertical=true\n- step 6: patternId=I, rotation=90, flipVertical=true\n- step 7: patternId=diamond, rotation=90, flipVertical=true\n- step 8: patternId=star, rotation=270, flipVertical=true\n- step 9: patternId=O, rotation=270, flipVertical=true\n- allowed patternId values for this task: I, M, O, 4, diamond, 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/C327.json b/cube1/data/C327.json new file mode 100644 index 0000000000000000000000000000000000000000..7afdab8417d67f7aefd4269989f5986241df57c7 --- /dev/null +++ b/cube1/data/C327.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C327", + "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 -> N -> E -> W -> S -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "E", + "N", + "E", + "W", + "S", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "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/C327_path_sequence.png" + }, + "metadata": { + "level_id": 327, + "name": "Reconstruct 327", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-327.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "G", + "C", + "V", + "H", + "X", + "arrow_right" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "G", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "C", + "rotation": 270 + }, + "BACK": { + "patternId": "H", + "rotation": 0 + }, + "LEFT": { + "patternId": "X", + "rotation": 270 + }, + "RIGHT": { + "patternId": "V", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_right", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "V", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "H", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "G", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "X", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "C", + "rotation": 270, + "x": 4, + "y": 1 + }, + { + "patternId": "X", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "G", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "V", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "C", + "rotation": 90, + "x": 4, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "TOP", + "LEFT", + "FRONT", + "LEFT", + "TOP", + "RIGHT", + "FRONT" + ], + "required_slots": [ + "RIGHT", + "BACK", + "TOP", + "LEFT", + "FRONT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "G", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "C", + "rotation": 270 + }, + "BACK": { + "patternId": "H", + "rotation": 180 + }, + "LEFT": { + "patternId": "X", + "rotation": 0 + }, + "RIGHT": { + "patternId": "V", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "G", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "C", + "rotation": 270 + }, + "BACK": { + "patternId": "H", + "rotation": 180 + }, + "LEFT": { + "patternId": "X", + "rotation": 0 + }, + "RIGHT": { + "patternId": "V", + "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: C327\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> E -> N -> E -> W -> S -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=V, rotation=270, flipVertical=true\n- step 2: patternId=H, rotation=90, flipVertical=true\n- step 3: patternId=G, rotation=270, flipVertical=true\n- step 4: patternId=X, rotation=270, flipVertical=true\n- step 5: patternId=C, rotation=270, flipVertical=true\n- step 6: patternId=X, rotation=270, flipVertical=true\n- step 7: patternId=G, rotation=270, flipVertical=true\n- step 8: patternId=V, rotation=0, flipVertical=true\n- step 9: patternId=C, rotation=90, flipVertical=true\n- allowed patternId values for this task: V, H, G, X, 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/C328.json b/cube1/data/C328.json new file mode 100644 index 0000000000000000000000000000000000000000..4660832d62305e20d4878ba96d311ab93ad8a116 --- /dev/null +++ b/cube1/data/C328.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C328", + "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 -> S -> W -> W -> E -> S -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "S", + "W", + "W", + "E", + "S", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 0, + "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/C328_path_sequence.png" + }, + "metadata": { + "level_id": 328, + "name": "Reconstruct 328", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-328.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "K", + "F", + "M", + "plus", + "8", + "8" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "K", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 0 + }, + "BACK": { + "patternId": "plus", + "rotation": 180 + }, + "LEFT": { + "patternId": "8", + "rotation": 90 + }, + "RIGHT": { + "patternId": "M", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "8", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "F", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "M", + "rotation": 180, + "x": 4, + "y": 2 + }, + { + "patternId": "K", + "rotation": 180, + "x": 4, + "y": 3 + }, + { + "patternId": "F", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "8", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "F", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "8", + "rotation": 180, + "x": 3, + "y": 4 + }, + { + "patternId": "8", + "rotation": 0, + "x": 2, + "y": 4 + }, + { + "patternId": "M", + "rotation": 90, + "x": 1, + "y": 4 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "TOP", + "FRONT", + "BOTTOM", + "FRONT", + "LEFT", + "BOTTOM", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "TOP", + "BOTTOM", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "K", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "8", + "rotation": 180 + }, + "RIGHT": { + "patternId": "M", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "K", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 0 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "8", + "rotation": 180 + }, + "RIGHT": { + "patternId": "M", + "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: C328\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> S -> W -> W -> E -> S -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=F, rotation=0, flipVertical=true\n- step 2: patternId=M, rotation=180, flipVertical=true\n- step 3: patternId=K, rotation=180, flipVertical=true\n- step 4: patternId=F, rotation=90, flipVertical=true\n- step 5: patternId=8, rotation=270, flipVertical=true\n- step 6: patternId=F, rotation=90, flipVertical=true\n- step 7: patternId=8, rotation=180, flipVertical=true\n- step 8: patternId=8, rotation=0, flipVertical=true\n- step 9: patternId=M, rotation=90, flipVertical=true\n- allowed patternId values for this task: F, M, K, 8, ?\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/C329.json b/cube1/data/C329.json new file mode 100644 index 0000000000000000000000000000000000000000..04d8f59a757d02f0cd4fd8f5dcd59f156382d02f --- /dev/null +++ b/cube1/data/C329.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C329", + "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 -> S -> W -> S -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "W", + "S", + "W", + "S", + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "square", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C329_path_sequence.png" + }, + "metadata": { + "level_id": 329, + "name": "Reconstruct 329", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-329.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_right", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_right", + "square", + "circle", + "T", + "arrow_down", + "arrow_left" + ], + "start_x": 4, + "start_y": 1, + "grid_width": 6, + "grid_height": 8, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_right", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 90 + }, + "FRONT": { + "patternId": "square", + "rotation": 90 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 180 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_left", + "rotation": 90, + "x": 4, + "y": 1 + }, + { + "patternId": "square", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "T", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "arrow_right", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "square", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "arrow_down", + "rotation": 270, + "x": 1, + "y": 5 + }, + { + "patternId": "T", + "rotation": 90, + "x": 1, + "y": 6 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "BACK", + "TOP", + "RIGHT", + "FRONT", + "LEFT", + "BACK" + ], + "required_slots": [ + "FRONT", + "LEFT", + "BACK", + "TOP", + "RIGHT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_right", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "square", + "rotation": 90 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 270 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_right", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "square", + "rotation": 90 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 270 + }, + "RIGHT": { + "patternId": "circle", + "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: C329\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> W -> S -> W -> S -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=square, rotation=90, flipVertical=true\n- step 2: patternId=arrow_down, rotation=180, flipVertical=true\n- step 3: patternId=T, rotation=0, flipVertical=true\n- step 4: patternId=arrow_right, rotation=180, flipVertical=true\n- step 5: patternId=circle, rotation=90, flipVertical=true\n- step 6: patternId=square, rotation=180, flipVertical=true\n- step 7: patternId=arrow_down, rotation=270, flipVertical=true\n- step 8: patternId=T, rotation=90, flipVertical=true\n- allowed patternId values for this task: square, arrow_down, T, arrow_right, 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/C330.json b/cube1/data/C330.json new file mode 100644 index 0000000000000000000000000000000000000000..955de10083d8cc4840ca04b00785f77bee897145 --- /dev/null +++ b/cube1/data/C330.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C330", + "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 -> W -> W -> N -> E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N", + "N", + "W", + "W", + "N", + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C330_path_sequence.png" + }, + "metadata": { + "level_id": 330, + "name": "Reconstruct 330", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-330.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "S", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "S", + "T", + "G", + "J", + "W", + "T" + ], + "start_x": 4, + "start_y": 5, + "grid_width": 6, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "S", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 90 + }, + "FRONT": { + "patternId": "T", + "rotation": 270 + }, + "BACK": { + "patternId": "J", + "rotation": 270 + }, + "LEFT": { + "patternId": "W", + "rotation": 0 + }, + "RIGHT": { + "patternId": "G", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "T", + "rotation": 90, + "x": 4, + "y": 5 + }, + { + "patternId": "W", + "rotation": 270, + "x": 3, + "y": 5 + }, + { + "patternId": "J", + "rotation": 180, + "x": 3, + "y": 4 + }, + { + "patternId": "G", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "S", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "W", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "T", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "S", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "G", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "BACK", + "RIGHT", + "TOP", + "LEFT", + "FRONT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "BACK", + "RIGHT", + "TOP", + "FRONT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "S", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "T", + "rotation": 270 + }, + "BACK": { + "patternId": "J", + "rotation": 90 + }, + "LEFT": { + "patternId": "W", + "rotation": 90 + }, + "RIGHT": { + "patternId": "G", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "S", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "T", + "rotation": 270 + }, + "BACK": { + "patternId": "J", + "rotation": 90 + }, + "LEFT": { + "patternId": "W", + "rotation": 90 + }, + "RIGHT": { + "patternId": "G", + "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: C330\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N -> N -> W -> W -> N -> E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=W, rotation=270, flipVertical=true\n- step 2: patternId=J, rotation=180, flipVertical=true\n- step 3: patternId=G, rotation=90, flipVertical=true\n- step 4: patternId=S, rotation=180, flipVertical=true\n- step 5: patternId=W, rotation=90, flipVertical=true\n- step 6: patternId=T, rotation=0, flipVertical=true\n- step 7: patternId=S, rotation=270, flipVertical=true\n- step 8: patternId=G, rotation=180, flipVertical=true\n- allowed patternId values for this task: W, J, G, S, T, ?\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/C331.json b/cube1/data/C331.json new file mode 100644 index 0000000000000000000000000000000000000000..f0e26f9e33ce89a10314ff7e6e1e7e9d9e32739a --- /dev/null +++ b/cube1/data/C331.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C331", + "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 -> N -> N -> N -> E -> N -> E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "N", + "N", + "N", + "E", + "N", + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C331_path_sequence.png" + }, + "metadata": { + "level_id": 331, + "name": "Reconstruct 331", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-331.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "E", + "2", + "B", + "1", + "S", + "arrow_right" + ], + "start_x": 1, + "start_y": 5, + "grid_width": 6, + "grid_height": 8, + "true_solution_faces": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 90 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "S", + "rotation": 0 + }, + "RIGHT": { + "patternId": "B", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_right", + "rotation": 180, + "x": 1, + "y": 5 + }, + { + "patternId": "2", + "rotation": 90, + "x": 1, + "y": 6 + }, + { + "patternId": "B", + "rotation": 90, + "x": 2, + "y": 6 + }, + { + "patternId": "arrow_right", + "rotation": 90, + "x": 2, + "y": 5 + }, + { + "patternId": "S", + "rotation": 180, + "x": 2, + "y": 4 + }, + { + "patternId": "E", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "1", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "B", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "arrow_right", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "2", + "rotation": 270, + "x": 4, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "BOTTOM", + "LEFT", + "TOP", + "BACK", + "RIGHT", + "BOTTOM", + "FRONT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "BOTTOM", + "LEFT", + "TOP", + "BACK" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 90 + }, + "BACK": { + "patternId": "1", + "rotation": 0 + }, + "LEFT": { + "patternId": "S", + "rotation": 90 + }, + "RIGHT": { + "patternId": "B", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 90 + }, + "BACK": { + "patternId": "1", + "rotation": 0 + }, + "LEFT": { + "patternId": "S", + "rotation": 90 + }, + "RIGHT": { + "patternId": "B", + "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: C331\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> N -> N -> N -> E -> N -> E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=2, rotation=90, flipVertical=true\n- step 2: patternId=B, rotation=90, flipVertical=true\n- step 3: patternId=arrow_right, rotation=90, flipVertical=true\n- step 4: patternId=S, rotation=180, flipVertical=true\n- step 5: patternId=E, rotation=0, flipVertical=true\n- step 6: patternId=1, rotation=90, flipVertical=true\n- step 7: patternId=B, rotation=0, flipVertical=true\n- step 8: patternId=arrow_right, rotation=0, flipVertical=true\n- step 9: patternId=2, rotation=270, flipVertical=true\n- allowed patternId values for this task: 2, B, arrow_right, S, E, 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/C332.json b/cube1/data/C332.json new file mode 100644 index 0000000000000000000000000000000000000000..8dd4b601a39830b026b657350c579d992cd38394 --- /dev/null +++ b/cube1/data/C332.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C332", + "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 -> W -> E -> E -> N -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N", + "N", + "W", + "E", + "E", + "N", + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "square", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 180, + "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/C332_path_sequence.png" + }, + "metadata": { + "level_id": 332, + "name": "Reconstruct 332", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-332.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "N", + "T", + "O", + "diamond", + "square", + "Y" + ], + "start_x": 3, + "start_y": 5, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "Y", + "rotation": 90 + }, + "FRONT": { + "patternId": "T", + "rotation": 90 + }, + "BACK": { + "patternId": "diamond", + "rotation": 270 + }, + "LEFT": { + "patternId": "square", + "rotation": 90 + }, + "RIGHT": { + "patternId": "O", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "Y", + "rotation": 90, + "x": 3, + "y": 5 + }, + { + "patternId": "square", + "rotation": 0, + "x": 2, + "y": 5 + }, + { + "patternId": "diamond", + "rotation": 180, + "x": 2, + "y": 4 + }, + { + "patternId": "O", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "N", + "rotation": 0, + "x": 1, + "y": 3 + }, + { + "patternId": "O", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "Y", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "T", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "N", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "O", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "BACK", + "RIGHT", + "TOP", + "RIGHT", + "BOTTOM", + "FRONT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "BACK", + "RIGHT", + "TOP", + "BOTTOM", + "FRONT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "Y", + "rotation": 90 + }, + "FRONT": { + "patternId": "T", + "rotation": 90 + }, + "BACK": { + "patternId": "diamond", + "rotation": 90 + }, + "LEFT": { + "patternId": "square", + "rotation": 180 + }, + "RIGHT": { + "patternId": "O", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "Y", + "rotation": 90 + }, + "FRONT": { + "patternId": "T", + "rotation": 90 + }, + "BACK": { + "patternId": "diamond", + "rotation": 90 + }, + "LEFT": { + "patternId": "square", + "rotation": 180 + }, + "RIGHT": { + "patternId": "O", + "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: C332\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N -> N -> W -> E -> E -> N -> N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=square, rotation=0, flipVertical=true\n- step 2: patternId=diamond, rotation=180, flipVertical=true\n- step 3: patternId=O, rotation=0, flipVertical=true\n- step 4: patternId=N, rotation=0, flipVertical=true\n- step 5: patternId=O, rotation=0, flipVertical=true\n- step 6: patternId=Y, rotation=270, flipVertical=true\n- step 7: patternId=T, rotation=270, flipVertical=true\n- step 8: patternId=N, rotation=180, flipVertical=true\n- step 9: patternId=O, rotation=180, flipVertical=true\n- allowed patternId values for this task: square, diamond, O, N, Y, T, ?\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/C333.json b/cube1/data/C333.json new file mode 100644 index 0000000000000000000000000000000000000000..05cafd863204350611fd1847ebdb32b5a43281ec --- /dev/null +++ b/cube1/data/C333.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C333", + "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 -> E -> W -> N -> N -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "E", + "W", + "N", + "N", + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C333_path_sequence.png" + }, + "metadata": { + "level_id": 333, + "name": "Reconstruct 333", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-333.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "N", + "A", + "7", + "8", + "diamond", + "6" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "N", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 0 + }, + "FRONT": { + "patternId": "A", + "rotation": 180 + }, + "BACK": { + "patternId": "8", + "rotation": 270 + }, + "LEFT": { + "patternId": "diamond", + "rotation": 90 + }, + "RIGHT": { + "patternId": "7", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "6", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "A", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "7", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "8", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "7", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "6", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "diamond", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "8", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "7", + "rotation": 180, + "x": 4, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "BACK", + "RIGHT", + "BOTTOM", + "LEFT", + "BACK", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "BACK", + "BOTTOM", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 0 + }, + "FRONT": { + "patternId": "A", + "rotation": 180 + }, + "BACK": { + "patternId": "8", + "rotation": 90 + }, + "LEFT": { + "patternId": "diamond", + "rotation": 180 + }, + "RIGHT": { + "patternId": "7", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "6", + "rotation": 0 + }, + "FRONT": { + "patternId": "A", + "rotation": 180 + }, + "BACK": { + "patternId": "8", + "rotation": 90 + }, + "LEFT": { + "patternId": "diamond", + "rotation": 180 + }, + "RIGHT": { + "patternId": "7", + "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: C333\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> E -> W -> N -> N -> E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=A, rotation=180, flipVertical=true\n- step 2: patternId=7, rotation=0, flipVertical=true\n- step 3: patternId=8, rotation=270, flipVertical=true\n- step 4: patternId=7, rotation=0, flipVertical=true\n- step 5: patternId=6, rotation=270, flipVertical=true\n- step 6: patternId=diamond, rotation=270, flipVertical=true\n- step 7: patternId=8, rotation=90, flipVertical=true\n- step 8: patternId=7, rotation=180, flipVertical=true\n- allowed patternId values for this task: A, 7, 8, 6, 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/C334.json b/cube1/data/C334.json new file mode 100644 index 0000000000000000000000000000000000000000..769038f667b15c62235557107e966c3a166f20ea --- /dev/null +++ b/cube1/data/C334.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C334", + "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 -> N -> W -> N -> W -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "N", + "W", + "N", + "W", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C334_path_sequence.png" + }, + "metadata": { + "level_id": 334, + "name": "Reconstruct 334", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-334.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "O", + "O", + "Q", + "circle", + "smile", + "V" + ], + "start_x": 3, + "start_y": 2, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "O", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 180 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "circle", + "rotation": 180 + }, + "LEFT": { + "patternId": "smile", + "rotation": 270 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "V", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "O", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "Q", + "rotation": 180, + "x": 4, + "y": 3 + }, + { + "patternId": "V", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "O", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "smile", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "O", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "Q", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "O", + "rotation": 270, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "BOTTOM", + "FRONT", + "LEFT", + "TOP", + "RIGHT", + "FRONT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "BOTTOM", + "LEFT", + "TOP" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "O", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 180 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "smile", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "O", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 180 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "smile", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Q", + "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: C334\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> N -> W -> N -> W -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=O, rotation=180, flipVertical=true\n- step 2: patternId=Q, rotation=180, flipVertical=true\n- step 3: patternId=V, rotation=90, flipVertical=true\n- step 4: patternId=O, rotation=90, flipVertical=true\n- step 5: patternId=smile, rotation=180, flipVertical=true\n- step 6: patternId=O, rotation=0, flipVertical=true\n- step 7: patternId=Q, rotation=270, flipVertical=true\n- step 8: patternId=O, rotation=270, flipVertical=true\n- allowed patternId values for this task: O, Q, V, 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/C335.json b/cube1/data/C335.json new file mode 100644 index 0000000000000000000000000000000000000000..408bebaeaf46807738d1f1e8d44ae3abe3ba3bd6 --- /dev/null +++ b/cube1/data/C335.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C335", + "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 -> S -> E -> 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", + "W", + "S", + "E", + "S", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C335_path_sequence.png" + }, + "metadata": { + "level_id": 335, + "name": "Reconstruct 335", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-335.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "I", + "6", + "4", + "circle", + "C", + "M" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "I", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "M", + "rotation": 90 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "circle", + "rotation": 180 + }, + "LEFT": { + "patternId": "C", + "rotation": 0 + }, + "RIGHT": { + "patternId": "4", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "M", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "6", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "C", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "I", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "C", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "6", + "rotation": 180, + "x": 2, + "y": 4 + }, + { + "patternId": "I", + "rotation": 0, + "x": 1, + "y": 4 + }, + { + "patternId": "4", + "rotation": 270, + "x": 1, + "y": 5 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "BACK", + "TOP", + "LEFT", + "FRONT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "LEFT", + "BACK", + "TOP", + "RIGHT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "I", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "circle", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "RIGHT": { + "patternId": "4", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "I", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "circle", + "rotation": 0 + }, + "LEFT": { + "patternId": "C", + "rotation": 90 + }, + "RIGHT": { + "patternId": "4", + "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: C335\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> W -> S -> E -> S -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=270, flipVertical=true\n- step 2: patternId=C, rotation=0, flipVertical=true\n- step 3: patternId=circle, rotation=180, flipVertical=true\n- step 4: patternId=I, rotation=270, flipVertical=true\n- step 5: patternId=C, rotation=270, flipVertical=true\n- step 6: patternId=6, rotation=180, flipVertical=true\n- step 7: patternId=I, rotation=0, flipVertical=true\n- step 8: patternId=4, rotation=270, flipVertical=true\n- allowed patternId values for this task: 6, C, circle, I, 4, ?\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/C336.json b/cube1/data/C336.json new file mode 100644 index 0000000000000000000000000000000000000000..c4cc7025cdfb9d8ed4882028436de003f80924f3 --- /dev/null +++ b/cube1/data/C336.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C336", + "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 -> W -> N -> N -> W -> N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "W", + "N", + "N", + "W", + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 90, + "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/C336_path_sequence.png" + }, + "metadata": { + "level_id": 336, + "name": "Reconstruct 336", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-336.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "C", + "4", + "circle", + "3", + "D", + "L" + ], + "start_x": 3, + "start_y": 2, + "grid_width": 5, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "C", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "L", + "rotation": 0 + }, + "FRONT": { + "patternId": "4", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 270 + }, + "LEFT": { + "patternId": "D", + "rotation": 270 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "L", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "4", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "C", + "rotation": 180, + "x": 3, + "y": 4 + }, + { + "patternId": "D", + "rotation": 0, + "x": 2, + "y": 4 + }, + { + "patternId": "4", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "L", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "3", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "LEFT", + "FRONT", + "RIGHT", + "BOTTOM", + "BACK", + "RIGHT" + ], + "required_slots": [ + "FRONT", + "TOP", + "LEFT", + "RIGHT", + "BOTTOM", + "BACK" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "C", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "L", + "rotation": 0 + }, + "FRONT": { + "patternId": "4", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 90 + }, + "LEFT": { + "patternId": "D", + "rotation": 0 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "C", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "L", + "rotation": 0 + }, + "FRONT": { + "patternId": "4", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 90 + }, + "LEFT": { + "patternId": "D", + "rotation": 0 + }, + "RIGHT": { + "patternId": "circle", + "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: C336\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> W -> N -> N -> W -> N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=4, rotation=270, flipVertical=true\n- step 2: patternId=C, rotation=180, flipVertical=true\n- step 3: patternId=D, rotation=0, flipVertical=true\n- step 4: patternId=4, rotation=0, flipVertical=true\n- step 5: patternId=circle, rotation=90, flipVertical=true\n- step 6: patternId=L, rotation=0, flipVertical=true\n- step 7: patternId=3, rotation=90, flipVertical=true\n- step 8: patternId=circle, rotation=180, flipVertical=true\n- allowed patternId values for this task: 4, C, D, circle, L, 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/C337.json b/cube1/data/C337.json new file mode 100644 index 0000000000000000000000000000000000000000..10bc4c44805037375bef2e86625b1ed21338806b --- /dev/null +++ b/cube1/data/C337.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C337", + "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 -> E -> W -> S -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "W", + "E", + "W", + "S", + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C337_path_sequence.png" + }, + "metadata": { + "level_id": 337, + "name": "Reconstruct 337", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-337.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "plus", + "6", + "O", + "triangle", + "M", + "K" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "plus", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "triangle", + "rotation": 90 + }, + "LEFT": { + "patternId": "M", + "rotation": 270 + }, + "RIGHT": { + "patternId": "O", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "K", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "6", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "O", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "6", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "O", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "6", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "triangle", + "rotation": 270, + "x": 1, + "y": 4 + }, + { + "patternId": "K", + "rotation": 0, + "x": 1, + "y": 5 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "FRONT", + "RIGHT", + "FRONT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "plus", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "triangle", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "O", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "plus", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "K", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "triangle", + "rotation": 270 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "O", + "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: C337\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> W -> E -> W -> S -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=270, flipVertical=true\n- step 2: patternId=O, rotation=180, flipVertical=true\n- step 3: patternId=6, rotation=270, flipVertical=true\n- step 4: patternId=O, rotation=180, flipVertical=true\n- step 5: patternId=6, rotation=270, flipVertical=true\n- step 6: patternId=plus, rotation=270, flipVertical=true\n- step 7: patternId=triangle, rotation=270, flipVertical=true\n- step 8: patternId=K, rotation=0, flipVertical=true\n- allowed patternId values for this task: 6, O, plus, triangle, 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/C338.json b/cube1/data/C338.json new file mode 100644 index 0000000000000000000000000000000000000000..42e91f1b81a7faab6d503cfdbfa1bc5337976fee --- /dev/null +++ b/cube1/data/C338.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C338", + "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 -> N -> W -> 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", + "W", + "N", + "W", + "W", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C338_path_sequence.png" + }, + "metadata": { + "level_id": 338, + "name": "Reconstruct 338", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-338.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "4", + "L", + "5", + "I", + "8", + "H" + ], + "start_x": 7, + "start_y": 3, + "grid_width": 9, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "H", + "rotation": 90 + }, + "FRONT": { + "patternId": "L", + "rotation": 270 + }, + "BACK": { + "patternId": "I", + "rotation": 90 + }, + "LEFT": { + "patternId": "8", + "rotation": 270 + }, + "RIGHT": { + "patternId": "5", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "H", + "rotation": 90, + "x": 7, + "y": 3 + }, + { + "patternId": "8", + "rotation": 180, + "x": 6, + "y": 3 + }, + { + "patternId": "4", + "rotation": 180, + "x": 5, + "y": 3 + }, + { + "patternId": "5", + "rotation": 0, + "x": 4, + "y": 3 + }, + { + "patternId": "I", + "rotation": 180, + "x": 4, + "y": 2 + }, + { + "patternId": "H", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "L", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "4", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "8", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "RIGHT", + "BACK", + "BOTTOM", + "FRONT", + "TOP", + "LEFT" + ], + "required_slots": [ + "LEFT", + "TOP", + "RIGHT", + "BACK", + "BOTTOM", + "FRONT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "H", + "rotation": 90 + }, + "FRONT": { + "patternId": "L", + "rotation": 270 + }, + "BACK": { + "patternId": "I", + "rotation": 270 + }, + "LEFT": { + "patternId": "8", + "rotation": 0 + }, + "RIGHT": { + "patternId": "5", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "H", + "rotation": 90 + }, + "FRONT": { + "patternId": "L", + "rotation": 270 + }, + "BACK": { + "patternId": "I", + "rotation": 270 + }, + "LEFT": { + "patternId": "8", + "rotation": 0 + }, + "RIGHT": { + "patternId": "5", + "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: C338\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> W -> N -> W -> W -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=8, rotation=180, flipVertical=true\n- step 2: patternId=4, rotation=180, flipVertical=true\n- step 3: patternId=5, rotation=0, flipVertical=true\n- step 4: patternId=I, rotation=180, flipVertical=true\n- step 5: patternId=H, rotation=0, flipVertical=true\n- step 6: patternId=L, rotation=180, flipVertical=true\n- step 7: patternId=4, rotation=270, flipVertical=true\n- step 8: patternId=8, rotation=270, flipVertical=true\n- allowed patternId values for this task: 8, 4, 5, I, H, 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/C339.json b/cube1/data/C339.json new file mode 100644 index 0000000000000000000000000000000000000000..5afc784e0c7f44b2b85b01af8239bf9114d21479 --- /dev/null +++ b/cube1/data/C339.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C339", + "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 -> E -> N -> E -> N -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "N", + "E", + "N", + "E", + "N", + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C339_path_sequence.png" + }, + "metadata": { + "level_id": 339, + "name": "Reconstruct 339", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-339.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "N", + "D", + "A", + "smile", + "F", + "U" + ], + "start_x": 2, + "start_y": 4, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 180 + }, + "FRONT": { + "patternId": "D", + "rotation": 90 + }, + "BACK": { + "patternId": "smile", + "rotation": 0 + }, + "LEFT": { + "patternId": "F", + "rotation": 270 + }, + "RIGHT": { + "patternId": "A", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "U", + "rotation": 180, + "x": 2, + "y": 4 + }, + { + "patternId": "F", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "smile", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "U", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "A", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "D", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "N", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "F", + "rotation": 180, + "x": 4, + "y": 1 + }, + { + "patternId": "D", + "rotation": 0, + "x": 4, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "BACK", + "BOTTOM", + "RIGHT", + "FRONT", + "TOP", + "LEFT", + "FRONT" + ], + "required_slots": [ + "LEFT", + "BACK", + "BOTTOM", + "RIGHT", + "FRONT", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 180 + }, + "FRONT": { + "patternId": "D", + "rotation": 90 + }, + "BACK": { + "patternId": "smile", + "rotation": 180 + }, + "LEFT": { + "patternId": "F", + "rotation": 0 + }, + "RIGHT": { + "patternId": "A", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "N", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 180 + }, + "FRONT": { + "patternId": "D", + "rotation": 90 + }, + "BACK": { + "patternId": "smile", + "rotation": 180 + }, + "LEFT": { + "patternId": "F", + "rotation": 0 + }, + "RIGHT": { + "patternId": "A", + "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: C339\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): W -> N -> E -> N -> E -> N -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=F, rotation=180, flipVertical=true\n- step 2: patternId=smile, rotation=270, flipVertical=true\n- step 3: patternId=U, rotation=270, flipVertical=true\n- step 4: patternId=A, rotation=180, flipVertical=true\n- step 5: patternId=D, rotation=270, flipVertical=true\n- step 6: patternId=N, rotation=0, flipVertical=true\n- step 7: patternId=F, rotation=180, flipVertical=true\n- step 8: patternId=D, rotation=0, flipVertical=true\n- allowed patternId values for this task: F, smile, U, A, D, N, ?\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/C340.json b/cube1/data/C340.json new file mode 100644 index 0000000000000000000000000000000000000000..28f1a9f0c21cc90eff2a7b911a9a549924965dd1 --- /dev/null +++ b/cube1/data/C340.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C340", + "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 -> N -> W -> N -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E", + "W", + "N", + "W", + "N", + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C340_path_sequence.png" + }, + "metadata": { + "level_id": 340, + "name": "Reconstruct 340", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-340.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "U", + "star", + "V", + "arrow_right", + "F", + "A" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "U", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "arrow_right", + "rotation": 0 + }, + "LEFT": { + "patternId": "F", + "rotation": 0 + }, + "RIGHT": { + "patternId": "V", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "A", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "V", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "U", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "V", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "arrow_right", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "A", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "F", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_right", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "V", + "rotation": 90, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP", + "RIGHT", + "BACK", + "BOTTOM", + "LEFT", + "BACK", + "RIGHT" + ], + "required_slots": [ + "RIGHT", + "TOP", + "BACK", + "BOTTOM", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "U", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_right", + "rotation": 180 + }, + "LEFT": { + "patternId": "F", + "rotation": 90 + }, + "RIGHT": { + "patternId": "V", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "U", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_right", + "rotation": 180 + }, + "LEFT": { + "patternId": "F", + "rotation": 90 + }, + "RIGHT": { + "patternId": "V", + "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: C340\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E -> W -> N -> W -> N -> E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=V, rotation=0, flipVertical=true\n- step 2: patternId=U, rotation=0, flipVertical=true\n- step 3: patternId=V, rotation=0, flipVertical=true\n- step 4: patternId=arrow_right, rotation=90, flipVertical=true\n- step 5: patternId=A, rotation=90, flipVertical=true\n- step 6: patternId=F, rotation=180, flipVertical=true\n- step 7: patternId=arrow_right, rotation=180, flipVertical=true\n- step 8: patternId=V, rotation=90, flipVertical=true\n- allowed patternId values for this task: V, U, arrow_right, A, 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/C341.json b/cube1/data/C341.json new file mode 100644 index 0000000000000000000000000000000000000000..a8fc8ba43995a328249c10967cb9b1519d6d5a2e --- /dev/null +++ b/cube1/data/C341.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C341", + "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 -> W -> N -> W -> S -> W -> W -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "W", + "N", + "W", + "S", + "W", + "W", + "W", + "S" + ], + "observed_path_faces": [ + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C341_path_sequence.png" + }, + "metadata": { + "level_id": 341, + "name": "Reconstruct 341", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-341.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "2", + "B", + "4", + "smile", + "D" + ], + "start_x": 5, + "start_y": 2, + "grid_width": 8, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "4", + "rotation": 90 + }, + "LEFT": { + "patternId": "smile", + "rotation": 90 + }, + "RIGHT": { + "patternId": "B", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "D", + "rotation": 90, + "x": 5, + "y": 2 + }, + { + "patternId": "B", + "rotation": 0, + "x": 6, + "y": 2 + }, + { + "patternId": "D", + "rotation": 90, + "x": 5, + "y": 2 + }, + { + "patternId": "4", + "rotation": 270, + "x": 5, + "y": 1 + }, + { + "patternId": "smile", + "rotation": 270, + "x": 4, + "y": 1 + }, + { + "patternId": "D", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "2", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "6", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "4", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "B", + "rotation": 0, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "BOTTOM", + "BACK", + "LEFT", + "BOTTOM", + "FRONT", + "TOP", + "BACK", + "RIGHT" + ], + "required_slots": [ + "RIGHT", + "BOTTOM", + "BACK", + "LEFT", + "FRONT", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "6", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "4", + "rotation": 270 + }, + "LEFT": { + "patternId": "smile", + "rotation": 180 + }, + "RIGHT": { + "patternId": "B", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "6", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "D", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "4", + "rotation": 270 + }, + "LEFT": { + "patternId": "smile", + "rotation": 180 + }, + "RIGHT": { + "patternId": "B", + "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: C341\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> W -> N -> W -> S -> W -> W -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=B, rotation=0, flipVertical=true\n- step 2: patternId=D, rotation=90, flipVertical=true\n- step 3: patternId=4, rotation=270, flipVertical=true\n- step 4: patternId=smile, rotation=270, flipVertical=true\n- step 5: patternId=D, rotation=0, flipVertical=true\n- step 6: patternId=2, rotation=180, flipVertical=true\n- step 7: patternId=6, rotation=180, flipVertical=true\n- step 8: patternId=4, rotation=180, flipVertical=true\n- step 9: patternId=B, rotation=0, flipVertical=true\n- allowed patternId values for this task: B, D, 4, smile, 2, 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/C342.json b/cube1/data/C342.json new file mode 100644 index 0000000000000000000000000000000000000000..3ca361c72450f85765e8f4e5b7cfbc16fea1297e --- /dev/null +++ b/cube1/data/C342.json @@ -0,0 +1,286 @@ +{ + "sample_id": "C342", + "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 -> E -> N -> N -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "E", + "E", + "N", + "N", + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C342_path_sequence.png" + }, + "metadata": { + "level_id": 342, + "name": "Reconstruct 342", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-342.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "circle", + "1", + "1", + "B", + "O", + "square" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "circle", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 180 + }, + "FRONT": { + "patternId": "1", + "rotation": 180 + }, + "BACK": { + "patternId": "B", + "rotation": 270 + }, + "LEFT": { + "patternId": "O", + "rotation": 90 + }, + "RIGHT": { + "patternId": "1", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "square", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "1", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "1", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "square", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "1", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "1", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "square", + "rotation": 0, + "x": 3, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "RIGHT", + "BOTTOM", + "FRONT", + "TOP", + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "TOP", + "RIGHT", + "BOTTOM" + ], + "required_count": 4, + "answer": { + "faces": { + "TOP": { + "patternId": "circle", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 180 + }, + "FRONT": { + "patternId": "1", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "circle", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 180 + }, + "FRONT": { + "patternId": "1", + "rotation": 180 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "1", + "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: C342\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> E -> E -> N -> N -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=1, rotation=180, flipVertical=true\n- step 2: patternId=circle, rotation=90, flipVertical=true\n- step 3: patternId=1, rotation=180, flipVertical=true\n- step 4: patternId=square, rotation=0, flipVertical=true\n- step 5: patternId=1, rotation=0, flipVertical=true\n- step 6: patternId=circle, rotation=270, flipVertical=true\n- step 7: patternId=1, rotation=0, flipVertical=true\n- step 8: patternId=square, rotation=0, flipVertical=true\n- allowed patternId values for this task: 1, circle, 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/C343.json b/cube1/data/C343.json new file mode 100644 index 0000000000000000000000000000000000000000..1b394c5f239519506acacaab8ae4a255d491b8bc --- /dev/null +++ b/cube1/data/C343.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C343", + "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 -> S -> S -> W -> S -> W -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "S", + "S", + "W", + "S", + "W", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C343_path_sequence.png" + }, + "metadata": { + "level_id": 343, + "name": "Reconstruct 343", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-343.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "6", + "F", + "J", + "L", + "J" + ], + "start_x": 5, + "start_y": 2, + "grid_width": 7, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 90 + }, + "BACK": { + "patternId": "J", + "rotation": 180 + }, + "LEFT": { + "patternId": "L", + "rotation": 0 + }, + "RIGHT": { + "patternId": "F", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "J", + "rotation": 0, + "x": 5, + "y": 2 + }, + { + "patternId": "J", + "rotation": 0, + "x": 5, + "y": 1 + }, + { + "patternId": "L", + "rotation": 180, + "x": 4, + "y": 1 + }, + { + "patternId": "J", + "rotation": 270, + "x": 4, + "y": 2 + }, + { + "patternId": "F", + "rotation": 270, + "x": 4, + "y": 3 + }, + { + "patternId": "6", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "6", + "rotation": 180, + "x": 3, + "y": 4 + }, + { + "patternId": "L", + "rotation": 90, + "x": 2, + "y": 4 + }, + { + "patternId": "J", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "6", + "rotation": 270, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "BOTTOM", + "RIGHT", + "FRONT", + "TOP", + "LEFT", + "BOTTOM", + "FRONT" + ], + "required_slots": [ + "BACK", + "LEFT", + "BOTTOM", + "RIGHT", + "FRONT", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "6", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 90 + }, + "BACK": { + "patternId": "J", + "rotation": 0 + }, + "LEFT": { + "patternId": "L", + "rotation": 90 + }, + "RIGHT": { + "patternId": "F", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "6", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "J", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 90 + }, + "BACK": { + "patternId": "J", + "rotation": 0 + }, + "LEFT": { + "patternId": "L", + "rotation": 90 + }, + "RIGHT": { + "patternId": "F", + "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: C343\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> S -> S -> W -> S -> W -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=J, rotation=0, flipVertical=true\n- step 2: patternId=L, rotation=180, flipVertical=true\n- step 3: patternId=J, rotation=270, flipVertical=true\n- step 4: patternId=F, rotation=270, flipVertical=true\n- step 5: patternId=6, rotation=90, flipVertical=true\n- step 6: patternId=6, rotation=180, flipVertical=true\n- step 7: patternId=L, rotation=90, flipVertical=true\n- step 8: patternId=J, rotation=180, flipVertical=true\n- step 9: patternId=6, rotation=270, flipVertical=true\n- allowed patternId values for this task: J, L, F, 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/C344.json b/cube1/data/C344.json new file mode 100644 index 0000000000000000000000000000000000000000..efe39f4d64ff8856436e3d87188a0b0ff0ec23e6 --- /dev/null +++ b/cube1/data/C344.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C344", + "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 -> E -> E -> S -> E -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "N", + "E", + "E", + "S", + "E", + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C344_path_sequence.png" + }, + "metadata": { + "level_id": 344, + "name": "Reconstruct 344", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-344.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "diamond", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "diamond", + "9", + "arrow_left", + "arrow_down", + "plus", + "P" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "diamond", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 90 + }, + "FRONT": { + "patternId": "9", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 270 + }, + "LEFT": { + "patternId": "plus", + "rotation": 90 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "P", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "diamond", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_left", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "P", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "arrow_down", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "P", + "rotation": 180, + "x": 4, + "y": 1 + }, + { + "patternId": "arrow_down", + "rotation": 180, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "TOP", + "RIGHT", + "BOTTOM", + "BACK", + "LEFT", + "BOTTOM", + "BACK" + ], + "required_slots": [ + "BACK", + "TOP", + "RIGHT", + "BOTTOM", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "diamond", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 90 + }, + "LEFT": { + "patternId": "plus", + "rotation": 180 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "diamond", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 90 + }, + "LEFT": { + "patternId": "plus", + "rotation": 180 + }, + "RIGHT": { + "patternId": "arrow_left", + "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: C344\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> N -> E -> E -> S -> E -> N -> 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=diamond, rotation=0, flipVertical=true\n- step 3: patternId=arrow_left, rotation=270, flipVertical=true\n- step 4: patternId=P, rotation=270, flipVertical=true\n- step 5: patternId=arrow_down, rotation=270, flipVertical=true\n- step 6: patternId=plus, rotation=90, flipVertical=true\n- step 7: patternId=P, rotation=180, flipVertical=true\n- step 8: patternId=arrow_down, rotation=180, flipVertical=true\n- allowed patternId values for this task: arrow_down, diamond, arrow_left, P, 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/C345.json b/cube1/data/C345.json new file mode 100644 index 0000000000000000000000000000000000000000..e6d6a005fb4d4e862ab1c272e9f562358de0740b --- /dev/null +++ b/cube1/data/C345.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C345", + "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 -> W -> S -> E -> N -> N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "N", + "W", + "S", + "E", + "N", + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "heart", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 270, + "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/C345_path_sequence.png" + }, + "metadata": { + "level_id": 345, + "name": "Reconstruct 345", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-345.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "E", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "E", + "heart", + "arrow_left", + "4", + "heart", + "circle" + ], + "start_x": 4, + "start_y": 3, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 180 + }, + "FRONT": { + "patternId": "heart", + "rotation": 0 + }, + "BACK": { + "patternId": "4", + "rotation": 270 + }, + "LEFT": { + "patternId": "heart", + "rotation": 270 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "circle", + "rotation": 180, + "x": 4, + "y": 3 + }, + { + "patternId": "heart", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "E", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "4", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "arrow_left", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "E", + "rotation": 0, + "x": 1, + "y": 3 + }, + { + "patternId": "4", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "arrow_left", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "heart", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "BACK", + "RIGHT", + "TOP", + "BACK", + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "LEFT", + "TOP", + "BACK", + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 180 + }, + "FRONT": { + "patternId": "heart", + "rotation": 0 + }, + "BACK": { + "patternId": "4", + "rotation": 90 + }, + "LEFT": { + "patternId": "heart", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_left", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "E", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 180 + }, + "FRONT": { + "patternId": "heart", + "rotation": 0 + }, + "BACK": { + "patternId": "4", + "rotation": 90 + }, + "LEFT": { + "patternId": "heart", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_left", + "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: C345\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> N -> W -> S -> E -> N -> N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=heart, rotation=180, flipVertical=true\n- step 2: patternId=E, rotation=90, flipVertical=true\n- step 3: patternId=4, rotation=270, flipVertical=true\n- step 4: patternId=arrow_left, rotation=0, flipVertical=true\n- step 5: patternId=E, rotation=0, flipVertical=true\n- step 6: patternId=4, rotation=180, flipVertical=true\n- step 7: patternId=arrow_left, rotation=270, flipVertical=true\n- step 8: patternId=heart, rotation=270, flipVertical=true\n- step 9: patternId=circle, rotation=90, flipVertical=true\n- allowed patternId values for this task: heart, E, 4, arrow_left, 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/C346.json b/cube1/data/C346.json new file mode 100644 index 0000000000000000000000000000000000000000..75f81e890edded45ae4d85bd4a5df7bdb5988694 --- /dev/null +++ b/cube1/data/C346.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C346", + "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 -> N -> N -> N -> W -> N -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "N", + "N", + "N", + "W", + "N", + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "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/C346_path_sequence.png" + }, + "metadata": { + "level_id": 346, + "name": "Reconstruct 346", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-346.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "B", + "diamond", + "G", + "3", + "4", + "F" + ], + "start_x": 2, + "start_y": 3, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 90 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 90 + }, + "LEFT": { + "patternId": "4", + "rotation": 270 + }, + "RIGHT": { + "patternId": "G", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "F", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "diamond", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "B", + "rotation": 270, + "x": 2, + "y": 5 + }, + { + "patternId": "diamond", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "F", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "3", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "4", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "B", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "3", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "F", + "rotation": 180, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "FRONT", + "BOTTOM", + "BACK", + "LEFT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "TOP", + "BOTTOM", + "BACK", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 90 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 270 + }, + "LEFT": { + "patternId": "4", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "B", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 90 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 270 + }, + "BACK": { + "patternId": "3", + "rotation": 270 + }, + "LEFT": { + "patternId": "4", + "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: C346\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> N -> N -> N -> W -> N -> E -> E\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=B, rotation=270, flipVertical=true\n- step 3: patternId=diamond, rotation=270, flipVertical=true\n- step 4: patternId=F, rotation=90, flipVertical=true\n- step 5: patternId=3, rotation=270, flipVertical=true\n- step 6: patternId=4, rotation=90, flipVertical=true\n- step 7: patternId=B, rotation=0, flipVertical=true\n- step 8: patternId=3, rotation=0, flipVertical=true\n- step 9: patternId=F, rotation=180, flipVertical=true\n- allowed patternId values for this task: diamond, B, F, 3, 4, ?\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/C347.json b/cube1/data/C347.json new file mode 100644 index 0000000000000000000000000000000000000000..2162b89e10eaf81df23886b3c73c3eb9786d8eda --- /dev/null +++ b/cube1/data/C347.json @@ -0,0 +1,300 @@ +{ + "sample_id": "C347", + "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 -> S -> W -> N -> S -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "E", + "S", + "W", + "N", + "S", + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "2", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C347_path_sequence.png" + }, + "metadata": { + "level_id": 347, + "name": "Reconstruct 347", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-347.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "S", + "E", + "2", + "T", + "G", + "arrow_right" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "S", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "E", + "rotation": 90 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "G", + "rotation": 90 + }, + "RIGHT": { + "patternId": "2", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_right", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "2", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "T", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "S", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "2", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "T", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "S", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "T", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "2", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "arrow_right", + "rotation": 270, + "x": 3, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "TOP", + "RIGHT", + "BACK", + "TOP", + "BACK", + "RIGHT", + "BOTTOM" + ], + "required_slots": [ + "RIGHT", + "BACK", + "TOP", + "BOTTOM" + ], + "required_count": 4, + "answer": { + "faces": { + "TOP": { + "patternId": "S", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "2", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "S", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "arrow_right", + "rotation": 180 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "2", + "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: C347\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> E -> S -> W -> N -> S -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=2, rotation=0, flipVertical=true\n- step 2: patternId=T, rotation=90, flipVertical=true\n- step 3: patternId=S, rotation=0, flipVertical=true\n- step 4: patternId=2, rotation=90, flipVertical=true\n- step 5: patternId=T, rotation=180, flipVertical=true\n- step 6: patternId=S, rotation=90, flipVertical=true\n- step 7: patternId=T, rotation=180, flipVertical=true\n- step 8: patternId=2, rotation=90, flipVertical=true\n- step 9: patternId=arrow_right, rotation=270, flipVertical=true\n- allowed patternId values for this task: 2, T, S, arrow_right, ?\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/C348.json b/cube1/data/C348.json new file mode 100644 index 0000000000000000000000000000000000000000..1cb38b594900da52aaeba1b6a39bf79a79b86243 --- /dev/null +++ b/cube1/data/C348.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C348", + "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 -> E -> S -> S -> S -> E -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "E", + "E", + "S", + "S", + "S", + "E", + "W" + ], + "observed_path_faces": [ + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C348_path_sequence.png" + }, + "metadata": { + "level_id": 348, + "name": "Reconstruct 348", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-348.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "7", + "2", + "3", + "W", + "P", + "W" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "7", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "W", + "rotation": 180 + }, + "LEFT": { + "patternId": "P", + "rotation": 270 + }, + "RIGHT": { + "patternId": "3", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "W", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "W", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "3", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "2", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "W", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "W", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "7", + "rotation": 180, + "x": 3, + "y": 4 + }, + { + "patternId": "P", + "rotation": 180, + "x": 4, + "y": 4 + }, + { + "patternId": "7", + "rotation": 180, + "x": 3, + "y": 4 + } + ], + "slot_sequence": [ + "BACK", + "RIGHT", + "FRONT", + "BOTTOM", + "BACK", + "TOP", + "LEFT", + "TOP" + ], + "required_slots": [ + "BACK", + "RIGHT", + "FRONT", + "BOTTOM", + "TOP", + "LEFT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "7", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "W", + "rotation": 0 + }, + "LEFT": { + "patternId": "P", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "7", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 180 + }, + "FRONT": { + "patternId": "2", + "rotation": 270 + }, + "BACK": { + "patternId": "W", + "rotation": 0 + }, + "LEFT": { + "patternId": "P", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "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: C348\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E -> E -> S -> S -> S -> E -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=W, rotation=0, flipVertical=true\n- step 2: patternId=3, rotation=180, flipVertical=true\n- step 3: patternId=2, rotation=90, flipVertical=true\n- step 4: patternId=W, rotation=0, flipVertical=true\n- step 5: patternId=W, rotation=180, flipVertical=true\n- step 6: patternId=7, rotation=180, flipVertical=true\n- step 7: patternId=P, rotation=180, flipVertical=true\n- step 8: patternId=7, rotation=180, flipVertical=true\n- allowed patternId values for this task: W, 3, 2, 7, 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/C349.json b/cube1/data/C349.json new file mode 100644 index 0000000000000000000000000000000000000000..f5b4df3c5c1ada82d11a9e986d919213fa76936d --- /dev/null +++ b/cube1/data/C349.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C349", + "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 -> N -> W -> E -> N -> W -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "N", + "W", + "E", + "N", + "W", + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C349_path_sequence.png" + }, + "metadata": { + "level_id": 349, + "name": "Reconstruct 349", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-349.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "plus", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "plus", + "G", + "Q", + "arrow_up", + "G", + "arrow_up" + ], + "start_x": 4, + "start_y": 3, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "plus", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 180 + }, + "FRONT": { + "patternId": "G", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 180 + }, + "LEFT": { + "patternId": "G", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_up", + "rotation": 180, + "x": 4, + "y": 3 + }, + { + "patternId": "G", + "rotation": 180, + "x": 4, + "y": 4 + }, + { + "patternId": "G", + "rotation": 0, + "x": 3, + "y": 4 + }, + { + "patternId": "arrow_up", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_up", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "arrow_up", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "Q", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "arrow_up", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "G", + "rotation": 90, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "BOTTOM", + "BACK", + "BOTTOM", + "RIGHT", + "BACK", + "TOP", + "LEFT" + ], + "required_slots": [ + "FRONT", + "LEFT", + "BOTTOM", + "BACK", + "RIGHT", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "plus", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 180 + }, + "FRONT": { + "patternId": "G", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 0 + }, + "LEFT": { + "patternId": "G", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "plus", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 180 + }, + "FRONT": { + "patternId": "G", + "rotation": 180 + }, + "BACK": { + "patternId": "arrow_up", + "rotation": 0 + }, + "LEFT": { + "patternId": "G", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Q", + "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: C349\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> N -> W -> E -> N -> W -> N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=G, rotation=180, flipVertical=true\n- step 2: patternId=G, rotation=0, flipVertical=true\n- step 3: patternId=arrow_up, rotation=270, flipVertical=true\n- step 4: patternId=arrow_up, rotation=90, flipVertical=true\n- step 5: patternId=arrow_up, rotation=270, flipVertical=true\n- step 6: patternId=Q, rotation=90, flipVertical=true\n- step 7: patternId=arrow_up, rotation=0, flipVertical=true\n- step 8: patternId=plus, rotation=0, flipVertical=true\n- step 9: patternId=G, rotation=90, flipVertical=true\n- allowed patternId values for this task: G, arrow_up, Q, 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/C350.json b/cube1/data/C350.json new file mode 100644 index 0000000000000000000000000000000000000000..5b6c86e38973f12e3e8989354f6a336f33ee56c3 --- /dev/null +++ b/cube1/data/C350.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C350", + "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 -> S -> S -> W -> S -> S -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "S", + "S", + "W", + "S", + "S", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "N", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C350_path_sequence.png" + }, + "metadata": { + "level_id": 350, + "name": "Reconstruct 350", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-350.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "R", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "R", + "N", + "P", + "H", + "V", + "arrow_up" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 6, + "grid_height": 8, + "true_solution_faces": { + "TOP": { + "patternId": "R", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + }, + "FRONT": { + "patternId": "N", + "rotation": 90 + }, + "BACK": { + "patternId": "H", + "rotation": 180 + }, + "LEFT": { + "patternId": "V", + "rotation": 0 + }, + "RIGHT": { + "patternId": "P", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_up", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "N", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "P", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "R", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "V", + "rotation": 180, + "x": 4, + "y": 4 + }, + { + "patternId": "N", + "rotation": 270, + "x": 3, + "y": 4 + }, + { + "patternId": "arrow_up", + "rotation": 90, + "x": 3, + "y": 5 + }, + { + "patternId": "H", + "rotation": 180, + "x": 3, + "y": 6 + }, + { + "patternId": "P", + "rotation": 90, + "x": 2, + "y": 6 + }, + { + "patternId": "N", + "rotation": 90, + "x": 1, + "y": 6 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "TOP", + "LEFT", + "FRONT", + "BOTTOM", + "BACK", + "RIGHT", + "FRONT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "TOP", + "LEFT", + "BOTTOM", + "BACK" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "R", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + }, + "FRONT": { + "patternId": "N", + "rotation": 90 + }, + "BACK": { + "patternId": "H", + "rotation": 0 + }, + "LEFT": { + "patternId": "V", + "rotation": 90 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "R", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + }, + "FRONT": { + "patternId": "N", + "rotation": 90 + }, + "BACK": { + "patternId": "H", + "rotation": 0 + }, + "LEFT": { + "patternId": "V", + "rotation": 90 + }, + "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: C350\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> S -> S -> W -> S -> S -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=N, rotation=90, flipVertical=true\n- step 2: patternId=P, rotation=90, flipVertical=true\n- step 3: patternId=R, rotation=90, flipVertical=true\n- step 4: patternId=V, rotation=180, flipVertical=true\n- step 5: patternId=N, rotation=270, flipVertical=true\n- step 6: patternId=arrow_up, rotation=90, flipVertical=true\n- step 7: patternId=H, rotation=180, flipVertical=true\n- step 8: patternId=P, rotation=90, flipVertical=true\n- step 9: patternId=N, rotation=90, flipVertical=true\n- allowed patternId values for this task: N, P, R, V, arrow_up, 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/C351.json b/cube1/data/C351.json new file mode 100644 index 0000000000000000000000000000000000000000..9864af2c7a327cf70910d1eeeba1826f13206857 --- /dev/null +++ b/cube1/data/C351.json @@ -0,0 +1,286 @@ +{ + "sample_id": "C351", + "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 -> N -> W -> N -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "E", + "N", + "W", + "N", + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 180, + "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/C351_path_sequence.png" + }, + "metadata": { + "level_id": 351, + "name": "Reconstruct 351", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-351.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "smile", + "F", + "7", + "F", + "heart", + "E" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "smile", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "E", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 90 + }, + "BACK": { + "patternId": "F", + "rotation": 180 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "RIGHT": { + "patternId": "7", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "E", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "7", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "F", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "smile", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "7", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "F", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "E", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "7", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "smile", + "rotation": 0, + "x": 4, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "TOP", + "RIGHT", + "FRONT", + "BOTTOM", + "RIGHT", + "TOP" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "TOP", + "BOTTOM" + ], + "required_count": 4, + "answer": { + "faces": { + "TOP": { + "patternId": "smile", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "E", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "7", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "smile", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "E", + "rotation": 180 + }, + "FRONT": { + "patternId": "F", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "7", + "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: C351\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> E -> N -> W -> N -> E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=7, rotation=180, flipVertical=true\n- step 2: patternId=F, rotation=180, flipVertical=true\n- step 3: patternId=smile, rotation=270, flipVertical=true\n- step 4: patternId=7, rotation=90, flipVertical=true\n- step 5: patternId=F, rotation=90, flipVertical=true\n- step 6: patternId=E, rotation=180, flipVertical=true\n- step 7: patternId=7, rotation=180, flipVertical=true\n- step 8: patternId=smile, rotation=0, flipVertical=true\n- allowed patternId values for this task: 7, F, smile, E, ?\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/C352.json b/cube1/data/C352.json new file mode 100644 index 0000000000000000000000000000000000000000..23f3ab53c61d6e0ceffa952fcbc085dc257f3bff --- /dev/null +++ b/cube1/data/C352.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C352", + "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 -> W -> N -> E -> E -> S -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "S", + "W", + "N", + "E", + "E", + "S", + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "7", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C352_path_sequence.png" + }, + "metadata": { + "level_id": 352, + "name": "Reconstruct 352", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-352.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "S", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "S", + "V", + "K", + "U", + "7", + "N" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 7, + "grid_height": 4, + "true_solution_faces": { + "TOP": { + "patternId": "S", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "V", + "rotation": 180 + }, + "BACK": { + "patternId": "U", + "rotation": 90 + }, + "LEFT": { + "patternId": "7", + "rotation": 0 + }, + "RIGHT": { + "patternId": "K", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "N", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "7", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "V", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "S", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "7", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "V", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "K", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "S", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "U", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "N", + "rotation": 270, + "x": 5, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "FRONT", + "TOP", + "LEFT", + "FRONT", + "RIGHT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_slots": [ + "LEFT", + "FRONT", + "TOP", + "RIGHT", + "BACK", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "S", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "V", + "rotation": 180 + }, + "BACK": { + "patternId": "U", + "rotation": 270 + }, + "LEFT": { + "patternId": "7", + "rotation": 90 + }, + "RIGHT": { + "patternId": "K", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "S", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "N", + "rotation": 180 + }, + "FRONT": { + "patternId": "V", + "rotation": 180 + }, + "BACK": { + "patternId": "U", + "rotation": 270 + }, + "LEFT": { + "patternId": "7", + "rotation": 90 + }, + "RIGHT": { + "patternId": "K", + "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: C352\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): W -> S -> W -> N -> E -> E -> S -> E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=7, rotation=270, flipVertical=true\n- step 2: patternId=V, rotation=90, flipVertical=true\n- step 3: patternId=S, rotation=90, flipVertical=true\n- step 4: patternId=7, rotation=0, flipVertical=true\n- step 5: patternId=V, rotation=180, flipVertical=true\n- step 6: patternId=K, rotation=90, flipVertical=true\n- step 7: patternId=S, rotation=270, flipVertical=true\n- step 8: patternId=U, rotation=0, flipVertical=true\n- step 9: patternId=N, rotation=270, flipVertical=true\n- allowed patternId values for this task: 7, V, S, K, U, N, ?\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/C353.json b/cube1/data/C353.json new file mode 100644 index 0000000000000000000000000000000000000000..607fe357c1975de90c2de0ec5d794e6c01628c2c --- /dev/null +++ b/cube1/data/C353.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C353", + "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 -> W -> E -> W -> S -> E -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "W", + "E", + "W", + "S", + "E", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "C", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C353_path_sequence.png" + }, + "metadata": { + "level_id": 353, + "name": "Reconstruct 353", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-353.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "G", + "C", + "J", + "square", + "T", + "G" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "G", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "G", + "rotation": 0 + }, + "FRONT": { + "patternId": "C", + "rotation": 90 + }, + "BACK": { + "patternId": "square", + "rotation": 0 + }, + "LEFT": { + "patternId": "T", + "rotation": 90 + }, + "RIGHT": { + "patternId": "J", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "G", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "C", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "G", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "T", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "G", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "T", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "square", + "rotation": 90, + "x": 1, + "y": 4 + }, + { + "patternId": "G", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "J", + "rotation": 0, + "x": 2, + "y": 5 + }, + { + "patternId": "C", + "rotation": 270, + "x": 3, + "y": 5 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "LEFT", + "TOP", + "LEFT", + "BACK", + "TOP", + "RIGHT", + "FRONT" + ], + "required_slots": [ + "FRONT", + "TOP", + "LEFT", + "BACK", + "RIGHT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "G", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "C", + "rotation": 90 + }, + "BACK": { + "patternId": "square", + "rotation": 180 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "J", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "G", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "C", + "rotation": 90 + }, + "BACK": { + "patternId": "square", + "rotation": 180 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "J", + "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: C353\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> W -> E -> W -> S -> E -> S -> E\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=G, rotation=0, flipVertical=true\n- step 3: patternId=T, rotation=180, flipVertical=true\n- step 4: patternId=G, rotation=0, flipVertical=true\n- step 5: patternId=T, rotation=180, flipVertical=true\n- step 6: patternId=square, rotation=90, flipVertical=true\n- step 7: patternId=G, rotation=270, flipVertical=true\n- step 8: patternId=J, rotation=0, flipVertical=true\n- step 9: patternId=C, rotation=270, flipVertical=true\n- allowed patternId values for this task: C, G, T, square, 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/C354.json b/cube1/data/C354.json new file mode 100644 index 0000000000000000000000000000000000000000..a856fad1c4bdcd4c2ec7774644a6a9a029de0c9a --- /dev/null +++ b/cube1/data/C354.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C354", + "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 -> S -> W -> S -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "S", + "S", + "W", + "S", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C354_path_sequence.png" + }, + "metadata": { + "level_id": 354, + "name": "Reconstruct 354", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-354.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "C", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "C", + "star", + "6", + "arrow_down", + "P", + "A" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "C", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 0 + }, + "LEFT": { + "patternId": "P", + "rotation": 90 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "A", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "6", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "star", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "P", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 3, + "y": 4 + }, + { + "patternId": "A", + "rotation": 90, + "x": 2, + "y": 4 + }, + { + "patternId": "6", + "rotation": 180, + "x": 2, + "y": 5 + }, + { + "patternId": "star", + "rotation": 90, + "x": 1, + "y": 5 + }, + { + "patternId": "A", + "rotation": 180, + "x": 1, + "y": 4 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "LEFT", + "BACK", + "BOTTOM", + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "LEFT", + "BACK", + "BOTTOM" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 180 + }, + "LEFT": { + "patternId": "P", + "rotation": 180 + }, + "RIGHT": { + "patternId": "6", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 180 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "arrow_down", + "rotation": 180 + }, + "LEFT": { + "patternId": "P", + "rotation": 180 + }, + "RIGHT": { + "patternId": "6", + "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: C354\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> S -> S -> W -> S -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=270, flipVertical=true\n- step 2: patternId=star, rotation=180, flipVertical=true\n- step 3: patternId=P, rotation=180, flipVertical=true\n- step 4: patternId=arrow_down, rotation=90, flipVertical=true\n- step 5: patternId=A, rotation=90, flipVertical=true\n- step 6: patternId=6, rotation=180, flipVertical=true\n- step 7: patternId=star, rotation=90, flipVertical=true\n- step 8: patternId=A, rotation=180, flipVertical=true\n- allowed patternId values for this task: 6, star, P, arrow_down, A, ?\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/C355.json b/cube1/data/C355.json new file mode 100644 index 0000000000000000000000000000000000000000..5ce1d543339fe99f1a29cb8339ff4e0338b89d1a --- /dev/null +++ b/cube1/data/C355.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C355", + "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 -> S -> S -> E -> N -> W -> N -> N -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "S", + "S", + "E", + "N", + "W", + "N", + "N", + "S" + ], + "observed_path_faces": [ + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Y", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C355_path_sequence.png" + }, + "metadata": { + "level_id": 355, + "name": "Reconstruct 355", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-355.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "O", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "O", + "A", + "2", + "Y", + "X", + "smile" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 4, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "O", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 180 + }, + "BACK": { + "patternId": "Y", + "rotation": 180 + }, + "LEFT": { + "patternId": "X", + "rotation": 0 + }, + "RIGHT": { + "patternId": "2", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "smile", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "Y", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "smile", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "A", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "2", + "rotation": 90, + "x": 2, + "y": 4 + }, + { + "patternId": "smile", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "A", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "X", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "Y", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "X", + "rotation": 270, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "BACK", + "BOTTOM", + "FRONT", + "RIGHT", + "BOTTOM", + "FRONT", + "LEFT", + "BACK", + "LEFT" + ], + "required_slots": [ + "BACK", + "BOTTOM", + "FRONT", + "RIGHT", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 180 + }, + "BACK": { + "patternId": "Y", + "rotation": 0 + }, + "LEFT": { + "patternId": "X", + "rotation": 90 + }, + "RIGHT": { + "patternId": "2", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "smile", + "rotation": 180 + }, + "FRONT": { + "patternId": "A", + "rotation": 180 + }, + "BACK": { + "patternId": "Y", + "rotation": 0 + }, + "LEFT": { + "patternId": "X", + "rotation": 90 + }, + "RIGHT": { + "patternId": "2", + "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: C355\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> S -> S -> E -> N -> W -> N -> N -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Y, rotation=0, flipVertical=true\n- step 2: patternId=smile, rotation=180, flipVertical=true\n- step 3: patternId=A, rotation=180, flipVertical=true\n- step 4: patternId=2, rotation=90, flipVertical=true\n- step 5: patternId=smile, rotation=90, flipVertical=true\n- step 6: patternId=A, rotation=90, flipVertical=true\n- step 7: patternId=X, rotation=270, flipVertical=true\n- step 8: patternId=Y, rotation=90, flipVertical=true\n- step 9: patternId=X, rotation=270, flipVertical=true\n- allowed patternId values for this task: Y, smile, A, 2, X, ?\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/C356.json b/cube1/data/C356.json new file mode 100644 index 0000000000000000000000000000000000000000..f850d4e32c3710d748d0d875e02a4d5c46c3883a --- /dev/null +++ b/cube1/data/C356.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C356", + "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 -> W -> S -> W -> N -> N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "S", + "W", + "S", + "W", + "N", + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "X", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C356_path_sequence.png" + }, + "metadata": { + "level_id": 356, + "name": "Reconstruct 356", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-356.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Z", + "X", + "6", + "arrow_left", + "star", + "Z" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "Z", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_left", + "rotation": 90 + }, + "LEFT": { + "patternId": "star", + "rotation": 90 + }, + "RIGHT": { + "patternId": "6", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "Z", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "X", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "Z", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_left", + "rotation": 270, + "x": 3, + "y": 4 + }, + { + "patternId": "star", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "Z", + "rotation": 270, + "x": 2, + "y": 5 + }, + { + "patternId": "X", + "rotation": 270, + "x": 1, + "y": 5 + }, + { + "patternId": "star", + "rotation": 0, + "x": 1, + "y": 4 + }, + { + "patternId": "arrow_left", + "rotation": 0, + "x": 1, + "y": 3 + }, + { + "patternId": "Z", + "rotation": 90, + "x": 2, + "y": 3 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "BACK", + "LEFT", + "BOTTOM", + "FRONT", + "LEFT", + "BACK", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "TOP", + "BACK", + "LEFT", + "BOTTOM" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "Z", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_left", + "rotation": 270 + }, + "LEFT": { + "patternId": "star", + "rotation": 180 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Z", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 0 + }, + "FRONT": { + "patternId": "X", + "rotation": 0 + }, + "BACK": { + "patternId": "arrow_left", + "rotation": 270 + }, + "LEFT": { + "patternId": "star", + "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: C356\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> S -> W -> S -> W -> N -> N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=X, rotation=0, flipVertical=true\n- step 2: patternId=Z, rotation=270, flipVertical=true\n- step 3: patternId=arrow_left, rotation=270, flipVertical=true\n- step 4: patternId=star, rotation=270, flipVertical=true\n- step 5: patternId=Z, rotation=270, flipVertical=true\n- step 6: patternId=X, rotation=270, flipVertical=true\n- step 7: patternId=star, rotation=0, flipVertical=true\n- step 8: patternId=arrow_left, rotation=0, flipVertical=true\n- step 9: patternId=Z, rotation=90, flipVertical=true\n- allowed patternId values for this task: X, Z, 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/C357.json b/cube1/data/C357.json new file mode 100644 index 0000000000000000000000000000000000000000..7e407163ca86d59ef300900c36932501a58b0152 --- /dev/null +++ b/cube1/data/C357.json @@ -0,0 +1,286 @@ +{ + "sample_id": "C357", + "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 -> E -> N -> W -> N -> E -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "E", + "N", + "W", + "N", + "E", + "W" + ], + "observed_path_faces": [ + { + "patternId": "D", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "7", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "D", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C357_path_sequence.png" + }, + "metadata": { + "level_id": 357, + "name": "Reconstruct 357", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-357.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "3", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "D", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "7", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "3", + "D", + "W", + "7", + "G", + "Z" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "3", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 180 + }, + "BACK": { + "patternId": "7", + "rotation": 0 + }, + "LEFT": { + "patternId": "G", + "rotation": 270 + }, + "RIGHT": { + "patternId": "W", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "Z", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "D", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "W", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "7", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "Z", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "W", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "D", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "Z", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "D", + "rotation": 90, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "BACK", + "BOTTOM", + "RIGHT", + "FRONT", + "BOTTOM", + "FRONT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "BACK", + "BOTTOM" + ], + "required_count": 4, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 180 + }, + "BACK": { + "patternId": "7", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "W", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "Z", + "rotation": 0 + }, + "FRONT": { + "patternId": "D", + "rotation": 180 + }, + "BACK": { + "patternId": "7", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "W", + "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: C357\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> E -> N -> W -> N -> E -> 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=W, rotation=270, flipVertical=true\n- step 3: patternId=7, rotation=0, flipVertical=true\n- step 4: patternId=Z, rotation=180, flipVertical=true\n- step 5: patternId=W, rotation=180, flipVertical=true\n- step 6: patternId=D, rotation=90, flipVertical=true\n- step 7: patternId=Z, rotation=270, flipVertical=true\n- step 8: patternId=D, rotation=90, flipVertical=true\n- allowed patternId values for this task: D, W, 7, 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/C358.json b/cube1/data/C358.json new file mode 100644 index 0000000000000000000000000000000000000000..00a2680527b1c6ae7a7c45b85d38a5965c38d4e9 --- /dev/null +++ b/cube1/data/C358.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C358", + "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 -> E -> N -> E -> S -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "E", + "E", + "N", + "E", + "S", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C358_path_sequence.png" + }, + "metadata": { + "level_id": 358, + "name": "Reconstruct 358", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-358.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "B", + "V", + "5", + "M", + "Z", + "I" + ], + "start_x": 1, + "start_y": 3, + "grid_width": 7, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "B", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "I", + "rotation": 270 + }, + "FRONT": { + "patternId": "V", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 180 + }, + "LEFT": { + "patternId": "Z", + "rotation": 0 + }, + "RIGHT": { + "patternId": "5", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "I", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "M", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "5", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "V", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "B", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "Z", + "rotation": 270, + "x": 4, + "y": 1 + }, + { + "patternId": "V", + "rotation": 180, + "x": 4, + "y": 2 + }, + { + "patternId": "5", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "I", + "rotation": 90, + "x": 5, + "y": 3 + } + ], + "slot_sequence": [ + "BACK", + "RIGHT", + "FRONT", + "TOP", + "LEFT", + "FRONT", + "RIGHT", + "BOTTOM" + ], + "required_slots": [ + "BACK", + "RIGHT", + "FRONT", + "TOP", + "LEFT", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "B", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "I", + "rotation": 270 + }, + "FRONT": { + "patternId": "V", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 0 + }, + "LEFT": { + "patternId": "Z", + "rotation": 90 + }, + "RIGHT": { + "patternId": "5", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "B", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "I", + "rotation": 270 + }, + "FRONT": { + "patternId": "V", + "rotation": 270 + }, + "BACK": { + "patternId": "M", + "rotation": 0 + }, + "LEFT": { + "patternId": "Z", + "rotation": 90 + }, + "RIGHT": { + "patternId": "5", + "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: C358\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E -> E -> N -> E -> S -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=M, rotation=0, flipVertical=true\n- step 2: patternId=5, rotation=0, flipVertical=true\n- step 3: patternId=V, rotation=90, flipVertical=true\n- step 4: patternId=B, rotation=270, flipVertical=true\n- step 5: patternId=Z, rotation=270, flipVertical=true\n- step 6: patternId=V, rotation=180, flipVertical=true\n- step 7: patternId=5, rotation=90, flipVertical=true\n- step 8: patternId=I, rotation=90, flipVertical=true\n- allowed patternId values for this task: M, 5, V, B, Z, I, ?\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/C359.json b/cube1/data/C359.json new file mode 100644 index 0000000000000000000000000000000000000000..56cef1b304ea6abca656f15b8937cd0fd749c9f1 --- /dev/null +++ b/cube1/data/C359.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C359", + "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 -> W -> N -> W -> S -> W -> N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "W", + "N", + "W", + "S", + "W", + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 0, + "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/C359_path_sequence.png" + }, + "metadata": { + "level_id": 359, + "name": "Reconstruct 359", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-359.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "heart", + "B", + "G", + "F", + "P", + "circle" + ], + "start_x": 3, + "start_y": 3, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "heart", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 270 + }, + "FRONT": { + "patternId": "B", + "rotation": 90 + }, + "BACK": { + "patternId": "F", + "rotation": 90 + }, + "LEFT": { + "patternId": "P", + "rotation": 270 + }, + "RIGHT": { + "patternId": "G", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "circle", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "G", + "rotation": 270, + "x": 4, + "y": 3 + }, + { + "patternId": "F", + "rotation": 180, + "x": 4, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "P", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "B", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "G", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "B", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "BOTTOM", + "LEFT", + "FRONT", + "BOTTOM", + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "RIGHT", + "BACK", + "BOTTOM", + "LEFT", + "FRONT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 270 + }, + "FRONT": { + "patternId": "B", + "rotation": 90 + }, + "BACK": { + "patternId": "F", + "rotation": 270 + }, + "LEFT": { + "patternId": "P", + "rotation": 0 + }, + "RIGHT": { + "patternId": "G", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 270 + }, + "FRONT": { + "patternId": "B", + "rotation": 90 + }, + "BACK": { + "patternId": "F", + "rotation": 270 + }, + "LEFT": { + "patternId": "P", + "rotation": 0 + }, + "RIGHT": { + "patternId": "G", + "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: C359\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> W -> N -> W -> S -> W -> N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=G, rotation=270, flipVertical=true\n- step 2: patternId=F, rotation=180, flipVertical=true\n- step 3: patternId=circle, rotation=180, flipVertical=true\n- step 4: patternId=P, rotation=90, flipVertical=true\n- step 5: patternId=B, rotation=270, flipVertical=true\n- step 6: patternId=circle, rotation=90, flipVertical=true\n- step 7: patternId=G, rotation=90, flipVertical=true\n- step 8: patternId=B, rotation=0, flipVertical=true\n- step 9: patternId=circle, rotation=180, flipVertical=true\n- allowed patternId values for this task: G, F, circle, P, 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/C360.json b/cube1/data/C360.json new file mode 100644 index 0000000000000000000000000000000000000000..ed6a0da0f7a802bb8c2b2d612e42517ed16bc64e --- /dev/null +++ b/cube1/data/C360.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C360", + "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 -> S -> E -> S -> N -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "W", + "S", + "E", + "S", + "N", + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "X", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "smile", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "square", + "rotation": 90, + "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/C360_path_sequence.png" + }, + "metadata": { + "level_id": 360, + "name": "Reconstruct 360", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-360.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "X", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "smile", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "square", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "X", + "K", + "A", + "H", + "smile", + "square" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 5, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "X", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "BACK": { + "patternId": "H", + "rotation": 90 + }, + "LEFT": { + "patternId": "smile", + "rotation": 270 + }, + "RIGHT": { + "patternId": "A", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "square", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "K", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "smile", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "H", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "X", + "rotation": 0, + "x": 1, + "y": 3 + }, + { + "patternId": "smile", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "K", + "rotation": 90, + "x": 2, + "y": 4 + }, + { + "patternId": "smile", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "square", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "K", + "rotation": 180, + "x": 3, + "y": 4 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "BACK", + "TOP", + "LEFT", + "FRONT", + "LEFT", + "BOTTOM", + "FRONT" + ], + "required_slots": [ + "FRONT", + "LEFT", + "BACK", + "TOP", + "BOTTOM" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "X", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "BACK": { + "patternId": "H", + "rotation": 270 + }, + "LEFT": { + "patternId": "smile", + "rotation": 0 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "X", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "square", + "rotation": 90 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "BACK": { + "patternId": "H", + "rotation": 270 + }, + "LEFT": { + "patternId": "smile", + "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: C360\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> W -> S -> E -> S -> N -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=K, rotation=180, flipVertical=true\n- step 2: patternId=smile, rotation=270, flipVertical=true\n- step 3: patternId=H, rotation=90, flipVertical=true\n- step 4: patternId=X, rotation=0, flipVertical=true\n- step 5: patternId=smile, rotation=180, flipVertical=true\n- step 6: patternId=K, rotation=90, flipVertical=true\n- step 7: patternId=smile, rotation=180, flipVertical=true\n- step 8: patternId=square, rotation=90, flipVertical=true\n- step 9: patternId=K, rotation=180, flipVertical=true\n- allowed patternId values for this task: K, smile, H, X, 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/C361.json b/cube1/data/C361.json new file mode 100644 index 0000000000000000000000000000000000000000..695cf1470b0541ed4190e3f8a8a241c72a77c6db --- /dev/null +++ b/cube1/data/C361.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C361", + "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 -> S -> S -> S -> N -> W -> S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "E", + "S", + "S", + "S", + "N", + "W", + "S", + "W" + ], + "observed_path_faces": [ + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C361_path_sequence.png" + }, + "metadata": { + "level_id": 361, + "name": "Reconstruct 361", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-361.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "C", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "T", + "C", + "triangle", + "T", + "6", + "circle" + ], + "start_x": 2, + "start_y": 2, + "grid_width": 5, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "T", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 90 + }, + "FRONT": { + "patternId": "C", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 270 + }, + "LEFT": { + "patternId": "6", + "rotation": 270 + }, + "RIGHT": { + "patternId": "triangle", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "circle", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "T", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "triangle", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "6", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "T", + "rotation": 180, + "x": 3, + "y": 4 + }, + { + "patternId": "6", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "T", + "rotation": 90, + "x": 2, + "y": 4 + }, + { + "patternId": "triangle", + "rotation": 90, + "x": 1, + "y": 4 + } + ], + "slot_sequence": [ + "BACK", + "RIGHT", + "BOTTOM", + "LEFT", + "TOP", + "LEFT", + "BACK", + "TOP", + "RIGHT" + ], + "required_slots": [ + "BACK", + "RIGHT", + "BOTTOM", + "LEFT", + "TOP" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "T", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 90 + }, + "LEFT": { + "patternId": "6", + "rotation": 0 + }, + "RIGHT": { + "patternId": "triangle", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "T", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "circle", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "T", + "rotation": 90 + }, + "LEFT": { + "patternId": "6", + "rotation": 0 + }, + "RIGHT": { + "patternId": "triangle", + "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: C361\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E -> S -> S -> S -> N -> W -> S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=T, rotation=90, flipVertical=true\n- step 2: patternId=triangle, rotation=180, flipVertical=true\n- step 3: patternId=circle, rotation=180, flipVertical=true\n- step 4: patternId=6, rotation=270, flipVertical=true\n- step 5: patternId=T, rotation=180, flipVertical=true\n- step 6: patternId=6, rotation=270, flipVertical=true\n- step 7: patternId=T, rotation=270, flipVertical=true\n- step 8: patternId=T, rotation=90, flipVertical=true\n- step 9: patternId=triangle, rotation=90, flipVertical=true\n- allowed patternId values for this task: T, triangle, circle, 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/C362.json b/cube1/data/C362.json new file mode 100644 index 0000000000000000000000000000000000000000..1cd14474975d21f9b0f30b5bfec95e3e5b71995b --- /dev/null +++ b/cube1/data/C362.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C362", + "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 -> N -> W -> W -> S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "N", + "N", + "W", + "W", + "S", + "W" + ], + "observed_path_faces": [ + { + "patternId": "triangle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C362_path_sequence.png" + }, + "metadata": { + "level_id": 362, + "name": "Reconstruct 362", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-362.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Q", + "8", + "circle", + "G", + "triangle", + "W" + ], + "start_x": 6, + "start_y": 3, + "grid_width": 8, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "Q", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 90 + }, + "FRONT": { + "patternId": "8", + "rotation": 270 + }, + "BACK": { + "patternId": "G", + "rotation": 90 + }, + "LEFT": { + "patternId": "triangle", + "rotation": 180 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "W", + "rotation": 90, + "x": 6, + "y": 3 + }, + { + "patternId": "triangle", + "rotation": 90, + "x": 5, + "y": 3 + }, + { + "patternId": "Q", + "rotation": 0, + "x": 4, + "y": 3 + }, + { + "patternId": "G", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "W", + "rotation": 270, + "x": 4, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "Q", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "G", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "triangle", + "rotation": 0, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "BACK", + "BOTTOM", + "RIGHT", + "TOP", + "BACK", + "LEFT" + ], + "required_slots": [ + "LEFT", + "TOP", + "BACK", + "BOTTOM", + "RIGHT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "Q", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "G", + "rotation": 270 + }, + "LEFT": { + "patternId": "triangle", + "rotation": 270 + }, + "RIGHT": { + "patternId": "circle", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Q", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "W", + "rotation": 90 + }, + "FRONT": { + "patternId": "?", + "rotation": 0 + }, + "BACK": { + "patternId": "G", + "rotation": 270 + }, + "LEFT": { + "patternId": "triangle", + "rotation": 270 + }, + "RIGHT": { + "patternId": "circle", + "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: C362\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> N -> N -> W -> W -> S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=triangle, rotation=90, flipVertical=true\n- step 2: patternId=Q, rotation=0, flipVertical=true\n- step 3: patternId=G, rotation=90, flipVertical=true\n- step 4: patternId=W, rotation=270, flipVertical=true\n- step 5: patternId=circle, rotation=90, flipVertical=true\n- step 6: patternId=Q, rotation=180, flipVertical=true\n- step 7: patternId=G, rotation=270, flipVertical=true\n- step 8: patternId=triangle, rotation=0, flipVertical=true\n- allowed patternId values for this task: triangle, Q, G, W, 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/C363.json b/cube1/data/C363.json new file mode 100644 index 0000000000000000000000000000000000000000..54eff6a0d1e521bbdc6827a4f5530cbfd9949dda --- /dev/null +++ b/cube1/data/C363.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C363", + "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 -> S -> E -> E -> E -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "E", + "S", + "E", + "E", + "E", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "N", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "9", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C363_path_sequence.png" + }, + "metadata": { + "level_id": 363, + "name": "Reconstruct 363", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-363.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "4", + "N", + "Q", + "E", + "9", + "U" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 9, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 0 + }, + "FRONT": { + "patternId": "N", + "rotation": 270 + }, + "BACK": { + "patternId": "E", + "rotation": 270 + }, + "LEFT": { + "patternId": "9", + "rotation": 90 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "U", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "Q", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "E", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "4", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "Q", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "N", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "9", + "rotation": 270, + "x": 5, + "y": 2 + }, + { + "patternId": "E", + "rotation": 90, + "x": 6, + "y": 2 + }, + { + "patternId": "U", + "rotation": 0, + "x": 6, + "y": 3 + }, + { + "patternId": "Q", + "rotation": 180, + "x": 7, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "TOP", + "RIGHT", + "FRONT", + "LEFT", + "BACK", + "BOTTOM", + "RIGHT" + ], + "required_slots": [ + "RIGHT", + "BACK", + "TOP", + "FRONT", + "LEFT", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 0 + }, + "FRONT": { + "patternId": "N", + "rotation": 270 + }, + "BACK": { + "patternId": "E", + "rotation": 90 + }, + "LEFT": { + "patternId": "9", + "rotation": 180 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 0 + }, + "FRONT": { + "patternId": "N", + "rotation": 270 + }, + "BACK": { + "patternId": "E", + "rotation": 90 + }, + "LEFT": { + "patternId": "9", + "rotation": 180 + }, + "RIGHT": { + "patternId": "Q", + "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: C363\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> E -> S -> E -> E -> E -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Q, rotation=180, flipVertical=true\n- step 2: patternId=E, rotation=0, flipVertical=true\n- step 3: patternId=4, rotation=270, flipVertical=true\n- step 4: patternId=Q, rotation=270, flipVertical=true\n- step 5: patternId=N, rotation=90, flipVertical=true\n- step 6: patternId=9, rotation=270, flipVertical=true\n- step 7: patternId=E, rotation=90, flipVertical=true\n- step 8: patternId=U, rotation=0, flipVertical=true\n- step 9: patternId=Q, rotation=180, flipVertical=true\n- allowed patternId values for this task: Q, E, 4, N, 9, 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/C364.json b/cube1/data/C364.json new file mode 100644 index 0000000000000000000000000000000000000000..4178cbb56280f88b4829d167175ed17409fd87ae --- /dev/null +++ b/cube1/data/C364.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C364", + "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 -> W -> N -> W -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "N", + "W", + "N", + "W", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C364_path_sequence.png" + }, + "metadata": { + "level_id": 364, + "name": "Reconstruct 364", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-364.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_left", + "arrow_down", + "plus", + "U", + "O", + "P" + ], + "start_x": 4, + "start_y": 4, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 0 + }, + "BACK": { + "patternId": "U", + "rotation": 0 + }, + "LEFT": { + "patternId": "O", + "rotation": 90 + }, + "RIGHT": { + "patternId": "plus", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "P", + "rotation": 90, + "x": 4, + "y": 4 + }, + { + "patternId": "U", + "rotation": 180, + "x": 4, + "y": 3 + }, + { + "patternId": "O", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_left", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "P", + "rotation": 90, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_down", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 180, + "x": 2, + "y": 2 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "TOP", + "FRONT", + "RIGHT", + "BOTTOM", + "FRONT", + "RIGHT" + ], + "required_slots": [ + "BACK", + "LEFT", + "TOP", + "FRONT", + "RIGHT", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 0 + }, + "BACK": { + "patternId": "U", + "rotation": 180 + }, + "LEFT": { + "patternId": "O", + "rotation": 180 + }, + "RIGHT": { + "patternId": "plus", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_left", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 90 + }, + "FRONT": { + "patternId": "arrow_down", + "rotation": 0 + }, + "BACK": { + "patternId": "U", + "rotation": 180 + }, + "LEFT": { + "patternId": "O", + "rotation": 180 + }, + "RIGHT": { + "patternId": "plus", + "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: C364\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N -> W -> N -> W -> S -> E\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=O, rotation=270, flipVertical=true\n- step 3: patternId=arrow_left, rotation=270, flipVertical=true\n- step 4: patternId=arrow_down, rotation=90, flipVertical=true\n- step 5: patternId=plus, rotation=270, flipVertical=true\n- step 6: patternId=P, rotation=90, flipVertical=true\n- step 7: patternId=arrow_down, rotation=0, flipVertical=true\n- step 8: patternId=plus, rotation=180, flipVertical=true\n- allowed patternId values for this task: U, O, arrow_left, arrow_down, plus, 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/C365.json b/cube1/data/C365.json new file mode 100644 index 0000000000000000000000000000000000000000..33d32c9747136cb3b67b4f8b2775897bc47d93e6 --- /dev/null +++ b/cube1/data/C365.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C365", + "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 -> W -> W -> W -> N -> W -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "S", + "W", + "W", + "W", + "N", + "W", + "N", + "W" + ], + "observed_path_faces": [ + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "W", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "S", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C365_path_sequence.png" + }, + "metadata": { + "level_id": 365, + "name": "Reconstruct 365", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-365.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "S", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "W", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "S", + "W", + "Q", + "plus", + "G", + "triangle" + ], + "start_x": 7, + "start_y": 2, + "grid_width": 9, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "S", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "triangle", + "rotation": 90 + }, + "FRONT": { + "patternId": "W", + "rotation": 90 + }, + "BACK": { + "patternId": "plus", + "rotation": 90 + }, + "LEFT": { + "patternId": "G", + "rotation": 270 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "triangle", + "rotation": 90, + "x": 7, + "y": 2 + }, + { + "patternId": "G", + "rotation": 180, + "x": 6, + "y": 2 + }, + { + "patternId": "W", + "rotation": 0, + "x": 6, + "y": 3 + }, + { + "patternId": "S", + "rotation": 270, + "x": 5, + "y": 3 + }, + { + "patternId": "plus", + "rotation": 180, + "x": 4, + "y": 3 + }, + { + "patternId": "triangle", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "G", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "W", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "S", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "Q", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "LEFT", + "FRONT", + "TOP", + "BACK", + "BOTTOM", + "LEFT", + "FRONT", + "TOP", + "RIGHT" + ], + "required_slots": [ + "LEFT", + "FRONT", + "TOP", + "BACK", + "BOTTOM", + "RIGHT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "S", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "triangle", + "rotation": 90 + }, + "FRONT": { + "patternId": "W", + "rotation": 90 + }, + "BACK": { + "patternId": "plus", + "rotation": 270 + }, + "LEFT": { + "patternId": "G", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Q", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "S", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "triangle", + "rotation": 90 + }, + "FRONT": { + "patternId": "W", + "rotation": 90 + }, + "BACK": { + "patternId": "plus", + "rotation": 270 + }, + "LEFT": { + "patternId": "G", + "rotation": 0 + }, + "RIGHT": { + "patternId": "Q", + "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: C365\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): W -> S -> W -> W -> W -> N -> W -> N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=G, rotation=180, flipVertical=true\n- step 2: patternId=W, rotation=0, flipVertical=true\n- step 3: patternId=S, rotation=270, flipVertical=true\n- step 4: patternId=plus, rotation=180, flipVertical=true\n- step 5: patternId=triangle, rotation=0, flipVertical=true\n- step 6: patternId=G, rotation=90, flipVertical=true\n- step 7: patternId=W, rotation=270, flipVertical=true\n- step 8: patternId=S, rotation=180, flipVertical=true\n- step 9: patternId=Q, rotation=0, flipVertical=true\n- allowed patternId values for this task: G, W, S, plus, triangle, 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/C366.json b/cube1/data/C366.json new file mode 100644 index 0000000000000000000000000000000000000000..0e30c43757777bc649af0ed9d1fc0a345add1dab --- /dev/null +++ b/cube1/data/C366.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C366", + "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 -> N -> E -> N -> N -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "W", + "N", + "N", + "E", + "N", + "N", + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C366_path_sequence.png" + }, + "metadata": { + "level_id": 366, + "name": "Reconstruct 366", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-366.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "I", + "2", + "6", + "K", + "J", + "F" + ], + "start_x": 3, + "start_y": 5, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "I", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 0 + }, + "FRONT": { + "patternId": "2", + "rotation": 0 + }, + "BACK": { + "patternId": "K", + "rotation": 90 + }, + "LEFT": { + "patternId": "J", + "rotation": 270 + }, + "RIGHT": { + "patternId": "6", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "F", + "rotation": 0, + "x": 3, + "y": 5 + }, + { + "patternId": "J", + "rotation": 180, + "x": 2, + "y": 5 + }, + { + "patternId": "I", + "rotation": 270, + "x": 1, + "y": 5 + }, + { + "patternId": "K", + "rotation": 90, + "x": 1, + "y": 4 + }, + { + "patternId": "F", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "J", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "2", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "6", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "I", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "2", + "rotation": 180, + "x": 3, + "y": 2 + } + ], + "slot_sequence": [ + "LEFT", + "TOP", + "BACK", + "BOTTOM", + "LEFT", + "FRONT", + "RIGHT", + "TOP", + "FRONT" + ], + "required_slots": [ + "LEFT", + "TOP", + "BACK", + "BOTTOM", + "FRONT", + "RIGHT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "I", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 0 + }, + "FRONT": { + "patternId": "2", + "rotation": 0 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "J", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "I", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "F", + "rotation": 0 + }, + "FRONT": { + "patternId": "2", + "rotation": 0 + }, + "BACK": { + "patternId": "K", + "rotation": 270 + }, + "LEFT": { + "patternId": "J", + "rotation": 0 + }, + "RIGHT": { + "patternId": "6", + "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: C366\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> N -> N -> E -> N -> N -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=J, rotation=180, flipVertical=true\n- step 2: patternId=I, rotation=270, flipVertical=true\n- step 3: patternId=K, rotation=90, flipVertical=true\n- step 4: patternId=F, rotation=180, flipVertical=true\n- step 5: patternId=J, rotation=0, flipVertical=true\n- step 6: patternId=2, rotation=90, flipVertical=true\n- step 7: patternId=6, rotation=270, flipVertical=true\n- step 8: patternId=I, rotation=270, flipVertical=true\n- step 9: patternId=2, rotation=180, flipVertical=true\n- allowed patternId values for this task: J, I, K, F, 2, 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/C367.json b/cube1/data/C367.json new file mode 100644 index 0000000000000000000000000000000000000000..bc8bdec10f27c45d71fb2a92d8238a81708a437d --- /dev/null +++ b/cube1/data/C367.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C367", + "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 -> E -> N -> W -> N -> N -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "N", + "E", + "N", + "W", + "N", + "N", + "E", + "S" + ], + "observed_path_faces": [ + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_right", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "G", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C367_path_sequence.png" + }, + "metadata": { + "level_id": 367, + "name": "Reconstruct 367", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-367.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "G", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "star", + "2", + "arrow_right", + "T", + "G", + "1" + ], + "start_x": 1, + "start_y": 4, + "grid_width": 4, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "star", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "G", + "rotation": 270 + }, + "RIGHT": { + "patternId": "arrow_right", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "1", + "rotation": 90, + "x": 1, + "y": 4 + }, + { + "patternId": "2", + "rotation": 180, + "x": 1, + "y": 5 + }, + { + "patternId": "1", + "rotation": 90, + "x": 1, + "y": 4 + }, + { + "patternId": "arrow_right", + "rotation": 0, + "x": 2, + "y": 4 + }, + { + "patternId": "T", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "1", + "rotation": 0, + "x": 1, + "y": 3 + }, + { + "patternId": "G", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "star", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "G", + "rotation": 180, + "x": 2, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "BOTTOM", + "RIGHT", + "BACK", + "BOTTOM", + "LEFT", + "TOP", + "BACK", + "LEFT" + ], + "required_slots": [ + "FRONT", + "BOTTOM", + "RIGHT", + "BACK", + "LEFT", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "star", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "G", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_right", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "star", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + }, + "FRONT": { + "patternId": "2", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "G", + "rotation": 0 + }, + "RIGHT": { + "patternId": "arrow_right", + "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: C367\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> N -> E -> N -> W -> N -> N -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=2, rotation=180, flipVertical=true\n- step 2: patternId=1, rotation=90, flipVertical=true\n- step 3: patternId=arrow_right, rotation=0, flipVertical=true\n- step 4: patternId=T, rotation=90, flipVertical=true\n- step 5: patternId=1, rotation=0, flipVertical=true\n- step 6: patternId=G, rotation=90, flipVertical=true\n- step 7: patternId=star, rotation=180, flipVertical=true\n- step 8: patternId=T, rotation=270, flipVertical=true\n- step 9: patternId=G, rotation=180, flipVertical=true\n- allowed patternId values for this task: 2, 1, arrow_right, T, G, 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/C368.json b/cube1/data/C368.json new file mode 100644 index 0000000000000000000000000000000000000000..ef895171803de42f89afdd6e4321494d44a9dc98 --- /dev/null +++ b/cube1/data/C368.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C368", + "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 -> N -> N -> E -> S -> E -> N -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "N", + "N", + "E", + "S", + "E", + "N", + "E" + ], + "observed_path_faces": [ + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C368_path_sequence.png" + }, + "metadata": { + "level_id": 368, + "name": "Reconstruct 368", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-368.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "4", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_up", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "4", + "O", + "plus", + "R", + "O", + "arrow_up" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 7, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "R", + "rotation": 90 + }, + "LEFT": { + "patternId": "O", + "rotation": 0 + }, + "RIGHT": { + "patternId": "plus", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_up", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "O", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "plus", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "arrow_up", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "O", + "rotation": 180, + "x": 2, + "y": 1 + }, + { + "patternId": "R", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "arrow_up", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "plus", + "rotation": 270, + "x": 4, + "y": 2 + }, + { + "patternId": "R", + "rotation": 180, + "x": 4, + "y": 1 + }, + { + "patternId": "4", + "rotation": 270, + "x": 5, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "BOTTOM", + "LEFT", + "BACK", + "BOTTOM", + "RIGHT", + "BACK", + "TOP" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "BOTTOM", + "LEFT", + "BACK", + "TOP" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "R", + "rotation": 270 + }, + "LEFT": { + "patternId": "O", + "rotation": 90 + }, + "RIGHT": { + "patternId": "plus", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "4", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_up", + "rotation": 270 + }, + "FRONT": { + "patternId": "O", + "rotation": 180 + }, + "BACK": { + "patternId": "R", + "rotation": 270 + }, + "LEFT": { + "patternId": "O", + "rotation": 90 + }, + "RIGHT": { + "patternId": "plus", + "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: C368\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> N -> N -> E -> S -> E -> N -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=O, rotation=180, flipVertical=true\n- step 2: patternId=plus, rotation=180, flipVertical=true\n- step 3: patternId=arrow_up, rotation=180, flipVertical=true\n- step 4: patternId=O, rotation=180, flipVertical=true\n- step 5: patternId=R, rotation=270, flipVertical=true\n- step 6: patternId=arrow_up, rotation=270, flipVertical=true\n- step 7: patternId=plus, rotation=270, flipVertical=true\n- step 8: patternId=R, rotation=180, flipVertical=true\n- step 9: patternId=4, rotation=270, flipVertical=true\n- allowed patternId values for this task: O, plus, arrow_up, R, 4, ?\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/C369.json b/cube1/data/C369.json new file mode 100644 index 0000000000000000000000000000000000000000..8af376818d4f13d39bf346912435daeb83937c79 --- /dev/null +++ b/cube1/data/C369.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C369", + "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 -> W -> E -> E -> N -> W -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "W", + "E", + "E", + "N", + "W", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "I", + "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": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "Q", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C369_path_sequence.png" + }, + "metadata": { + "level_id": 369, + "name": "Reconstruct 369", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-369.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_down", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Q", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_down", + "I", + "3", + "Q", + "arrow_down", + "2" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_down", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "2", + "rotation": 0 + }, + "FRONT": { + "patternId": "I", + "rotation": 90 + }, + "BACK": { + "patternId": "Q", + "rotation": 90 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 0 + }, + "RIGHT": { + "patternId": "3", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "2", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "I", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "arrow_down", + "rotation": 0, + "x": 3, + "y": 3 + }, + { + "patternId": "3", + "rotation": 270, + "x": 4, + "y": 3 + }, + { + "patternId": "I", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "arrow_down", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "Q", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "2", + "rotation": 270, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "LEFT", + "TOP", + "RIGHT", + "FRONT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "TOP", + "LEFT", + "RIGHT", + "BACK", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_down", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "2", + "rotation": 0 + }, + "FRONT": { + "patternId": "I", + "rotation": 90 + }, + "BACK": { + "patternId": "Q", + "rotation": 270 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "RIGHT": { + "patternId": "3", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_down", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "2", + "rotation": 0 + }, + "FRONT": { + "patternId": "I", + "rotation": 90 + }, + "BACK": { + "patternId": "Q", + "rotation": 270 + }, + "LEFT": { + "patternId": "arrow_down", + "rotation": 90 + }, + "RIGHT": { + "patternId": "3", + "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: C369\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> W -> E -> E -> N -> W -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=I, rotation=90, flipVertical=true\n- step 2: patternId=arrow_down, rotation=0, flipVertical=true\n- step 3: patternId=arrow_down, rotation=90, flipVertical=true\n- step 4: patternId=arrow_down, rotation=0, flipVertical=true\n- step 5: patternId=3, rotation=270, flipVertical=true\n- step 6: patternId=I, rotation=0, flipVertical=true\n- step 7: patternId=arrow_down, rotation=270, flipVertical=true\n- step 8: patternId=Q, rotation=180, flipVertical=true\n- step 9: patternId=2, rotation=270, flipVertical=true\n- allowed patternId values for this task: I, arrow_down, 3, Q, 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/C370.json b/cube1/data/C370.json new file mode 100644 index 0000000000000000000000000000000000000000..a0103e8c69b272425c6cfd97d8cc68a51fcd51ed --- /dev/null +++ b/cube1/data/C370.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C370", + "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 -> W -> S -> W -> E -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "E", + "W", + "S", + "W", + "E", + "W", + "W" + ], + "observed_path_faces": [ + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "K", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C370_path_sequence.png" + }, + "metadata": { + "level_id": 370, + "name": "Reconstruct 370", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-370.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "O", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "O", + "K", + "diamond", + "2", + "T", + "1" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "O", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "1", + "rotation": 90 + }, + "FRONT": { + "patternId": "K", + "rotation": 90 + }, + "BACK": { + "patternId": "2", + "rotation": 270 + }, + "LEFT": { + "patternId": "T", + "rotation": 90 + }, + "RIGHT": { + "patternId": "diamond", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "1", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "K", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "O", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "diamond", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "O", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "2", + "rotation": 90, + "x": 3, + "y": 4 + }, + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "2", + "rotation": 90, + "x": 3, + "y": 4 + }, + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "K", + "rotation": 270, + "x": 1, + "y": 4 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "RIGHT", + "TOP", + "BACK", + "LEFT", + "BACK", + "LEFT", + "FRONT" + ], + "required_slots": [ + "FRONT", + "TOP", + "RIGHT", + "BACK", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "O", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 90 + }, + "BACK": { + "patternId": "2", + "rotation": 90 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "diamond", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "O", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 90 + }, + "BACK": { + "patternId": "2", + "rotation": 90 + }, + "LEFT": { + "patternId": "T", + "rotation": 180 + }, + "RIGHT": { + "patternId": "diamond", + "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: C370\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> E -> W -> S -> W -> E -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=K, rotation=90, flipVertical=true\n- step 2: patternId=O, rotation=270, flipVertical=true\n- step 3: patternId=diamond, rotation=90, flipVertical=true\n- step 4: patternId=O, rotation=270, flipVertical=true\n- step 5: patternId=2, rotation=90, flipVertical=true\n- step 6: patternId=T, rotation=270, flipVertical=true\n- step 7: patternId=2, rotation=90, flipVertical=true\n- step 8: patternId=T, rotation=270, flipVertical=true\n- step 9: patternId=K, rotation=270, flipVertical=true\n- allowed patternId values for this task: K, O, diamond, 2, T, ?\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/C371.json b/cube1/data/C371.json new file mode 100644 index 0000000000000000000000000000000000000000..7f402de03fb043eb79a819304f1c2679b2229926 --- /dev/null +++ b/cube1/data/C371.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C371", + "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 -> S -> S -> E -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "W", + "S", + "S", + "E", + "W", + "N" + ], + "observed_path_faces": [ + { + "patternId": "T", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "U", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_left", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "3", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C371_path_sequence.png" + }, + "metadata": { + "level_id": 371, + "name": "Reconstruct 371", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-371.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_left", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "star", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "3", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_left", + "star", + "T", + "8", + "3", + "U" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 4, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "8", + "rotation": 270 + }, + "LEFT": { + "patternId": "3", + "rotation": 270 + }, + "RIGHT": { + "patternId": "T", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "U", + "rotation": 0, + "x": 1, + "y": 1 + }, + { + "patternId": "T", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "star", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "U", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "3", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "arrow_left", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "star", + "rotation": 0, + "x": 2, + "y": 4 + }, + { + "patternId": "arrow_left", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "3", + "rotation": 270, + "x": 1, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "BOTTOM", + "LEFT", + "TOP", + "FRONT", + "TOP", + "LEFT" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "BOTTOM", + "LEFT", + "TOP" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "3", + "rotation": 0 + }, + "RIGHT": { + "patternId": "T", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_left", + "rotation": 270 + }, + "BOTTOM": { + "patternId": "U", + "rotation": 0 + }, + "FRONT": { + "patternId": "star", + "rotation": 90 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "3", + "rotation": 0 + }, + "RIGHT": { + "patternId": "T", + "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: C371\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> W -> S -> S -> E -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=T, rotation=90, flipVertical=true\n- step 2: patternId=star, rotation=180, flipVertical=true\n- step 3: patternId=U, rotation=90, flipVertical=true\n- step 4: patternId=3, rotation=270, flipVertical=true\n- step 5: patternId=arrow_left, rotation=180, flipVertical=true\n- step 6: patternId=star, rotation=0, flipVertical=true\n- step 7: patternId=arrow_left, rotation=180, flipVertical=true\n- step 8: patternId=3, rotation=270, flipVertical=true\n- allowed patternId values for this task: T, star, U, 3, 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/C372.json b/cube1/data/C372.json new file mode 100644 index 0000000000000000000000000000000000000000..734b1b6a91449269d1e1b6e2861000e80a25eac3 --- /dev/null +++ b/cube1/data/C372.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C372", + "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 -> N -> W -> W -> S -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "N", + "N", + "W", + "W", + "S", + "E", + "E" + ], + "observed_path_faces": [ + { + "patternId": "arrow_right", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "triangle", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "arrow_down", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "R", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C372_path_sequence.png" + }, + "metadata": { + "level_id": 372, + "name": "Reconstruct 372", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-372.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "arrow_down", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_right", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "arrow_down", + "L", + "heart", + "arrow_right", + "triangle", + "R" + ], + "start_x": 4, + "start_y": 4, + "grid_width": 6, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "arrow_down", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "L", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_right", + "rotation": 270 + }, + "LEFT": { + "patternId": "triangle", + "rotation": 270 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "R", + "rotation": 180, + "x": 4, + "y": 4 + }, + { + "patternId": "arrow_right", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "triangle", + "rotation": 90, + "x": 3, + "y": 3 + }, + { + "patternId": "arrow_down", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "heart", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "L", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "triangle", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "arrow_down", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "L", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "R", + "rotation": 90, + "x": 3, + "y": 2 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "TOP", + "RIGHT", + "FRONT", + "LEFT", + "TOP", + "FRONT", + "BOTTOM" + ], + "required_slots": [ + "BACK", + "LEFT", + "TOP", + "RIGHT", + "FRONT", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "arrow_down", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "L", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_right", + "rotation": 90 + }, + "LEFT": { + "patternId": "triangle", + "rotation": 0 + }, + "RIGHT": { + "patternId": "heart", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "arrow_down", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "R", + "rotation": 180 + }, + "FRONT": { + "patternId": "L", + "rotation": 270 + }, + "BACK": { + "patternId": "arrow_right", + "rotation": 90 + }, + "LEFT": { + "patternId": "triangle", + "rotation": 0 + }, + "RIGHT": { + "patternId": "heart", + "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: C372\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N -> N -> W -> W -> S -> E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=arrow_right, rotation=90, flipVertical=true\n- step 2: patternId=triangle, rotation=90, flipVertical=true\n- step 3: patternId=arrow_down, rotation=270, flipVertical=true\n- step 4: patternId=heart, rotation=0, flipVertical=true\n- step 5: patternId=L, rotation=270, flipVertical=true\n- step 6: patternId=triangle, rotation=270, flipVertical=true\n- step 7: patternId=arrow_down, rotation=90, flipVertical=true\n- step 8: patternId=L, rotation=180, flipVertical=true\n- step 9: patternId=R, rotation=90, flipVertical=true\n- allowed patternId values for this task: arrow_right, triangle, arrow_down, heart, L, 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/C373.json b/cube1/data/C373.json new file mode 100644 index 0000000000000000000000000000000000000000..f426a55f3d6936b650d49e9f0529d24e7470ad9e --- /dev/null +++ b/cube1/data/C373.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C373", + "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 -> E -> E -> S -> E -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "W", + "E", + "E", + "S", + "E", + "S", + "E" + ], + "observed_path_faces": [ + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "L", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "M", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C373_path_sequence.png" + }, + "metadata": { + "level_id": 373, + "name": "Reconstruct 373", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-373.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "H", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "circle", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "L", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "H", + "circle", + "V", + "L", + "M", + "O" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 7, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "H", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 0 + }, + "FRONT": { + "patternId": "circle", + "rotation": 0 + }, + "BACK": { + "patternId": "L", + "rotation": 180 + }, + "LEFT": { + "patternId": "M", + "rotation": 0 + }, + "RIGHT": { + "patternId": "V", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "O", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "circle", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "M", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "circle", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "V", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "H", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "L", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "M", + "rotation": 270, + "x": 4, + "y": 4 + }, + { + "patternId": "O", + "rotation": 0, + "x": 5, + "y": 4 + } + ], + "slot_sequence": [ + "FRONT", + "LEFT", + "FRONT", + "RIGHT", + "TOP", + "BACK", + "LEFT", + "BOTTOM" + ], + "required_slots": [ + "FRONT", + "LEFT", + "RIGHT", + "TOP", + "BACK", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "H", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 0 + }, + "FRONT": { + "patternId": "circle", + "rotation": 0 + }, + "BACK": { + "patternId": "L", + "rotation": 0 + }, + "LEFT": { + "patternId": "M", + "rotation": 90 + }, + "RIGHT": { + "patternId": "V", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "H", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "O", + "rotation": 0 + }, + "FRONT": { + "patternId": "circle", + "rotation": 0 + }, + "BACK": { + "patternId": "L", + "rotation": 0 + }, + "LEFT": { + "patternId": "M", + "rotation": 90 + }, + "RIGHT": { + "patternId": "V", + "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: C373\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> E -> E -> S -> E -> S -> E\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=M, rotation=0, flipVertical=true\n- step 3: patternId=circle, rotation=0, flipVertical=true\n- step 4: patternId=V, rotation=180, flipVertical=true\n- step 5: patternId=H, rotation=270, flipVertical=true\n- step 6: patternId=L, rotation=90, flipVertical=true\n- step 7: patternId=M, rotation=270, flipVertical=true\n- step 8: patternId=O, rotation=0, flipVertical=true\n- allowed patternId values for this task: circle, M, V, H, L, 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/C374.json b/cube1/data/C374.json new file mode 100644 index 0000000000000000000000000000000000000000..7272ee9c02ee0c0d3470114b128e1f134e981491 --- /dev/null +++ b/cube1/data/C374.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C374", + "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 -> W -> S -> N -> N -> E -> E -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "W", + "S", + "N", + "N", + "E", + "E", + "N" + ], + "observed_path_faces": [ + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "V", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "H", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C374_path_sequence.png" + }, + "metadata": { + "level_id": 374, + "name": "Reconstruct 374", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-374.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "1", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "U", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "H", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "1", + "V", + "U", + "4", + "H", + "P" + ], + "start_x": 3, + "start_y": 4, + "grid_width": 5, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "1", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 0 + }, + "FRONT": { + "patternId": "V", + "rotation": 0 + }, + "BACK": { + "patternId": "4", + "rotation": 90 + }, + "LEFT": { + "patternId": "H", + "rotation": 180 + }, + "RIGHT": { + "patternId": "U", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "P", + "rotation": 0, + "x": 3, + "y": 4 + }, + { + "patternId": "4", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "H", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "V", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "P", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "V", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "1", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "H", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "P", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "4", + "rotation": 270, + "x": 3, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "FRONT", + "BOTTOM", + "FRONT", + "TOP", + "LEFT", + "BOTTOM", + "BACK" + ], + "required_slots": [ + "BACK", + "LEFT", + "FRONT", + "BOTTOM", + "TOP" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "1", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 0 + }, + "FRONT": { + "patternId": "V", + "rotation": 0 + }, + "BACK": { + "patternId": "4", + "rotation": 270 + }, + "LEFT": { + "patternId": "H", + "rotation": 270 + }, + "RIGHT": { + "patternId": "?", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "1", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 0 + }, + "FRONT": { + "patternId": "V", + "rotation": 0 + }, + "BACK": { + "patternId": "4", + "rotation": 270 + }, + "LEFT": { + "patternId": "H", + "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: C374\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> W -> S -> N -> N -> E -> E -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=4, rotation=270, flipVertical=true\n- step 2: patternId=H, rotation=0, flipVertical=true\n- step 3: patternId=V, rotation=180, flipVertical=true\n- step 4: patternId=P, rotation=180, flipVertical=true\n- step 5: patternId=V, rotation=180, flipVertical=true\n- step 6: patternId=1, rotation=180, flipVertical=true\n- step 7: patternId=H, rotation=90, flipVertical=true\n- step 8: patternId=P, rotation=0, flipVertical=true\n- step 9: patternId=4, rotation=270, flipVertical=true\n- allowed patternId values for this task: 4, H, V, P, 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/C375.json b/cube1/data/C375.json new file mode 100644 index 0000000000000000000000000000000000000000..015744408685af0ce70d52d27979f7066341e722 --- /dev/null +++ b/cube1/data/C375.json @@ -0,0 +1,286 @@ +{ + "sample_id": "C375", + "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 -> S -> S -> E -> N -> E -> S -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "S", + "S", + "E", + "N", + "E", + "S", + "N" + ], + "observed_path_faces": [ + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "5", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "I", + "rotation": 270, + "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/C375_path_sequence.png" + }, + "metadata": { + "level_id": 375, + "name": "Reconstruct 375", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-375.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "I", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "9", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "plus", + "5", + "I", + "B", + "9", + "5" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "plus", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "5", + "rotation": 90 + }, + "FRONT": { + "patternId": "5", + "rotation": 90 + }, + "BACK": { + "patternId": "B", + "rotation": 0 + }, + "LEFT": { + "patternId": "9", + "rotation": 270 + }, + "RIGHT": { + "patternId": "I", + "rotation": 180 + } + }, + "bottom_faces": [ + { + "patternId": "5", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "B", + "rotation": 180, + "x": 1, + "y": 1 + }, + { + "patternId": "5", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "5", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "I", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "5", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "B", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "I", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "B", + "rotation": 90, + "x": 3, + "y": 2 + } + ], + "slot_sequence": [ + "BACK", + "BOTTOM", + "FRONT", + "RIGHT", + "BOTTOM", + "BACK", + "RIGHT", + "BACK" + ], + "required_slots": [ + "BACK", + "BOTTOM", + "FRONT", + "RIGHT" + ], + "required_count": 4, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "5", + "rotation": 90 + }, + "FRONT": { + "patternId": "5", + "rotation": 90 + }, + "BACK": { + "patternId": "B", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "I", + "rotation": 90 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "5", + "rotation": 90 + }, + "FRONT": { + "patternId": "5", + "rotation": 90 + }, + "BACK": { + "patternId": "B", + "rotation": 180 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "I", + "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: C375\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> S -> S -> E -> N -> E -> S -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=B, rotation=180, flipVertical=true\n- step 2: patternId=5, rotation=90, flipVertical=true\n- step 3: patternId=5, rotation=90, flipVertical=true\n- step 4: patternId=I, rotation=180, flipVertical=true\n- step 5: patternId=5, rotation=0, flipVertical=true\n- step 6: patternId=B, rotation=90, flipVertical=true\n- step 7: patternId=I, rotation=270, flipVertical=true\n- step 8: patternId=B, rotation=90, flipVertical=true\n- allowed patternId values for this task: B, 5, I, ?\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/C376.json b/cube1/data/C376.json new file mode 100644 index 0000000000000000000000000000000000000000..093f377d4134dec3a847b8722e6e08b281265561 --- /dev/null +++ b/cube1/data/C376.json @@ -0,0 +1,300 @@ +{ + "sample_id": "C376", + "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 -> N -> W -> E -> W -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "S", + "E", + "N", + "W", + "E", + "W", + "S", + "S" + ], + "observed_path_faces": [ + { + "patternId": "8", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "F", + "rotation": 0, + "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/C376_path_sequence.png" + }, + "metadata": { + "level_id": 376, + "name": "Reconstruct 376", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-376.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "F", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "plus", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "F", + "plus", + "8", + "6", + "heart", + "P" + ], + "start_x": 1, + "start_y": 1, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "F", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "P", + "rotation": 270 + }, + "FRONT": { + "patternId": "plus", + "rotation": 90 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "heart", + "rotation": 180 + }, + "RIGHT": { + "patternId": "8", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "P", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "8", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "plus", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "F", + "rotation": 90, + "x": 3, + "y": 2 + }, + { + "patternId": "8", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "plus", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "8", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "plus", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "F", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "6", + "rotation": 90, + "x": 2, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "FRONT", + "TOP", + "RIGHT", + "FRONT", + "RIGHT", + "FRONT", + "TOP", + "BACK" + ], + "required_slots": [ + "RIGHT", + "FRONT", + "TOP", + "BACK" + ], + "required_count": 4, + "answer": { + "faces": { + "TOP": { + "patternId": "F", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "plus", + "rotation": 90 + }, + "BACK": { + "patternId": "6", + "rotation": 90 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "8", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "F", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "plus", + "rotation": 90 + }, + "BACK": { + "patternId": "6", + "rotation": 90 + }, + "LEFT": { + "patternId": "?", + "rotation": 0 + }, + "RIGHT": { + "patternId": "8", + "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: C376\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> E -> N -> W -> E -> W -> S -> S\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=plus, rotation=180, flipVertical=true\n- step 3: patternId=F, rotation=90, flipVertical=true\n- step 4: patternId=8, rotation=0, flipVertical=true\n- step 5: patternId=plus, rotation=90, flipVertical=true\n- step 6: patternId=8, rotation=0, flipVertical=true\n- step 7: patternId=plus, rotation=90, flipVertical=true\n- step 8: patternId=F, rotation=0, flipVertical=true\n- step 9: patternId=6, rotation=90, flipVertical=true\n- allowed patternId values for this task: 8, plus, F, 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/C377.json b/cube1/data/C377.json new file mode 100644 index 0000000000000000000000000000000000000000..01d326abe84c7b29b835e183dc6a92b38872c2c3 --- /dev/null +++ b/cube1/data/C377.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C377", + "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 -> N -> N -> N -> S -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "S", + "E", + "N", + "N", + "N", + "S", + "N" + ], + "observed_path_faces": [ + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "A", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": true + }, + { + "patternId": "1", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": true + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C377_path_sequence.png" + }, + "metadata": { + "level_id": 377, + "name": "Reconstruct 377", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-377.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "1", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "2", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "E", + "6", + "B", + "1", + "A", + "2" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 4, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "E", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "2", + "rotation": 90 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "1", + "rotation": 0 + }, + "LEFT": { + "patternId": "A", + "rotation": 270 + }, + "RIGHT": { + "patternId": "B", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "2", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "6", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "E", + "rotation": 0, + "x": 1, + "y": 4 + }, + { + "patternId": "B", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "6", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "A", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "1", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "A", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "1", + "rotation": 270, + "x": 2, + "y": 1 + } + ], + "slot_sequence": [ + "FRONT", + "TOP", + "RIGHT", + "FRONT", + "LEFT", + "BACK", + "LEFT", + "BACK" + ], + "required_slots": [ + "FRONT", + "TOP", + "RIGHT", + "LEFT", + "BACK" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "E", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "A", + "rotation": 0 + }, + "RIGHT": { + "patternId": "B", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "E", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "6", + "rotation": 270 + }, + "BACK": { + "patternId": "1", + "rotation": 180 + }, + "LEFT": { + "patternId": "A", + "rotation": 0 + }, + "RIGHT": { + "patternId": "B", + "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: C377\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): S -> S -> E -> N -> N -> N -> S -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=270, flipVertical=true\n- step 2: patternId=E, rotation=0, flipVertical=true\n- step 3: patternId=B, rotation=270, flipVertical=true\n- step 4: patternId=6, rotation=180, flipVertical=true\n- step 5: patternId=A, rotation=180, flipVertical=true\n- step 6: patternId=1, rotation=270, flipVertical=true\n- step 7: patternId=A, rotation=180, flipVertical=true\n- step 8: patternId=1, rotation=270, flipVertical=true\n- allowed patternId values for this task: 6, E, B, A, 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/C378.json b/cube1/data/C378.json new file mode 100644 index 0000000000000000000000000000000000000000..db11e1e350753e55010753aff8ac324b90e44c0b --- /dev/null +++ b/cube1/data/C378.json @@ -0,0 +1,301 @@ +{ + "sample_id": "C378", + "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 -> N -> W -> N -> E -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "N", + "N", + "N", + "W", + "N", + "E", + "E", + "S" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C378_path_sequence.png" + }, + "metadata": { + "level_id": 378, + "name": "Reconstruct 378", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-378.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "6", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "O", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Y", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "6", + "5", + "O", + "T", + "Y", + "8" + ], + "start_x": 1, + "start_y": 5, + "grid_width": 5, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "6", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + }, + "FRONT": { + "patternId": "5", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 180 + }, + "LEFT": { + "patternId": "Y", + "rotation": 180 + }, + "RIGHT": { + "patternId": "O", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "8", + "rotation": 180, + "x": 1, + "y": 5 + }, + { + "patternId": "O", + "rotation": 180, + "x": 2, + "y": 5 + }, + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 4 + }, + { + "patternId": "Y", + "rotation": 270, + "x": 2, + "y": 3 + }, + { + "patternId": "5", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "8", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "O", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "5", + "rotation": 0, + "x": 2, + "y": 1 + }, + { + "patternId": "Y", + "rotation": 0, + "x": 3, + "y": 1 + }, + { + "patternId": "8", + "rotation": 90, + "x": 3, + "y": 2 + } + ], + "slot_sequence": [ + "RIGHT", + "BACK", + "LEFT", + "FRONT", + "BOTTOM", + "RIGHT", + "FRONT", + "LEFT", + "BOTTOM" + ], + "required_slots": [ + "RIGHT", + "BACK", + "LEFT", + "FRONT", + "BOTTOM" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + }, + "FRONT": { + "patternId": "5", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "RIGHT": { + "patternId": "O", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "?", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "8", + "rotation": 180 + }, + "FRONT": { + "patternId": "5", + "rotation": 180 + }, + "BACK": { + "patternId": "T", + "rotation": 0 + }, + "LEFT": { + "patternId": "Y", + "rotation": 270 + }, + "RIGHT": { + "patternId": "O", + "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: C378\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> N -> N -> W -> N -> E -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=O, rotation=180, flipVertical=true\n- step 2: patternId=T, rotation=270, flipVertical=true\n- step 3: patternId=Y, rotation=270, flipVertical=true\n- step 4: patternId=5, rotation=270, flipVertical=true\n- step 5: patternId=8, rotation=270, flipVertical=true\n- step 6: patternId=O, rotation=270, flipVertical=true\n- step 7: patternId=5, rotation=0, flipVertical=true\n- step 8: patternId=Y, rotation=0, flipVertical=true\n- step 9: patternId=8, rotation=90, flipVertical=true\n- allowed patternId values for this task: O, T, Y, 5, 8, ?\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/C379.json b/cube1/data/C379.json new file mode 100644 index 0000000000000000000000000000000000000000..947ff6608c81d5926bba6e5705d44a87b6cd3cc0 --- /dev/null +++ b/cube1/data/C379.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C379", + "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 -> S -> N -> W -> W -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "W", + "N", + "S", + "N", + "W", + "W", + "N", + "N" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C379_path_sequence.png" + }, + "metadata": { + "level_id": 379, + "name": "Reconstruct 379", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-379.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "F", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "S", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "M", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "F", + "B", + "S", + "heart", + "M", + "V" + ], + "start_x": 4, + "start_y": 5, + "grid_width": 6, + "grid_height": 7, + "true_solution_faces": { + "TOP": { + "patternId": "F", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 90 + }, + "FRONT": { + "patternId": "B", + "rotation": 0 + }, + "BACK": { + "patternId": "heart", + "rotation": 180 + }, + "LEFT": { + "patternId": "M", + "rotation": 90 + }, + "RIGHT": { + "patternId": "S", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "V", + "rotation": 90, + "x": 4, + "y": 5 + }, + { + "patternId": "heart", + "rotation": 0, + "x": 4, + "y": 4 + }, + { + "patternId": "M", + "rotation": 270, + "x": 3, + "y": 4 + }, + { + "patternId": "F", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "M", + "rotation": 270, + "x": 3, + "y": 4 + }, + { + "patternId": "F", + "rotation": 180, + "x": 3, + "y": 3 + }, + { + "patternId": "B", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "V", + "rotation": 180, + "x": 1, + "y": 3 + }, + { + "patternId": "S", + "rotation": 270, + "x": 1, + "y": 2 + }, + { + "patternId": "F", + "rotation": 0, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "LEFT", + "TOP", + "LEFT", + "TOP", + "FRONT", + "BOTTOM", + "RIGHT", + "TOP" + ], + "required_slots": [ + "BACK", + "LEFT", + "TOP", + "FRONT", + "BOTTOM", + "RIGHT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "F", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 90 + }, + "FRONT": { + "patternId": "B", + "rotation": 0 + }, + "BACK": { + "patternId": "heart", + "rotation": 0 + }, + "LEFT": { + "patternId": "M", + "rotation": 180 + }, + "RIGHT": { + "patternId": "S", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "F", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 90 + }, + "FRONT": { + "patternId": "B", + "rotation": 0 + }, + "BACK": { + "patternId": "heart", + "rotation": 0 + }, + "LEFT": { + "patternId": "M", + "rotation": 180 + }, + "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: C379\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N -> S -> N -> W -> W -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=heart, rotation=0, flipVertical=true\n- step 2: patternId=M, rotation=270, flipVertical=true\n- step 3: patternId=F, rotation=180, flipVertical=true\n- step 4: patternId=M, rotation=270, flipVertical=true\n- step 5: patternId=F, rotation=180, flipVertical=true\n- step 6: patternId=B, rotation=90, flipVertical=true\n- step 7: patternId=V, rotation=180, flipVertical=true\n- step 8: patternId=S, rotation=270, flipVertical=true\n- step 9: patternId=F, rotation=0, flipVertical=true\n- allowed patternId values for this task: heart, M, F, B, V, 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/C380.json b/cube1/data/C380.json new file mode 100644 index 0000000000000000000000000000000000000000..6b78921c789786080c7e09fdd38a1b0a80e640cc --- /dev/null +++ b/cube1/data/C380.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C380", + "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 -> E -> S -> W -> W -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "N", + "E", + "S", + "W", + "W", + "S", + "E" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C380_path_sequence.png" + }, + "metadata": { + "level_id": 380, + "name": "Reconstruct 380", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-380.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "X", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "diamond", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "F", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "6", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "4", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "X", + "diamond", + "F", + "6", + "4", + "X" + ], + "start_x": 2, + "start_y": 3, + "grid_width": 5, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "X", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 0 + }, + "BACK": { + "patternId": "6", + "rotation": 90 + }, + "LEFT": { + "patternId": "4", + "rotation": 180 + }, + "RIGHT": { + "patternId": "F", + "rotation": 270 + } + }, + "bottom_faces": [ + { + "patternId": "X", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "6", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "X", + "rotation": 90, + "x": 2, + "y": 1 + }, + { + "patternId": "F", + "rotation": 180, + "x": 3, + "y": 1 + }, + { + "patternId": "6", + "rotation": 0, + "x": 3, + "y": 2 + }, + { + "patternId": "X", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "diamond", + "rotation": 90, + "x": 1, + "y": 2 + }, + { + "patternId": "4", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "X", + "rotation": 90, + "x": 2, + "y": 3 + } + ], + "slot_sequence": [ + "BACK", + "TOP", + "RIGHT", + "BACK", + "TOP", + "FRONT", + "LEFT", + "TOP" + ], + "required_slots": [ + "BACK", + "TOP", + "RIGHT", + "FRONT", + "LEFT" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 0 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "4", + "rotation": 270 + }, + "RIGHT": { + "patternId": "F", + "rotation": 180 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "X", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "?", + "rotation": 0 + }, + "FRONT": { + "patternId": "diamond", + "rotation": 0 + }, + "BACK": { + "patternId": "6", + "rotation": 270 + }, + "LEFT": { + "patternId": "4", + "rotation": 270 + }, + "RIGHT": { + "patternId": "F", + "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: C380\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> N -> E -> S -> W -> W -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=6, rotation=270, flipVertical=true\n- step 2: patternId=X, rotation=90, flipVertical=true\n- step 3: patternId=F, rotation=180, flipVertical=true\n- step 4: patternId=6, rotation=0, flipVertical=true\n- step 5: patternId=X, rotation=180, flipVertical=true\n- step 6: patternId=diamond, rotation=90, flipVertical=true\n- step 7: patternId=4, rotation=270, flipVertical=true\n- step 8: patternId=X, rotation=90, flipVertical=true\n- allowed patternId values for this task: 6, X, F, diamond, 4, ?\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/C381.json b/cube1/data/C381.json new file mode 100644 index 0000000000000000000000000000000000000000..29ea2a8e8a723c6af17f49330139b84342b2edf7 --- /dev/null +++ b/cube1/data/C381.json @@ -0,0 +1,288 @@ +{ + "sample_id": "C381", + "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 -> N -> W -> N -> E -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "N", + "N", + "N", + "W", + "N", + "E", + "W", + "N" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C381_path_sequence.png" + }, + "metadata": { + "level_id": 381, + "name": "Reconstruct 381", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-381.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "C", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "E", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "5", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "B", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "A", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "C", + "E", + "X", + "5", + "B", + "A" + ], + "start_x": 2, + "start_y": 6, + "grid_width": 4, + "grid_height": 8, + "true_solution_faces": { + "TOP": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 90 + }, + "FRONT": { + "patternId": "E", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 0 + }, + "LEFT": { + "patternId": "B", + "rotation": 90 + }, + "RIGHT": { + "patternId": "X", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "A", + "rotation": 90, + "x": 2, + "y": 6 + }, + { + "patternId": "5", + "rotation": 180, + "x": 2, + "y": 5 + }, + { + "patternId": "C", + "rotation": 90, + "x": 2, + "y": 4 + }, + { + "patternId": "E", + "rotation": 0, + "x": 2, + "y": 3 + }, + { + "patternId": "B", + "rotation": 90, + "x": 1, + "y": 3 + }, + { + "patternId": "A", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "E", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "A", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "X", + "rotation": 270, + "x": 1, + "y": 1 + } + ], + "slot_sequence": [ + "BACK", + "TOP", + "FRONT", + "LEFT", + "BOTTOM", + "FRONT", + "BOTTOM", + "RIGHT" + ], + "required_slots": [ + "BACK", + "TOP", + "FRONT", + "LEFT", + "BOTTOM", + "RIGHT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 90 + }, + "FRONT": { + "patternId": "E", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 180 + }, + "LEFT": { + "patternId": "B", + "rotation": 180 + }, + "RIGHT": { + "patternId": "X", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "C", + "rotation": 90 + }, + "BOTTOM": { + "patternId": "A", + "rotation": 90 + }, + "FRONT": { + "patternId": "E", + "rotation": 0 + }, + "BACK": { + "patternId": "5", + "rotation": 180 + }, + "LEFT": { + "patternId": "B", + "rotation": 180 + }, + "RIGHT": { + "patternId": "X", + "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: C381\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): N -> N -> N -> W -> N -> E -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=5, rotation=180, flipVertical=true\n- step 2: patternId=C, rotation=90, flipVertical=true\n- step 3: patternId=E, rotation=0, flipVertical=true\n- step 4: patternId=B, rotation=90, flipVertical=true\n- step 5: patternId=A, rotation=180, flipVertical=true\n- step 6: patternId=E, rotation=90, flipVertical=true\n- step 7: patternId=A, rotation=180, flipVertical=true\n- step 8: patternId=X, rotation=270, flipVertical=true\n- allowed patternId values for this task: 5, C, E, B, A, X, ?\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/C382.json b/cube1/data/C382.json new file mode 100644 index 0000000000000000000000000000000000000000..0eb19d11cf52e236023c40d61b51457b6bab0b2c --- /dev/null +++ b/cube1/data/C382.json @@ -0,0 +1,287 @@ +{ + "sample_id": "C382", + "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 -> E -> S -> W -> S -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "W", + "S", + "E", + "S", + "W", + "S", + "E", + "E" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C382_path_sequence.png" + }, + "metadata": { + "level_id": 382, + "name": "Reconstruct 382", + "difficulty": 4, + "move_count": 8, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-382.json", + "tier_label": "Difficulty 4" + }, + "description": "8-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Y", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "X", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "8", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "triangle", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "heart", + "rotation": 90, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "T", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Y", + "X", + "8", + "triangle", + "heart", + "T" + ], + "start_x": 2, + "start_y": 1, + "grid_width": 5, + "grid_height": 6, + "true_solution_faces": { + "TOP": { + "patternId": "Y", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 270 + }, + "FRONT": { + "patternId": "X", + "rotation": 270 + }, + "BACK": { + "patternId": "triangle", + "rotation": 0 + }, + "LEFT": { + "patternId": "heart", + "rotation": 0 + }, + "RIGHT": { + "patternId": "8", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "T", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "heart", + "rotation": 270, + "x": 1, + "y": 1 + }, + { + "patternId": "X", + "rotation": 180, + "x": 1, + "y": 2 + }, + { + "patternId": "T", + "rotation": 180, + "x": 2, + "y": 2 + }, + { + "patternId": "8", + "rotation": 90, + "x": 2, + "y": 3 + }, + { + "patternId": "X", + "rotation": 270, + "x": 1, + "y": 3 + }, + { + "patternId": "Y", + "rotation": 180, + "x": 1, + "y": 4 + }, + { + "patternId": "8", + "rotation": 0, + "x": 2, + "y": 4 + }, + { + "patternId": "T", + "rotation": 90, + "x": 3, + "y": 4 + } + ], + "slot_sequence": [ + "LEFT", + "FRONT", + "BOTTOM", + "RIGHT", + "FRONT", + "TOP", + "RIGHT", + "BOTTOM" + ], + "required_slots": [ + "LEFT", + "FRONT", + "BOTTOM", + "RIGHT", + "TOP" + ], + "required_count": 5, + "answer": { + "faces": { + "TOP": { + "patternId": "Y", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 270 + }, + "FRONT": { + "patternId": "X", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "RIGHT": { + "patternId": "8", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Y", + "rotation": 180 + }, + "BOTTOM": { + "patternId": "T", + "rotation": 270 + }, + "FRONT": { + "patternId": "X", + "rotation": 270 + }, + "BACK": { + "patternId": "?", + "rotation": 0 + }, + "LEFT": { + "patternId": "heart", + "rotation": 90 + }, + "RIGHT": { + "patternId": "8", + "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: C382\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 8\n- roll_sequence (N=up, S=down, W=left, E=right): W -> S -> E -> S -> W -> S -> E -> E\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=X, rotation=180, flipVertical=true\n- step 3: patternId=T, rotation=180, flipVertical=true\n- step 4: patternId=8, rotation=90, flipVertical=true\n- step 5: patternId=X, rotation=270, flipVertical=true\n- step 6: patternId=Y, rotation=180, flipVertical=true\n- step 7: patternId=8, rotation=0, flipVertical=true\n- step 8: patternId=T, rotation=90, flipVertical=true\n- allowed patternId values for this task: heart, X, T, 8, 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/C383.json b/cube1/data/C383.json new file mode 100644 index 0000000000000000000000000000000000000000..b2fe8ca82d68b217a71fc7e3e55ed49e36d55030 --- /dev/null +++ b/cube1/data/C383.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C383", + "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 -> S -> W -> N -> W -> N -> S -> W\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "S", + "E", + "S", + "W", + "N", + "W", + "N", + "S", + "W" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C383_path_sequence.png" + }, + "metadata": { + "level_id": 383, + "name": "Reconstruct 383", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-383.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "star", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "Z", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "N", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "V", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "star", + "J", + "R", + "Z", + "N", + "V" + ], + "start_x": 3, + "start_y": 1, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "star", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 270 + }, + "FRONT": { + "patternId": "J", + "rotation": 180 + }, + "BACK": { + "patternId": "Z", + "rotation": 90 + }, + "LEFT": { + "patternId": "N", + "rotation": 180 + }, + "RIGHT": { + "patternId": "R", + "rotation": 90 + } + }, + "bottom_faces": [ + { + "patternId": "V", + "rotation": 270, + "x": 3, + "y": 1 + }, + { + "patternId": "J", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "R", + "rotation": 90, + "x": 4, + "y": 2 + }, + { + "patternId": "star", + "rotation": 90, + "x": 4, + "y": 3 + }, + { + "patternId": "J", + "rotation": 270, + "x": 3, + "y": 3 + }, + { + "patternId": "R", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "V", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "Z", + "rotation": 270, + "x": 2, + "y": 1 + }, + { + "patternId": "V", + "rotation": 270, + "x": 2, + "y": 2 + }, + { + "patternId": "N", + "rotation": 90, + "x": 1, + "y": 2 + } + ], + "slot_sequence": [ + "FRONT", + "RIGHT", + "TOP", + "FRONT", + "RIGHT", + "BOTTOM", + "BACK", + "BOTTOM", + "LEFT" + ], + "required_slots": [ + "FRONT", + "RIGHT", + "TOP", + "BOTTOM", + "BACK", + "LEFT" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "star", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 270 + }, + "FRONT": { + "patternId": "J", + "rotation": 180 + }, + "BACK": { + "patternId": "Z", + "rotation": 270 + }, + "LEFT": { + "patternId": "N", + "rotation": 270 + }, + "RIGHT": { + "patternId": "R", + "rotation": 0 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "star", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "V", + "rotation": 270 + }, + "FRONT": { + "patternId": "J", + "rotation": 180 + }, + "BACK": { + "patternId": "Z", + "rotation": 270 + }, + "LEFT": { + "patternId": "N", + "rotation": 270 + }, + "RIGHT": { + "patternId": "R", + "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: C383\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> S -> W -> N -> W -> N -> S -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=J, rotation=180, flipVertical=true\n- step 2: patternId=R, rotation=90, flipVertical=true\n- step 3: patternId=star, rotation=90, flipVertical=true\n- step 4: patternId=J, rotation=270, flipVertical=true\n- step 5: patternId=R, rotation=180, flipVertical=true\n- step 6: patternId=V, rotation=270, flipVertical=true\n- step 7: patternId=Z, rotation=270, flipVertical=true\n- step 8: patternId=V, rotation=270, flipVertical=true\n- step 9: patternId=N, rotation=90, flipVertical=true\n- allowed patternId values for this task: J, R, star, V, Z, N, ?\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/C384.json b/cube1/data/C384.json new file mode 100644 index 0000000000000000000000000000000000000000..597688aa6cf408ffb2a10e28ca0a62236beab31d --- /dev/null +++ b/cube1/data/C384.json @@ -0,0 +1,302 @@ +{ + "sample_id": "C384", + "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 -> E -> N -> W -> S -> W -> S -> E\nThe puzzle images already show the roll path and the observed path-face states.", + "net_layout": "standard_cross", + "roll_sequence": [ + "E", + "E", + "E", + "N", + "W", + "S", + "W", + "S", + "E" + ], + "observed_path_faces": [ + { + "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 + } + ], + "image_paths": { + "blank_net_image": "images/blank_nets/open.png", + "path_sequence_image": "images/path_sequences/C384_path_sequence.png" + }, + "metadata": { + "level_id": 384, + "name": "Reconstruct 384", + "difficulty": 4, + "move_count": 9, + "tier": 4, + "source_level_path": "levels/reconstruct/generated-384.json", + "tier_label": "Difficulty 4" + }, + "description": "9-move reconstruct puzzle", + "net_faces": [ + { + "patternId": "Y", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "K", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "P", + "rotation": 270, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "J", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "R", + "rotation": 180, + "flipHorizontal": false, + "flipVertical": false + }, + { + "patternId": "arrow_left", + "rotation": 0, + "flipHorizontal": false, + "flipVertical": false + } + ], + "net_patterns": [ + "Y", + "K", + "P", + "J", + "R", + "arrow_left" + ], + "start_x": 1, + "start_y": 2, + "grid_width": 6, + "grid_height": 5, + "true_solution_faces": { + "TOP": { + "patternId": "Y", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "BACK": { + "patternId": "J", + "rotation": 0 + }, + "LEFT": { + "patternId": "R", + "rotation": 90 + }, + "RIGHT": { + "patternId": "P", + "rotation": 0 + } + }, + "bottom_faces": [ + { + "patternId": "arrow_left", + "rotation": 0, + "x": 1, + "y": 2 + }, + { + "patternId": "P", + "rotation": 90, + "x": 2, + "y": 2 + }, + { + "patternId": "Y", + "rotation": 180, + "x": 3, + "y": 2 + }, + { + "patternId": "R", + "rotation": 0, + "x": 4, + "y": 2 + }, + { + "patternId": "J", + "rotation": 270, + "x": 4, + "y": 1 + }, + { + "patternId": "Y", + "rotation": 90, + "x": 3, + "y": 1 + }, + { + "patternId": "R", + "rotation": 270, + "x": 3, + "y": 2 + }, + { + "patternId": "K", + "rotation": 0, + "x": 2, + "y": 2 + }, + { + "patternId": "arrow_left", + "rotation": 180, + "x": 2, + "y": 3 + }, + { + "patternId": "R", + "rotation": 180, + "x": 3, + "y": 3 + } + ], + "slot_sequence": [ + "RIGHT", + "TOP", + "LEFT", + "BACK", + "TOP", + "LEFT", + "FRONT", + "BOTTOM", + "LEFT" + ], + "required_slots": [ + "RIGHT", + "TOP", + "LEFT", + "BACK", + "FRONT", + "BOTTOM" + ], + "required_count": 6, + "answer": { + "faces": { + "TOP": { + "patternId": "Y", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "BACK": { + "patternId": "J", + "rotation": 180 + }, + "LEFT": { + "patternId": "R", + "rotation": 180 + }, + "RIGHT": { + "patternId": "P", + "rotation": 270 + } + } + }, + "legacy_answer": { + "TOP": { + "patternId": "Y", + "rotation": 0 + }, + "BOTTOM": { + "patternId": "arrow_left", + "rotation": 0 + }, + "FRONT": { + "patternId": "K", + "rotation": 180 + }, + "BACK": { + "patternId": "J", + "rotation": 180 + }, + "LEFT": { + "patternId": "R", + "rotation": 180 + }, + "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: C384\n- net_layout: standard_cross\n- difficulty: 4\n- move_count: 9\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E -> E -> N -> W -> S -> W -> S -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=P, rotation=90, flipVertical=true\n- step 2: patternId=Y, rotation=180, flipVertical=true\n- step 3: patternId=R, rotation=0, flipVertical=true\n- step 4: patternId=J, rotation=270, flipVertical=true\n- step 5: patternId=Y, rotation=90, flipVertical=true\n- step 6: patternId=R, rotation=270, flipVertical=true\n- step 7: patternId=K, rotation=0, flipVertical=true\n- step 8: patternId=arrow_left, rotation=180, flipVertical=true\n- step 9: patternId=R, rotation=180, flipVertical=true\n- allowed patternId values for this task: P, Y, R, J, K, 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/cube2/images/C130/initial_net.png b/cube2/images/C130/initial_net.png new file mode 100644 index 0000000000000000000000000000000000000000..f8258abd80a80934f59502a54c12139856e16bff --- /dev/null +++ b/cube2/images/C130/initial_net.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04ee36f0429acc915240f1bd01b5d9f55476d7e6cf1eb5a62d1521f33d8878da +size 34583 diff --git a/cube2/images/C130/target_top_face.png b/cube2/images/C130/target_top_face.png new file mode 100644 index 0000000000000000000000000000000000000000..5adcf60ce999c5a298854324e889ed9e5a65b30e --- /dev/null +++ b/cube2/images/C130/target_top_face.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5203d1456545c9b23545d2eb2ce61f09e4effa5fd1659f72bb1f6b5f17e4787b +size 15644 diff --git a/cube2/images/C131/initial_net.png b/cube2/images/C131/initial_net.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef356be7721681ff72862ac3402cdccad9b428 --- /dev/null +++ b/cube2/images/C131/initial_net.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fc6dc24c590f82bfb583736d655cdcdcb8aed5cf791792b3189af8aaa21e162 +size 31880 diff --git a/cube2/images/C131/target_top_face.png b/cube2/images/C131/target_top_face.png new file mode 100644 index 0000000000000000000000000000000000000000..09a294bd99c660692a91838216d766c010222093 --- /dev/null +++ b/cube2/images/C131/target_top_face.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8de425d1fbb55e3083348f77d4f4f94c5762e77a02bf3ca3f8085b2ae207fff6 +size 15658 diff --git a/cube2/images/C132/initial_net.png b/cube2/images/C132/initial_net.png new file mode 100644 index 0000000000000000000000000000000000000000..433d6fd9647d9a74a9b938efa6f5133f203cf9f7 --- /dev/null +++ b/cube2/images/C132/initial_net.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f30b2773467eed88bcbb1b82a7ba0f76849cbdd127e8c3b64ddd55d811fb2703 +size 32913 diff --git a/cube2/images/C132/target_top_face.png b/cube2/images/C132/target_top_face.png new file mode 100644 index 0000000000000000000000000000000000000000..4e61b524f82be6d4e928272535ced30190ccdd9b --- /dev/null +++ b/cube2/images/C132/target_top_face.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45bbbdbe466eb6c740af38bdab94ab8a90c09d495bc5bfefeb203d887689a4f4 +size 17183 diff --git a/cube2/images/C133/initial_net.png b/cube2/images/C133/initial_net.png new file mode 100644 index 0000000000000000000000000000000000000000..be93106f89691f5b66f45ac9401685112bc6c562 --- /dev/null +++ b/cube2/images/C133/initial_net.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76313ec975196b7359bc7ef766f220f2f2286c4470461e3125121fc14bc78e1b +size 32035 diff --git a/datasheet.md b/datasheet.md new file mode 100644 index 0000000000000000000000000000000000000000..32af0744889c25921657490904cbf443aa8a8f06 --- /dev/null +++ b/datasheet.md @@ -0,0 +1,278 @@ +# Datasheet for SimVerse + +> **⚠️ Anonymized for double-blind review.** Author, organization, contact, citation, and repository fields are placeholders until the review concludes. + +This datasheet follows the structure proposed by Gebru et al. (2018), *Datasheets for Datasets* (arXiv:1803.09010). It documents the SimVerse multimodal-LLM benchmark dataset. + +--- + +## 1. Motivation + +### For what purpose was the dataset created? + +SimVerse was created to evaluate multimodal large language models (LLMs) on **interactive simulation puzzles** — tasks that combine visual perception with multi-step reasoning under physical or geometric constraints. Existing multimodal benchmarks emphasize either single-step visual question answering or long-form free-text generation; SimVerse fills a gap by requiring structured, programmatically-verifiable outputs (placements, action sequences, command scripts) over five disjoint puzzle types that share a uniform prompt skeleton and output contract for cross-task comparability. + +### Who created the dataset and on behalf of which entity? + +Anonymized for double-blind review. To be filled in post-acceptance. + +### Who funded the creation of the dataset? + +Anonymized for double-blind review. + +### Any other comments? + +The dataset is paired with an open-source code release (linked from the dataset card after the review period) that includes the generators, prompt builders, parsers, validators, and runner scripts for each task. + +--- + +## 2. Composition + +### What do the instances that comprise the dataset represent? + +Each instance is one **puzzle level** drawn from one of five tasks. A level bundles: +- A natural-language prompt (system + user) the benchmark presents to a model +- One or more visual assets (images, or in cutrope a short video) +- Structured fields describing the level's parameters (board size, segment lengths, target coordinates, etc.) +- A reference solution under a task-specific schema + +| Config | Task | Records | Modality | Output schema | +|---|---|---:|---|---| +| `voi` | Text-VOI shape placement (XOR rasterization) | 600 | target image + per-shape images | `{placements:[{shape, angle, vertex, grid}]}` | +| `cube1` | Cube reconstruction (six-face map) | 502 | blank cross-net + path-imprint | `{faces:{TOP,BOTTOM,FRONT,BACK,LEFT,RIGHT}}` | +| `cube2` | Cube goal-roll (top-face directions) | 502 | initial cross-net + target image | `{directions:["N","S","E","W"]}` | +| `lamp` | Mechanical-arm lamp targeting | 610 | rendered workspace image | `{actions:[{joint, angle}]}` | +| `cutrope` | Cut the Rope video → command script | 272 | short MP4 gameplay clip | `{commands, reason, confidence}` | + +**Total: 2,486 records.** + +### How many instances are there in total? + +2,486 records, broken down above. + +### Does the dataset contain all possible instances or is it a sample? + +Each task has a programmatic generator that can produce arbitrarily many puzzles. The shipped 2,486 records are a **curated subset** sampled to span the difficulty distribution each generator's design parameters allow. The generators are publicly released so users can produce additional instances for held-out evaluation if they wish. + +### What data does each instance consist of? + +Per-record JSON with fields including: +- `__sample_id__` — stable level id +- `prompt.system` — verbatim system-prompt text shown to the model +- `prompt.user` — verbatim user-prompt text (filled-in 9-section skeleton) +- `answer` — reference solution under the task-specific schema (see table above) +- task-native structured fields (e.g. `arm.segments`, `inventory`, `roll_sequence`) +- `images_relative_to_config` / `video_relative_to_config` — paths to media assets + +Media files (PNG images, MP4 videos) live in sibling directories referenced by the JSON. + +### Is there a label or target associated with each instance? + +Yes. The `answer` field carries a reference solution. For closed-form tasks (VOI, cube1, lamp) the answer is uniquely determined; for open-ended tasks (cube2, cutrope) the answer is one of many valid solutions and validators score by simulation outcome rather than string equality. + +### Is any information missing from individual instances? + +cube1 deliberately includes `?` sentinel patterns when puzzle constraints under-determine a face. This is documented behavior, not missing data. + +### Are relationships between individual instances made explicit? + +Each task's records are independent (no cross-record relationships). Records within a task share visual style, output schema, and prompt skeleton, but are otherwise independent puzzles. + +### Are there recommended data splits? + +The dataset is **held-out evaluation only — there is no train split**. The HuggingFace YAML frontmatter declares a single `test` split per config. + +### Are there any errors, sources of noise, or redundancies in the dataset? + +Records are programmatically validated by their respective engines before shipping, so every shipped record is provably solvable. Two known minor caveats: + +1. cube1's `?` sentinel pattern (intentional, documented). +2. For open-ended tasks, the embedded reference solution is one of many valid solutions; downstream tooling that scores via reference equality rather than simulation will systematically miss credit for divergent strategies. + +### Is the dataset self-contained, or does it link to or otherwise rely on external resources? + +The dataset is **self-contained**: every record carries the literal prompt, the reference answer, and either embedded paths to bundled media (images / videos) or all the structured fields needed to reproduce the task. No external API access, no external dataset dependencies, no licenced external content. + +cutrope videos are derived from the open-source [`yell0wsuit/cuttherope-h5dx`](https://github.com/yell0wsuit/cuttherope-h5dx) port (MIT-licensed); the generated MP4 files are shipped within this dataset. + +### Does the dataset contain data that might be considered confidential? + +No. Fully synthetic; no proprietary or confidential content. + +### Does the dataset contain data that, if viewed directly, might be offensive, insulting, threatening, or might otherwise cause anxiety? + +No. All visual content is abstract puzzle imagery (geometric shapes, cube nets, mechanical-arm renderings, gameplay clips of a children's puzzle game). + +### Does the dataset relate to people? + +No. + +### Does the dataset identify any subpopulations? + +No (the dataset does not contain people). + +### Is it possible to identify individuals, either directly or indirectly? + +No. + +### Does the dataset contain data that might be considered sensitive? + +No. + +### Any other comments? + +None. + +--- + +## 3. Collection Process + +### How was the data associated with each instance acquired? + +All five tasks use **deterministic programmatic generators** (Python and JavaScript). Generators produce a level definition + a reference solution simultaneously, so the answer is not annotated post-hoc but co-produced with the puzzle. + +- **VOI**: a polygon-rasterization XOR generator chooses base shapes, picks angles and vertices, and verifies the XOR-union matches a randomly-seeded target. +- **cube1 / cube2**: a Python cube-state simulator records roll sequences and bottom-face imprints. +- **lamp**: a forward-kinematics generator samples joint angles, places obstacles to constrain feasible solutions, and checks the bulb-target distance against the light radius. +- **cutrope**: built on top of the open-source `yell0wsuit/cuttherope-h5dx` HTML5 port; the SimVerse code records deterministic gameplay clips and authors matching command scripts. + +Visual rendering is done by each task's frontend (HTML/JS) or a headless renderer. + +### What mechanisms or procedures were used to collect the data? + +Generators were run as one-off scripts on author-provisioned commodity hardware. No human annotators, no crowdsourcing, no scraping. Determinism was enforced by fixed random seeds. + +### If the dataset is a sample from a larger set, what was the sampling strategy? + +For each task, generators sweep difficulty parameters (move count, segment count, distractor count) and the shipped records are filtered to span the parameter ranges roughly uniformly within hand-tuned tier definitions. For example, cube1 records are bucketed into 5 difficulty tiers of ~100 records each. + +### Who was involved in the data collection process and how were they compensated? + +The dataset's authors. No external contributors, no compensated annotators (anonymized for review). + +### Over what timeframe was the data collected? + +The shipped subset was generated and curated during 2025–2026. + +### Were any ethical review processes conducted? + +Not applicable — the dataset is fully synthetic and contains no human-subject data. + +--- + +## 4. Preprocessing / cleaning / labeling + +### Was any preprocessing/cleaning/labeling of the data done? + +Yes: +1. **Schema migration** (`migrate_dataset.py` per task): legacy task-native answer fields were lifted into the unified v1 `answer` envelope (e.g. lamp's flat `[-60, -135, ...]` array → `{actions:[{joint, angle}]}`). +2. **Prompt embedding** (`populate_prompts.py` per task): the literal system + user prompt strings the benchmark presents are embedded into each record so HF downloads need no auxiliary code. +3. For cutrope, an additional `build_data.py` step precomputes per-level `prompt_level` metadata (object counts, canvas dimensions) from the source level files. + +Both transformations are idempotent and reproducible from the accompanying code. + +### Was the "raw" data saved in addition to the preprocessed/cleaned/labeled data? + +Yes — pre-migration formats are preserved in each record under `legacy_answer` (and for cutrope the original `reference_solution` string is kept alongside the v1 `answer`). These are scheduled for removal one release cycle after v1.0. + +### Is the software used to preprocess/clean/label the instances available? + +Yes. The full preprocessing pipeline is open source in the accompanying repository (linked from the dataset card, post-acceptance). + +--- + +## 5. Uses + +### Has the dataset been used for any tasks already? + +It is being used for benchmark experiments described in the accompanying paper (anonymized). + +### Is there a repository that links to any or all papers or systems that use the dataset? + +To be filled in post-acceptance. + +### What (other) tasks could the dataset be used for? + +- Fine-grained ablations on visual chain-of-thought prompting strategies +- Studying cross-task transfer in multimodal LLMs +- Diagnostic evaluation of spatial reasoning, multi-step planning, or video understanding in isolation +- Probing whether a model's prompt-following improves with the FINAL_JSON output contract + +### Is there anything about the composition of the dataset or the way it was collected and preprocessed/cleaned/labeled that might impact future uses? + +- **Synthetic visual style** per task: models that overfit to specific render styles may show inflated SimVerse scores that do not transfer to real-world spatial-reasoning tasks. Users should not interpret SimVerse performance as a real-world capability predictor. +- **Open-ended scoring**: cube2 and cutrope require simulation-based scoring; downstream uses that apply naive string-equality scoring will systematically under-credit divergent valid strategies. +- **English-only prompts**: the dataset does not test multilingual reasoning. +- **No train split**: do not use SimVerse for training; it is intended as held-out evaluation. + +### Are there tasks for which the dataset should not be used? + +- **Should NOT** be used as training data for production multimodal LLMs. +- **Should NOT** be used as a stand-in for real-world spatial reasoning capability assessment. +- **Should NOT** be used to evaluate models on languages other than English. + +--- + +## 6. Distribution + +### Will the dataset be distributed to third parties outside of the entity on behalf of which the dataset was created? + +Yes. The dataset is publicly distributed. + +### How will the dataset will be distributed? + +Via Hugging Face Hub as a Dataset repository under the [Datasets API](https://huggingface.co/docs/datasets/) (one HuggingFace dataset, five configs). The dataset can also be downloaded directly with `huggingface-cli download` or via direct URLs. + +### When will the dataset be distributed? + +The dataset will be made publicly available before the camera-ready deadline of the corresponding NeurIPS 2026 submission, in accordance with NeurIPS Datasets & Benchmarks track requirements. + +### Will the dataset be distributed under a copyright or other intellectual property (IP) license, and/or under applicable terms of use (ToU)? + +Yes — **MIT License**. Full license text in `LICENSE` at the dataset root. + +### Have any third parties imposed IP-based or other restrictions on the data associated with the instances? + +The cutrope subset is built on top of the [`yell0wsuit/cuttherope-h5dx`](https://github.com/yell0wsuit/cuttherope-h5dx) HTML5 port, which is itself MIT-licensed. The original Cut the Rope game IP is owned by ZeptoLab; the upstream port and SimVerse's derived gameplay clips are non-commercial educational/research uses consistent with the upstream MIT license. + +### Do any export controls or other regulatory restrictions apply to the dataset or to individual instances? + +None known. + +--- + +## 7. Maintenance + +### Who will be supporting/hosting/maintaining the dataset? + +To be filled in post-acceptance. During review, the dataset is hosted as an anonymous account on Hugging Face Hub. + +### How can the owner/curator/manager of the dataset be contacted? + +Anonymized for review. To be filled in post-acceptance. + +### Is there an erratum? + +Not at this version. Errata, if any, will be tracked via the dataset's commit history on the Hugging Face Hub. + +### Will the dataset be updated? + +The dataset uses semantic versioning. Patch updates fix data errors; minor updates add levels or fields; major updates change schema (with one release cycle of `legacy_*` field overlap). Updates are pushed as new tagged commits on Hugging Face. + +### If the dataset relates to people, are there applicable limits on the retention of the data associated with the instances? + +Not applicable — no person data. + +### Will older versions of the dataset continue to be supported/hosted/maintained? + +Yes. Hugging Face's commit history preserves all historical versions; users can pin to a specific revision via the `revision=` argument of `datasets.load_dataset(...)`. + +### If others want to extend/augment/build on/contribute to the dataset, is there a mechanism for them to do so? + +Yes. The accompanying open-source repository (linked post-acceptance) includes the full generator pipeline; contributors can fork, generate additional puzzles, and submit pull requests or publish derivative datasets. + +--- + +## License + +MIT — see [LICENSE](LICENSE) at the dataset root. diff --git a/example_load.py b/example_load.py new file mode 100644 index 0000000000000000000000000000000000000000..792194d50ad2391d2e2e1865fda452c12e4924ad --- /dev/null +++ b/example_load.py @@ -0,0 +1,92 @@ +"""Minimal demo of loading SimVerse from HuggingFace and verifying a record. + +Run from inside the dataset directory: + cd hf_dataset + python example_load.py + +Or after `huggingface-cli download /simverse --local-dir ./simverse`: + python simverse/example_load.py + +This script: + 1. Loads each of the 5 task configs via `datasets.load_dataset(...)`. + 2. Prints the first record's prompt + answer + media path. + 3. Verifies the referenced image/video file is reachable on disk. +""" +from __future__ import annotations + +import json +import os +from pathlib import Path + +CONFIGS = ("voi", "cube1", "cube2", "lamp", "cutrope") +ROOT = Path(__file__).resolve().parent + + +def _resolve_media_path(record: dict, config: str) -> tuple[str, list[Path]]: + """Pick the canonical media field per config and return (label, list of paths).""" + if config == "voi": + rel = record.get("images_relative_to_config", {}) or {} + target = rel.get("target") + shapes = list((rel.get("shapes") or {}).values()) + return ("target image + shape images", [ + ROOT / config / target if target else None, + *(ROOT / config / s for s in shapes if s), + ]) + if config == "cube1": + ip = record.get("image_paths", {}) or {} + return ("blank net + path sequence", [ + ROOT / config / ip.get("blank_net_image", ""), + ROOT / config / ip.get("path_sequence_image", ""), + ]) + if config == "cube2": + rel = record.get("images_relative_to_config", {}) or {} + return ("initial net + target top face", [ + ROOT / config / rel.get("initialNetImage", ""), + ROOT / config / rel.get("targetTopFaceImage", ""), + ]) + if config == "lamp": + rel = record.get("images_relative_to_config", {}) or {} + return ("workspace image", [ + ROOT / config / rel.get("image", ""), + ]) + if config == "cutrope": + rel = record.get("video_relative_to_config", {}) or {} + return ("gameplay video", [ + ROOT / config / rel.get("path", ""), + ]) + return ("?", []) + + +def main() -> None: + for config in CONFIGS: + path = ROOT / config / "test.jsonl" + if not path.exists(): + print(f"[{config}] missing {path}") + continue + with path.open(encoding="utf-8") as fh: + first = json.loads(fh.readline()) + total = sum(1 for _ in fh) + 1 + + sample_id = first.get("__sample_id__") + prompt_sys = (first.get("prompt") or {}).get("system", "") + prompt_usr = (first.get("prompt") or {}).get("user", "") + answer = first.get("answer") + label, media_paths = _resolve_media_path(first, config) + + print(f"=== {config} ===") + print(f" records: {total}") + print(f" sample_id: {sample_id}") + print(f" prompt.system: {len(prompt_sys)} chars") + print(f" prompt.user: {len(prompt_usr)} chars") + print(f" answer keys: {sorted((answer or {}).keys())}") + print(f" {label}:") + for media in media_paths: + if media is None: + continue + ok = "OK" if media.is_file() else "MISSING" + print(f" {ok} {media.relative_to(ROOT)}") + print() + + +if __name__ == "__main__": + main()