simver commited on
Commit
b38c25e
·
verified ·
1 Parent(s): 0c45a65

Add files using upload-large-folder tool

Browse files
cube2/data/C050.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C050",
4
+ "name": "Goal Roll C050",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "3",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "P",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "8",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "3",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "P",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "8",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "3",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C050/initial_net.png",
117
+ "targetTopFaceImage": "../images/C050/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 50,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-050.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "E",
131
+ "N"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "P",
136
+ "rotation": 180,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "8",
142
+ "rotation": 0,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "3",
148
+ "rotation": 180,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "W",
156
+ "E",
157
+ "N"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "3",
175
+ "rotation": 180
176
+ },
177
+ "LEFT": {
178
+ "patternId": "P",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "8",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C050\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=3, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=3, rotation=180]\n[LEFT: patternId=P, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=8, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=3, rotation=180\n- LEFT: patternId=P, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=8, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C051.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C051",
4
+ "name": "Goal Roll C051",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "6",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "L",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "star",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "6",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "L",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "star",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "L",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C051/initial_net.png",
117
+ "targetTopFaceImage": "../images/C051/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 51,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-051.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "W",
131
+ "W"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "star",
136
+ "rotation": 90,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "6",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "L",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "W",
156
+ "W",
157
+ "W"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "6",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "L",
171
+ "rotation": 90
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "star",
179
+ "rotation": 270
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C051\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=L, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=star, rotation=270] [TOP: patternId=6, rotation=0] [RIGHT: patternId=L, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=star, rotation=270\n- TOP: patternId=6, rotation=0\n- RIGHT: patternId=L, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C052.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C052",
4
+ "name": "Goal Roll C052",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_down",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "P",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_down",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "P",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "arrow_down",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C052/initial_net.png",
117
+ "targetTopFaceImage": "../images/C052/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 52,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-052.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "E",
131
+ "W"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "arrow_down",
136
+ "rotation": 90,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "P",
142
+ "rotation": 90,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "arrow_down",
148
+ "rotation": 90,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "S",
156
+ "E",
157
+ "W"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "arrow_down",
167
+ "rotation": 90
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "P",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C052\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=arrow_down, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=P, rotation=0]\n [FRONT: patternId=arrow_down, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=P, rotation=0\n- FRONT: patternId=arrow_down, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C053.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C053",
4
+ "name": "Goal Roll C053",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "9",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "heart",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "9",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "heart",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "heart",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C053/initial_net.png",
117
+ "targetTopFaceImage": "../images/C053/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 53,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-053.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "S"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "heart",
135
+ "rotation": 270,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "9",
141
+ "rotation": 0,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "S",
149
+ "S"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "9",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "heart",
159
+ "rotation": 270
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C053\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=heart, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=9, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=heart, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=9, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=heart, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C054.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C054",
4
+ "name": "Goal Roll C054",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "M",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "U",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "5",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "M",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "U",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "5",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "U",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C054/initial_net.png",
117
+ "targetTopFaceImage": "../images/C054/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 54,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-054.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "S"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "U",
136
+ "rotation": 180,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "5",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "M",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "S",
156
+ "W",
157
+ "S"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "M",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "U",
167
+ "rotation": 180
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "5",
179
+ "rotation": 270
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C054\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=U, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=5, rotation=270] [TOP: patternId=M, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=U, rotation=180]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=5, rotation=270\n- TOP: patternId=M, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=U, rotation=180\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C055.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C055",
4
+ "name": "Goal Roll C055",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "K",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "9",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "9",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "K",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "9",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "9",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "K",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C055/initial_net.png",
117
+ "targetTopFaceImage": "../images/C055/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 55,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-055.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "N"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "9",
136
+ "rotation": 0,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "9",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "K",
148
+ "rotation": 180,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "W",
156
+ "N",
157
+ "N"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "K",
171
+ "rotation": 180
172
+ },
173
+ "BACK": {
174
+ "patternId": "9",
175
+ "rotation": 90
176
+ },
177
+ "LEFT": {
178
+ "patternId": "9",
179
+ "rotation": 180
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C055\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=K, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=9, rotation=90]\n[LEFT: patternId=9, rotation=180] [TOP: patternId=?, rotation=0] [RIGHT: patternId=K, rotation=180]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=9, rotation=90\n- LEFT: patternId=9, rotation=180\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=K, rotation=180\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C056.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C056",
4
+ "name": "Goal Roll C056",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "J",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "star",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "J",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "star",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "star",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C056/initial_net.png",
117
+ "targetTopFaceImage": "../images/C056/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 56,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-056.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "E"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "star",
135
+ "rotation": 180,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "J",
141
+ "rotation": 270,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "N",
149
+ "E"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "?",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "J",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "star",
167
+ "rotation": 180
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C056\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=star, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=star, rotation=180]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=J, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=star, rotation=180\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=J, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C057.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C057",
4
+ "name": "Goal Roll C057",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "7",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "J",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "R",
73
+ "rotation": 180
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "7",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "J",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "R",
100
+ "rotation": 180
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "7",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C057/initial_net.png",
117
+ "targetTopFaceImage": "../images/C057/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 57,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-057.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "W"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "J",
136
+ "rotation": 90,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "7",
142
+ "rotation": 90,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "R",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "E",
156
+ "S",
157
+ "W"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "7",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "J",
171
+ "rotation": 270
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "R",
183
+ "rotation": 180
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C057\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=7, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=J, rotation=270]\n [FRONT: patternId=7, rotation=0]\n [BOTTOM: patternId=R, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=J, rotation=270\n- FRONT: patternId=7, rotation=0\n- BOTTOM: patternId=R, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C058.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C058",
4
+ "name": "Goal Roll C058",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "J",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "5",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "G",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "J",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "5",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "G",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "5",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C058/initial_net.png",
117
+ "targetTopFaceImage": "../images/C058/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 58,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-058.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "W",
131
+ "N"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "5",
136
+ "rotation": 90,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "G",
142
+ "rotation": 270,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "J",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "N",
156
+ "W",
157
+ "N"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "J",
163
+ "rotation": 180
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "5",
175
+ "rotation": 90
176
+ },
177
+ "LEFT": {
178
+ "patternId": "G",
179
+ "rotation": 180
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C058\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=5, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=5, rotation=90]\n[LEFT: patternId=G, rotation=180] [TOP: patternId=J, rotation=180] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=5, rotation=90\n- LEFT: patternId=G, rotation=180\n- TOP: patternId=J, rotation=180\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C059.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C059",
4
+ "name": "Goal Roll C059",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "diamond",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "U",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "diamond",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "U",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "U",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C059/initial_net.png",
117
+ "targetTopFaceImage": "../images/C059/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 59,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-059.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "E",
131
+ "W"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "U",
136
+ "rotation": 270,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "diamond",
142
+ "rotation": 0,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "U",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "E",
156
+ "E",
157
+ "W"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "diamond",
163
+ "rotation": 180
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "U",
171
+ "rotation": 90
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C059\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=U, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=diamond, rotation=180] [RIGHT: patternId=U, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=diamond, rotation=180\n- RIGHT: patternId=U, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C060.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C060",
4
+ "name": "Goal Roll C060",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "3",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "M",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "3",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "M",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "M",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C060/initial_net.png",
117
+ "targetTopFaceImage": "../images/C060/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 60,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-060.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "3",
135
+ "rotation": 270,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "M",
141
+ "rotation": 270,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "E",
149
+ "N"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "?",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "3",
163
+ "rotation": 90
164
+ },
165
+ "BACK": {
166
+ "patternId": "M",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C060\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=M, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=M, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=3, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=3, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C061.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C061",
4
+ "name": "Goal Roll C061",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "Z",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "D",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "Z",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "D",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "D",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C061/initial_net.png",
117
+ "targetTopFaceImage": "../images/C061/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 61,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-061.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "W"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "D",
135
+ "rotation": 180,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "Z",
141
+ "rotation": 180,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "W",
149
+ "W"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "Z",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "D",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C061\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=D, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=D, rotation=0] [TOP: patternId=Z, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=D, rotation=0\n- TOP: patternId=Z, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C062.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C062",
4
+ "name": "Goal Roll C062",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "L",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "C",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "L",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "C",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "C",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C062/initial_net.png",
117
+ "targetTopFaceImage": "../images/C062/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 62,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-062.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "E"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "C",
135
+ "rotation": 0,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "L",
141
+ "rotation": 270,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "E",
149
+ "E"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "L",
155
+ "rotation": 90
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "C",
163
+ "rotation": 180
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C062\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=C, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=L, rotation=90] [RIGHT: patternId=C, rotation=180]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=L, rotation=90\n- RIGHT: patternId=C, rotation=180\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C063.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C063",
4
+ "name": "Goal Roll C063",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "H",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "triangle",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "H",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "triangle",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "triangle",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C063/initial_net.png",
117
+ "targetTopFaceImage": "../images/C063/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 63,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-063.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "N"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "triangle",
135
+ "rotation": 180,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "H",
141
+ "rotation": 0,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "N",
149
+ "N"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "H",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "triangle",
167
+ "rotation": 180
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C063\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=triangle, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=triangle, rotation=180]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=H, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=triangle, rotation=180\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=H, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C064.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C064",
4
+ "name": "Goal Roll C064",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "O",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "A",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "W",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "O",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "A",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "W",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "A",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C064/initial_net.png",
117
+ "targetTopFaceImage": "../images/C064/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 64,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-064.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "S"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "A",
136
+ "rotation": 270,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "W",
142
+ "rotation": 270,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "O",
148
+ "rotation": 180,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "S",
156
+ "W",
157
+ "S"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "O",
163
+ "rotation": 270
164
+ },
165
+ "FRONT": {
166
+ "patternId": "A",
167
+ "rotation": 270
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "W",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C064\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=A, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=W, rotation=0] [TOP: patternId=O, rotation=270] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=A, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=W, rotation=0\n- TOP: patternId=O, rotation=270\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=A, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C065.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C065",
4
+ "name": "Goal Roll C065",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "H",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "Z",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "H",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "Z",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "Z",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C065/initial_net.png",
117
+ "targetTopFaceImage": "../images/C065/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 65,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-065.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "E"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "Z",
135
+ "rotation": 0,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "H",
141
+ "rotation": 270,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "E",
149
+ "E"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "H",
155
+ "rotation": 90
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "Z",
163
+ "rotation": 180
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C065\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=Z, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=H, rotation=90] [RIGHT: patternId=Z, rotation=180]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=H, rotation=90\n- RIGHT: patternId=Z, rotation=180\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C066.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C066",
4
+ "name": "Goal Roll C066",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "R",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "B",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "V",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "R",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "B",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "V",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "R",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C066/initial_net.png",
117
+ "targetTopFaceImage": "../images/C066/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 66,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-066.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N",
131
+ "N"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "R",
136
+ "rotation": 90,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "B",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "V",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "E",
156
+ "N",
157
+ "N"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "R",
171
+ "rotation": 270
172
+ },
173
+ "BACK": {
174
+ "patternId": "B",
175
+ "rotation": 270
176
+ },
177
+ "LEFT": {
178
+ "patternId": "V",
179
+ "rotation": 270
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C066\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=R, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=B, rotation=270]\n[LEFT: patternId=V, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=R, rotation=270]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=B, rotation=270\n- LEFT: patternId=V, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=R, rotation=270\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C067.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C067",
4
+ "name": "Goal Roll C067",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "9",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "Y",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "1",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "9",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "Y",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "1",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "Y",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C067/initial_net.png",
117
+ "targetTopFaceImage": "../images/C067/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 67,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-067.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "W",
131
+ "N"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "Y",
136
+ "rotation": 90,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "1",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "9",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "N",
156
+ "W",
157
+ "N"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "9",
163
+ "rotation": 180
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "Y",
175
+ "rotation": 90
176
+ },
177
+ "LEFT": {
178
+ "patternId": "1",
179
+ "rotation": 90
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C067\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=Y, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Y, rotation=90]\n[LEFT: patternId=1, rotation=90] [TOP: patternId=9, rotation=180] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Y, rotation=90\n- LEFT: patternId=1, rotation=90\n- TOP: patternId=9, rotation=180\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C068.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C068",
4
+ "name": "Goal Roll C068",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "7",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "diamond",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "7",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "diamond",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "diamond",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C068/initial_net.png",
117
+ "targetTopFaceImage": "../images/C068/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 68,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-068.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "S"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "diamond",
135
+ "rotation": 270,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "7",
141
+ "rotation": 270,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "S",
149
+ "S"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "7",
155
+ "rotation": 270
156
+ },
157
+ "FRONT": {
158
+ "patternId": "diamond",
159
+ "rotation": 270
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C068\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=diamond, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=7, rotation=270] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=diamond, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=7, rotation=270\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=diamond, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C069.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C069",
4
+ "name": "Goal Roll C069",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "H",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "V",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "square",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "H",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "V",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "square",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "square",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C069/initial_net.png",
117
+ "targetTopFaceImage": "../images/C069/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 69,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-069.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "S"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "V",
136
+ "rotation": 180,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "H",
142
+ "rotation": 0,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "square",
148
+ "rotation": 180,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "E",
156
+ "S",
157
+ "S"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "H",
167
+ "rotation": 270
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "V",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "square",
179
+ "rotation": 180
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C069\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=square, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=square, rotation=180] [TOP: patternId=?, rotation=0] [RIGHT: patternId=V, rotation=0]\n [FRONT: patternId=H, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=square, rotation=180\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=V, rotation=0\n- FRONT: patternId=H, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C070.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C070",
4
+ "name": "Goal Roll C070",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "N",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "heart",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "6",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "N",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "heart",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "6",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "6",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C070/initial_net.png",
117
+ "targetTopFaceImage": "../images/C070/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 70,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-070.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "W",
131
+ "W"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "6",
136
+ "rotation": 180,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "N",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "heart",
148
+ "rotation": 270,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "W",
156
+ "W",
157
+ "W"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "N",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "heart",
171
+ "rotation": 90
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "6",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C070\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=6, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=6, rotation=0] [TOP: patternId=N, rotation=0] [RIGHT: patternId=heart, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=6, rotation=0\n- TOP: patternId=N, rotation=0\n- RIGHT: patternId=heart, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C071.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C071",
4
+ "name": "Goal Roll C071",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "circle",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "H",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "circle",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "H",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "H",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C071/initial_net.png",
117
+ "targetTopFaceImage": "../images/C071/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 71,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-071.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "S"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "H",
135
+ "rotation": 0,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "circle",
141
+ "rotation": 90,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "S",
149
+ "S"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "circle",
155
+ "rotation": 90
156
+ },
157
+ "FRONT": {
158
+ "patternId": "H",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C071\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=H, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=circle, rotation=90] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=H, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=circle, rotation=90\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=H, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C072.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C072",
4
+ "name": "Goal Roll C072",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "6",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "D",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "arrow_left",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "6",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "D",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "arrow_left",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "D",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C072/initial_net.png",
117
+ "targetTopFaceImage": "../images/C072/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 72,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-072.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "E"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "arrow_left",
136
+ "rotation": 0,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "D",
142
+ "rotation": 0,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "6",
148
+ "rotation": 180,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "E",
156
+ "S",
157
+ "E"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "6",
163
+ "rotation": 90
164
+ },
165
+ "FRONT": {
166
+ "patternId": "D",
167
+ "rotation": 270
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "arrow_left",
171
+ "rotation": 180
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C072\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=D, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=6, rotation=90] [RIGHT: patternId=arrow_left, rotation=180]\n [FRONT: patternId=D, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=6, rotation=90\n- RIGHT: patternId=arrow_left, rotation=180\n- FRONT: patternId=D, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C073.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C073",
4
+ "name": "Goal Roll C073",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "X",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "5",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "X",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "5",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "X",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C073/initial_net.png",
117
+ "targetTopFaceImage": "../images/C073/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 73,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-073.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "X",
135
+ "rotation": 90,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "5",
141
+ "rotation": 0,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "S",
149
+ "W"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "?",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "X",
159
+ "rotation": 90
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "?",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "5",
171
+ "rotation": 90
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C073\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=X, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=5, rotation=90] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=X, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=5, rotation=90\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=X, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C074.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C074",
4
+ "name": "Goal Roll C074",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "C",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "S",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "C",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "S",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "C",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C074/initial_net.png",
117
+ "targetTopFaceImage": "../images/C074/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 74,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-074.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "S",
135
+ "rotation": 90,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "C",
141
+ "rotation": 90,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "W",
149
+ "N"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "?",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "?",
163
+ "rotation": 0
164
+ },
165
+ "BACK": {
166
+ "patternId": "C",
167
+ "rotation": 0
168
+ },
169
+ "LEFT": {
170
+ "patternId": "S",
171
+ "rotation": 270
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C074\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=C, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=C, rotation=0]\n[LEFT: patternId=S, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=C, rotation=0\n- LEFT: patternId=S, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C075.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C075",
4
+ "name": "Goal Roll C075",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "6",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "F",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "6",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "6",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "F",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "6",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "F",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C075/initial_net.png",
117
+ "targetTopFaceImage": "../images/C075/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 75,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-075.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "E"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "6",
136
+ "rotation": 0,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "F",
142
+ "rotation": 270,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "6",
148
+ "rotation": 90,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "E",
156
+ "S",
157
+ "E"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "6",
163
+ "rotation": 0
164
+ },
165
+ "FRONT": {
166
+ "patternId": "F",
167
+ "rotation": 180
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "6",
171
+ "rotation": 180
172
+ },
173
+ "BACK": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "LEFT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C075\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=F, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=6, rotation=0] [RIGHT: patternId=6, rotation=180]\n [FRONT: patternId=F, rotation=180]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=6, rotation=0\n- RIGHT: patternId=6, rotation=180\n- FRONT: patternId=F, rotation=180\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C076.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C076",
4
+ "name": "Goal Roll C076",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "star",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "F",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "star",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "F",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "F",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C076/initial_net.png",
117
+ "targetTopFaceImage": "../images/C076/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 76,
125
+ "moveCount": 2,
126
+ "sourceLevelPath": "levels/reconstruct/generated-076.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N"
131
+ ],
132
+ "observedPathFaces": [
133
+ {
134
+ "patternId": "star",
135
+ "rotation": 0,
136
+ "flipHorizontal": false,
137
+ "flipVertical": true
138
+ },
139
+ {
140
+ "patternId": "F",
141
+ "rotation": 180,
142
+ "flipHorizontal": false,
143
+ "flipVertical": true
144
+ }
145
+ ],
146
+ "answer": {
147
+ "directions": [
148
+ "E",
149
+ "N"
150
+ ]
151
+ },
152
+ "legacy_answer": {
153
+ "TOP": {
154
+ "patternId": "?",
155
+ "rotation": 0
156
+ },
157
+ "FRONT": {
158
+ "patternId": "?",
159
+ "rotation": 0
160
+ },
161
+ "RIGHT": {
162
+ "patternId": "star",
163
+ "rotation": 180
164
+ },
165
+ "BACK": {
166
+ "patternId": "F",
167
+ "rotation": 270
168
+ },
169
+ "LEFT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BOTTOM": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ }
177
+ },
178
+ "prompt": {
179
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
180
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C076\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=F, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=F, rotation=270]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=star, rotation=180]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=F, rotation=270\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=star, rotation=180\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
181
+ }
182
+ }
cube2/data/C077.json ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C077",
4
+ "name": "Goal Roll C077",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "7",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "J",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "M",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "7",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "J",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "M",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "J",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C077/initial_net.png",
117
+ "targetTopFaceImage": "../images/C077/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 1,
121
+ "tier": 1,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 77,
125
+ "moveCount": 3,
126
+ "sourceLevelPath": "levels/reconstruct/generated-077.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "S",
131
+ "S"
132
+ ],
133
+ "observedPathFaces": [
134
+ {
135
+ "patternId": "J",
136
+ "rotation": 270,
137
+ "flipHorizontal": false,
138
+ "flipVertical": true
139
+ },
140
+ {
141
+ "patternId": "7",
142
+ "rotation": 180,
143
+ "flipHorizontal": false,
144
+ "flipVertical": true
145
+ },
146
+ {
147
+ "patternId": "M",
148
+ "rotation": 90,
149
+ "flipHorizontal": false,
150
+ "flipVertical": true
151
+ }
152
+ ],
153
+ "answer": {
154
+ "directions": [
155
+ "S",
156
+ "S",
157
+ "S"
158
+ ]
159
+ },
160
+ "legacy_answer": {
161
+ "TOP": {
162
+ "patternId": "7",
163
+ "rotation": 180
164
+ },
165
+ "FRONT": {
166
+ "patternId": "J",
167
+ "rotation": 270
168
+ },
169
+ "RIGHT": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "BACK": {
174
+ "patternId": "M",
175
+ "rotation": 90
176
+ },
177
+ "LEFT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BOTTOM": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ }
185
+ },
186
+ "prompt": {
187
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
188
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C077\n- task_type: roll_to_target_top_face\n- difficulty: 1\n- target_top_face: patternId=J, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=M, rotation=90]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=7, rotation=180] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=J, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=90\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=7, rotation=180\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=J, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
189
+ }
190
+ }
cube2/data/C178.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C178",
4
+ "name": "Goal Roll C178",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "P",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_down",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "J",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "5",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "P",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_down",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "J",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "5",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "5",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C178/initial_net.png",
117
+ "targetTopFaceImage": "../images/C178/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 178,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-178.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "S",
131
+ "W",
132
+ "W"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "arrow_down",
137
+ "rotation": 180,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "P",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "J",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "5",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "S",
163
+ "S",
164
+ "W",
165
+ "W"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "P",
171
+ "rotation": 90
172
+ },
173
+ "FRONT": {
174
+ "patternId": "arrow_down",
175
+ "rotation": 180
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ },
185
+ "LEFT": {
186
+ "patternId": "J",
187
+ "rotation": 180
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "5",
191
+ "rotation": 90
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C178\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=5, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=J, rotation=180] [TOP: patternId=P, rotation=90] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=arrow_down, rotation=180]\n [BOTTOM: patternId=5, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=J, rotation=180\n- TOP: patternId=P, rotation=90\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=arrow_down, rotation=180\n- BOTTOM: patternId=5, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C179.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C179",
4
+ "name": "Goal Roll C179",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "L",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "N",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "J",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "circle",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "H",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "L",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "N",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "J",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "circle",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "H",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "L",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C179/initial_net.png",
117
+ "targetTopFaceImage": "../images/C179/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 179,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-179.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "E",
131
+ "S",
132
+ "S",
133
+ "E"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "J",
138
+ "rotation": 270,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "L",
144
+ "rotation": 180,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "N",
150
+ "rotation": 90,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "H",
156
+ "rotation": 90,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "circle",
162
+ "rotation": 90,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "E",
170
+ "E",
171
+ "S",
172
+ "S",
173
+ "E"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "L",
179
+ "rotation": 0
180
+ },
181
+ "FRONT": {
182
+ "patternId": "N",
183
+ "rotation": 270
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "J",
187
+ "rotation": 90
188
+ },
189
+ "BACK": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ },
193
+ "LEFT": {
194
+ "patternId": "circle",
195
+ "rotation": 90
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "H",
199
+ "rotation": 270
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C179\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=L, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=circle, rotation=90] [TOP: patternId=L, rotation=0] [RIGHT: patternId=J, rotation=90]\n [FRONT: patternId=N, rotation=270]\n [BOTTOM: patternId=H, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=circle, rotation=90\n- TOP: patternId=L, rotation=0\n- RIGHT: patternId=J, rotation=90\n- FRONT: patternId=N, rotation=270\n- BOTTOM: patternId=H, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C180.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C180",
4
+ "name": "Goal Roll C180",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "arrow_up",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "7",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "W",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "arrow_up",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "7",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "W",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "7",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C180/initial_net.png",
117
+ "targetTopFaceImage": "../images/C180/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 180,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-180.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "S",
131
+ "W",
132
+ "N"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "W",
137
+ "rotation": 0,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "7",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "arrow_up",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "W",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "W",
163
+ "S",
164
+ "W",
165
+ "N"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "arrow_up",
171
+ "rotation": 180
172
+ },
173
+ "FRONT": {
174
+ "patternId": "7",
175
+ "rotation": 270
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ },
185
+ "LEFT": {
186
+ "patternId": "W",
187
+ "rotation": 180
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C180\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=7, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=W, rotation=180] [TOP: patternId=arrow_up, rotation=180] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=7, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=W, rotation=180\n- TOP: patternId=arrow_up, rotation=180\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=7, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C181.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C181",
4
+ "name": "Goal Roll C181",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "J",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "Z",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "7",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "diamond",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "J",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "Z",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "7",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "diamond",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "7",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C181/initial_net.png",
117
+ "targetTopFaceImage": "../images/C181/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 181,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-181.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "E",
131
+ "W",
132
+ "W",
133
+ "W"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "J",
138
+ "rotation": 0,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "Z",
144
+ "rotation": 180,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "J",
150
+ "rotation": 0,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "diamond",
156
+ "rotation": 180,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "7",
162
+ "rotation": 180,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "S",
170
+ "E",
171
+ "W",
172
+ "W",
173
+ "W"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "FRONT": {
182
+ "patternId": "J",
183
+ "rotation": 0
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "Z",
187
+ "rotation": 90
188
+ },
189
+ "BACK": {
190
+ "patternId": "7",
191
+ "rotation": 0
192
+ },
193
+ "LEFT": {
194
+ "patternId": "diamond",
195
+ "rotation": 270
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "?",
199
+ "rotation": 0
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C181\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=7, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=7, rotation=0]\n[LEFT: patternId=diamond, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=Z, rotation=90]\n [FRONT: patternId=J, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=7, rotation=0\n- LEFT: patternId=diamond, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=Z, rotation=90\n- FRONT: patternId=J, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C182.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C182",
4
+ "name": "Goal Roll C182",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "1",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "4",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "V",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "1",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "4",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "V",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "4",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C182/initial_net.png",
117
+ "targetTopFaceImage": "../images/C182/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 182,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-182.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "S",
131
+ "S",
132
+ "N"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "V",
137
+ "rotation": 90,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "1",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "4",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "1",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "W",
163
+ "S",
164
+ "S",
165
+ "N"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "1",
175
+ "rotation": 180
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "4",
179
+ "rotation": 90
180
+ },
181
+ "BACK": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ },
185
+ "LEFT": {
186
+ "patternId": "V",
187
+ "rotation": 270
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C182\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=4, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=V, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=4, rotation=90]\n [FRONT: patternId=1, rotation=180]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=V, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=4, rotation=90\n- FRONT: patternId=1, rotation=180\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C183.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C183",
4
+ "name": "Goal Roll C183",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "G",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "smile",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "D",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "8",
73
+ "rotation": 180
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "G",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "smile",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "D",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "8",
100
+ "rotation": 180
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "G",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C183/initial_net.png",
117
+ "targetTopFaceImage": "../images/C183/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 183,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-183.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "W",
132
+ "W",
133
+ "E"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "smile",
138
+ "rotation": 90,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "G",
144
+ "rotation": 270,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "8",
150
+ "rotation": 270,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "D",
156
+ "rotation": 180,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "8",
162
+ "rotation": 270,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "E",
170
+ "S",
171
+ "W",
172
+ "W",
173
+ "E"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "FRONT": {
182
+ "patternId": "G",
183
+ "rotation": 180
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "smile",
187
+ "rotation": 270
188
+ },
189
+ "BACK": {
190
+ "patternId": "D",
191
+ "rotation": 90
192
+ },
193
+ "LEFT": {
194
+ "patternId": "?",
195
+ "rotation": 0
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "8",
199
+ "rotation": 180
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C183\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=G, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=D, rotation=90]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=smile, rotation=270]\n [FRONT: patternId=G, rotation=180]\n [BOTTOM: patternId=8, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=D, rotation=90\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=smile, rotation=270\n- FRONT: patternId=G, rotation=180\n- BOTTOM: patternId=8, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C184.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C184",
4
+ "name": "Goal Roll C184",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "T",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "H",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "D",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "W",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "T",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "H",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "D",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "W",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "H",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C184/initial_net.png",
117
+ "targetTopFaceImage": "../images/C184/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 184,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-184.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N",
131
+ "E",
132
+ "N"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "H",
137
+ "rotation": 180,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "D",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "T",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "W",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "E",
163
+ "N",
164
+ "E",
165
+ "N"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "T",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "H",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "D",
183
+ "rotation": 180
184
+ },
185
+ "LEFT": {
186
+ "patternId": "W",
187
+ "rotation": 270
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C184\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=H, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=D, rotation=180]\n[LEFT: patternId=W, rotation=270] [TOP: patternId=T, rotation=0] [RIGHT: patternId=H, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=D, rotation=180\n- LEFT: patternId=W, rotation=270\n- TOP: patternId=T, rotation=0\n- RIGHT: patternId=H, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C185.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C185",
4
+ "name": "Goal Roll C185",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "3",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "8",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "C",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "3",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "8",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "C",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "8",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C185/initial_net.png",
117
+ "targetTopFaceImage": "../images/C185/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 185,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-185.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "W",
131
+ "W",
132
+ "E"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "8",
137
+ "rotation": 180,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "C",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "3",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "C",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "N",
163
+ "W",
164
+ "W",
165
+ "E"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "3",
175
+ "rotation": 90
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "8",
183
+ "rotation": 180
184
+ },
185
+ "LEFT": {
186
+ "patternId": "C",
187
+ "rotation": 90
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C185\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=8, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=8, rotation=180]\n[LEFT: patternId=C, rotation=90] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=3, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=8, rotation=180\n- LEFT: patternId=C, rotation=90\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=3, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C186.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C186",
4
+ "name": "Goal Roll C186",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "G",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "N",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "arrow_down",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "arrow_left",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "G",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "N",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "arrow_down",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "arrow_left",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "arrow_left",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C186/initial_net.png",
117
+ "targetTopFaceImage": "../images/C186/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 186,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-186.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "S",
131
+ "S",
132
+ "W",
133
+ "W"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "arrow_left",
138
+ "rotation": 270,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "N",
144
+ "rotation": 270,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "arrow_down",
150
+ "rotation": 0,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "G",
156
+ "rotation": 90,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "arrow_left",
162
+ "rotation": 90,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "W",
170
+ "S",
171
+ "S",
172
+ "W",
173
+ "W"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "G",
179
+ "rotation": 90
180
+ },
181
+ "FRONT": {
182
+ "patternId": "N",
183
+ "rotation": 0
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "arrow_down",
187
+ "rotation": 0
188
+ },
189
+ "BACK": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ },
193
+ "LEFT": {
194
+ "patternId": "arrow_left",
195
+ "rotation": 90
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "?",
199
+ "rotation": 0
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C186\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=arrow_left, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=arrow_left, rotation=90] [TOP: patternId=G, rotation=90] [RIGHT: patternId=arrow_down, rotation=0]\n [FRONT: patternId=N, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=arrow_left, rotation=90\n- TOP: patternId=G, rotation=90\n- RIGHT: patternId=arrow_down, rotation=0\n- FRONT: patternId=N, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C187.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C187",
4
+ "name": "Goal Roll C187",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "1",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "4",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "O",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "U",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "1",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "4",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "O",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "U",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "4",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C187/initial_net.png",
117
+ "targetTopFaceImage": "../images/C187/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 187,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-187.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "E",
132
+ "E",
133
+ "N"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "O",
138
+ "rotation": 180,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "4",
144
+ "rotation": 270,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "1",
150
+ "rotation": 0,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "U",
156
+ "rotation": 90,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "O",
162
+ "rotation": 0,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "E",
170
+ "S",
171
+ "E",
172
+ "E",
173
+ "N"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "1",
179
+ "rotation": 270
180
+ },
181
+ "FRONT": {
182
+ "patternId": "4",
183
+ "rotation": 180
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "O",
187
+ "rotation": 0
188
+ },
189
+ "BACK": {
190
+ "patternId": "U",
191
+ "rotation": 0
192
+ },
193
+ "LEFT": {
194
+ "patternId": "?",
195
+ "rotation": 0
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "?",
199
+ "rotation": 0
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C187\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=4, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=U, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=1, rotation=270] [RIGHT: patternId=O, rotation=0]\n [FRONT: patternId=4, rotation=180]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=U, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=1, rotation=270\n- RIGHT: patternId=O, rotation=0\n- FRONT: patternId=4, rotation=180\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C188.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C188",
4
+ "name": "Goal Roll C188",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "J",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "heart",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "E",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "1",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "J",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "heart",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "E",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "1",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "J",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C188/initial_net.png",
117
+ "targetTopFaceImage": "../images/C188/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 188,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-188.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "E",
132
+ "S",
133
+ "E"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "E",
138
+ "rotation": 90,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "heart",
144
+ "rotation": 90,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "1",
150
+ "rotation": 180,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "E",
156
+ "rotation": 180,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "J",
162
+ "rotation": 270,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "W",
170
+ "N",
171
+ "E",
172
+ "S",
173
+ "E"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "FRONT": {
182
+ "patternId": "J",
183
+ "rotation": 270
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "?",
187
+ "rotation": 0
188
+ },
189
+ "BACK": {
190
+ "patternId": "heart",
191
+ "rotation": 0
192
+ },
193
+ "LEFT": {
194
+ "patternId": "E",
195
+ "rotation": 270
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "1",
199
+ "rotation": 90
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C188\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=J, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=heart, rotation=0]\n[LEFT: patternId=E, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=J, rotation=270]\n [BOTTOM: patternId=1, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=heart, rotation=0\n- LEFT: patternId=E, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=J, rotation=270\n- BOTTOM: patternId=1, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C189.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C189",
4
+ "name": "Goal Roll C189",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "8",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "heart",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "C",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "8",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "heart",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "C",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "8",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C189/initial_net.png",
117
+ "targetTopFaceImage": "../images/C189/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 189,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-189.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "N",
131
+ "E",
132
+ "S"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "8",
137
+ "rotation": 180,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "C",
143
+ "rotation": 0,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "heart",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "8",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "S",
163
+ "N",
164
+ "E",
165
+ "S"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "8",
175
+ "rotation": 180
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "heart",
179
+ "rotation": 270
180
+ },
181
+ "BACK": {
182
+ "patternId": "?",
183
+ "rotation": 0
184
+ },
185
+ "LEFT": {
186
+ "patternId": "?",
187
+ "rotation": 0
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "C",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C189\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=8, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=heart, rotation=270]\n [FRONT: patternId=8, rotation=180]\n [BOTTOM: patternId=C, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=heart, rotation=270\n- FRONT: patternId=8, rotation=180\n- BOTTOM: patternId=C, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C190.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C190",
4
+ "name": "Goal Roll C190",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "7",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_down",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "Q",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "7",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_down",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "Q",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "Q",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C190/initial_net.png",
117
+ "targetTopFaceImage": "../images/C190/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 190,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-190.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "N",
131
+ "N",
132
+ "S"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "Q",
137
+ "rotation": 90,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "7",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "arrow_down",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "7",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "N",
163
+ "N",
164
+ "N",
165
+ "S"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "7",
171
+ "rotation": 180
172
+ },
173
+ "FRONT": {
174
+ "patternId": "arrow_down",
175
+ "rotation": 90
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "Q",
183
+ "rotation": 90
184
+ },
185
+ "LEFT": {
186
+ "patternId": "?",
187
+ "rotation": 0
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C190\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=Q, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Q, rotation=90]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=7, rotation=180] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=arrow_down, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Q, rotation=90\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=7, rotation=180\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=arrow_down, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C191.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C191",
4
+ "name": "Goal Roll C191",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "arrow_left",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "smile",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "I",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "M",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "arrow_left",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "smile",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "I",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "M",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "I",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C191/initial_net.png",
117
+ "targetTopFaceImage": "../images/C191/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 191,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-191.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "S",
132
+ "W"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "smile",
137
+ "rotation": 270,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "M",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "arrow_left",
149
+ "rotation": 0,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "I",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "S",
163
+ "W",
164
+ "S",
165
+ "W"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "arrow_left",
171
+ "rotation": 90
172
+ },
173
+ "FRONT": {
174
+ "patternId": "smile",
175
+ "rotation": 270
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "I",
183
+ "rotation": 180
184
+ },
185
+ "LEFT": {
186
+ "patternId": "M",
187
+ "rotation": 180
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C191\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=I, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=I, rotation=180]\n[LEFT: patternId=M, rotation=180] [TOP: patternId=arrow_left, rotation=90] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=smile, rotation=270]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=I, rotation=180\n- LEFT: patternId=M, rotation=180\n- TOP: patternId=arrow_left, rotation=90\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=smile, rotation=270\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C192.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C192",
4
+ "name": "Goal Roll C192",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "8",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "P",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "star",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "8",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_right",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "8",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "P",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "star",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "8",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_right",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 4,
106
+ "stepNumber": 5,
107
+ "patternId": "star",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C192/initial_net.png",
117
+ "targetTopFaceImage": "../images/C192/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 5,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 192,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-192.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "W",
131
+ "N",
132
+ "N",
133
+ "N"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "8",
138
+ "rotation": 270,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "8",
144
+ "rotation": 90,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "star",
150
+ "rotation": 0,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "arrow_right",
156
+ "rotation": 270,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "P",
162
+ "rotation": 270,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "W",
170
+ "W",
171
+ "N",
172
+ "N",
173
+ "N"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "8",
179
+ "rotation": 270
180
+ },
181
+ "FRONT": {
182
+ "patternId": "P",
183
+ "rotation": 90
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "?",
187
+ "rotation": 0
188
+ },
189
+ "BACK": {
190
+ "patternId": "star",
191
+ "rotation": 180
192
+ },
193
+ "LEFT": {
194
+ "patternId": "8",
195
+ "rotation": 90
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "arrow_right",
199
+ "rotation": 90
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C192\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=star, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=star, rotation=180]\n[LEFT: patternId=8, rotation=90] [TOP: patternId=8, rotation=270] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=P, rotation=90]\n [BOTTOM: patternId=arrow_right, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=star, rotation=180\n- LEFT: patternId=8, rotation=90\n- TOP: patternId=8, rotation=270\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=P, rotation=90\n- BOTTOM: patternId=arrow_right, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C193.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C193",
4
+ "name": "Goal Roll C193",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "5",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "I",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "arrow_right",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "I",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "5",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "I",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "arrow_right",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "I",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "5",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C193/initial_net.png",
117
+ "targetTopFaceImage": "../images/C193/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 193,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-193.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "E",
131
+ "S",
132
+ "E",
133
+ "N"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "arrow_right",
138
+ "rotation": 90,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "I",
144
+ "rotation": 0,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "I",
150
+ "rotation": 0,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "5",
156
+ "rotation": 180,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "I",
162
+ "rotation": 270,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "N",
170
+ "E",
171
+ "S",
172
+ "E",
173
+ "N"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "FRONT": {
182
+ "patternId": "5",
183
+ "rotation": 90
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "I",
187
+ "rotation": 90
188
+ },
189
+ "BACK": {
190
+ "patternId": "arrow_right",
191
+ "rotation": 90
192
+ },
193
+ "LEFT": {
194
+ "patternId": "?",
195
+ "rotation": 0
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "I",
199
+ "rotation": 270
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C193\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=5, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_right, rotation=90]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=I, rotation=90]\n [FRONT: patternId=5, rotation=90]\n [BOTTOM: patternId=I, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_right, rotation=90\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=I, rotation=90\n- FRONT: patternId=5, rotation=90\n- BOTTOM: patternId=I, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C194.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C194",
4
+ "name": "Goal Roll C194",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "G",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "arrow_up",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "arrow_right",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "R",
73
+ "rotation": 180
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "G",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "arrow_up",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "arrow_right",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "R",
100
+ "rotation": 180
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "G",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C194/initial_net.png",
117
+ "targetTopFaceImage": "../images/C194/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 194,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-194.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "N",
132
+ "E"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "arrow_right",
137
+ "rotation": 270,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "arrow_up",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "G",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "R",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "W",
163
+ "N",
164
+ "N",
165
+ "E"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "G",
179
+ "rotation": 90
180
+ },
181
+ "BACK": {
182
+ "patternId": "arrow_up",
183
+ "rotation": 180
184
+ },
185
+ "LEFT": {
186
+ "patternId": "arrow_right",
187
+ "rotation": 90
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "R",
191
+ "rotation": 180
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C194\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=G, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_up, rotation=180]\n[LEFT: patternId=arrow_right, rotation=90] [TOP: patternId=?, rotation=0] [RIGHT: patternId=G, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=R, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_up, rotation=180\n- LEFT: patternId=arrow_right, rotation=90\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=G, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=R, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C195.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C195",
4
+ "name": "Goal Roll C195",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "W",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "plus",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "G",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "W",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "plus",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "G",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "G",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C195/initial_net.png",
117
+ "targetTopFaceImage": "../images/C195/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 195,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-195.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "N",
131
+ "E",
132
+ "S"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "G",
137
+ "rotation": 270,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "W",
143
+ "rotation": 0,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "plus",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "G",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "N",
163
+ "N",
164
+ "E",
165
+ "S"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "W",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "plus",
179
+ "rotation": 270
180
+ },
181
+ "BACK": {
182
+ "patternId": "G",
183
+ "rotation": 270
184
+ },
185
+ "LEFT": {
186
+ "patternId": "?",
187
+ "rotation": 0
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C195\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=G, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=G, rotation=270]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=W, rotation=0] [RIGHT: patternId=plus, rotation=270]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=G, rotation=270\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=W, rotation=0\n- RIGHT: patternId=plus, rotation=270\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C196.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C196",
4
+ "name": "Goal Roll C196",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "D",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "Q",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "X",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "D",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "Q",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "X",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "D",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C196/initial_net.png",
117
+ "targetTopFaceImage": "../images/C196/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 196,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-196.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "S",
132
+ "S"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "X",
137
+ "rotation": 0,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "Q",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "X",
149
+ "rotation": 0,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "D",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "W",
163
+ "N",
164
+ "S",
165
+ "S"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "D",
175
+ "rotation": 90
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "?",
179
+ "rotation": 0
180
+ },
181
+ "BACK": {
182
+ "patternId": "Q",
183
+ "rotation": 90
184
+ },
185
+ "LEFT": {
186
+ "patternId": "X",
187
+ "rotation": 180
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C196\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=D, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Q, rotation=90]\n[LEFT: patternId=X, rotation=180] [TOP: patternId=?, rotation=0] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=D, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Q, rotation=90\n- LEFT: patternId=X, rotation=180\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=D, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C197.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C197",
4
+ "name": "Goal Roll C197",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "T",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "7",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "5",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "3",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "T",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "7",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "5",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "3",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "7",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C197/initial_net.png",
117
+ "targetTopFaceImage": "../images/C197/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 197,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-197.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "E",
131
+ "N",
132
+ "N"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "5",
137
+ "rotation": 270,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "7",
143
+ "rotation": 0,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "T",
149
+ "rotation": 0,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "3",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "N",
163
+ "E",
164
+ "N",
165
+ "N"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "T",
171
+ "rotation": 90
172
+ },
173
+ "FRONT": {
174
+ "patternId": "?",
175
+ "rotation": 0
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "7",
179
+ "rotation": 90
180
+ },
181
+ "BACK": {
182
+ "patternId": "5",
183
+ "rotation": 270
184
+ },
185
+ "LEFT": {
186
+ "patternId": "3",
187
+ "rotation": 90
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "?",
191
+ "rotation": 0
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C197\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=7, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=5, rotation=270]\n[LEFT: patternId=3, rotation=90] [TOP: patternId=T, rotation=90] [RIGHT: patternId=7, rotation=90]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=5, rotation=270\n- LEFT: patternId=3, rotation=90\n- TOP: patternId=T, rotation=90\n- RIGHT: patternId=7, rotation=90\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }
cube2/data/C198.json ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C198",
4
+ "name": "Goal Roll C198",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "square",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_right",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "F",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "Z",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "square",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_right",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "F",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "Z",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "arrow_right",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C198/initial_net.png",
117
+ "targetTopFaceImage": "../images/C198/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 198,
125
+ "moveCount": 5,
126
+ "sourceLevelPath": "levels/reconstruct/generated-198.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N",
131
+ "S",
132
+ "E",
133
+ "S"
134
+ ],
135
+ "observedPathFaces": [
136
+ {
137
+ "patternId": "F",
138
+ "rotation": 270,
139
+ "flipHorizontal": false,
140
+ "flipVertical": true
141
+ },
142
+ {
143
+ "patternId": "Z",
144
+ "rotation": 180,
145
+ "flipHorizontal": false,
146
+ "flipVertical": true
147
+ },
148
+ {
149
+ "patternId": "F",
150
+ "rotation": 270,
151
+ "flipHorizontal": false,
152
+ "flipVertical": true
153
+ },
154
+ {
155
+ "patternId": "square",
156
+ "rotation": 90,
157
+ "flipHorizontal": false,
158
+ "flipVertical": true
159
+ },
160
+ {
161
+ "patternId": "arrow_right",
162
+ "rotation": 0,
163
+ "flipHorizontal": false,
164
+ "flipVertical": true
165
+ }
166
+ ],
167
+ "answer": {
168
+ "directions": [
169
+ "E",
170
+ "N",
171
+ "S",
172
+ "E",
173
+ "S"
174
+ ]
175
+ },
176
+ "legacy_answer": {
177
+ "TOP": {
178
+ "patternId": "square",
179
+ "rotation": 270
180
+ },
181
+ "FRONT": {
182
+ "patternId": "arrow_right",
183
+ "rotation": 180
184
+ },
185
+ "RIGHT": {
186
+ "patternId": "F",
187
+ "rotation": 90
188
+ },
189
+ "BACK": {
190
+ "patternId": "Z",
191
+ "rotation": 270
192
+ },
193
+ "LEFT": {
194
+ "patternId": "?",
195
+ "rotation": 0
196
+ },
197
+ "BOTTOM": {
198
+ "patternId": "?",
199
+ "rotation": 0
200
+ }
201
+ },
202
+ "prompt": {
203
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
204
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C198\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=arrow_right, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Z, rotation=270]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=square, rotation=270] [RIGHT: patternId=F, rotation=90]\n [FRONT: patternId=arrow_right, rotation=180]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Z, rotation=270\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=square, rotation=270\n- RIGHT: patternId=F, rotation=90\n- FRONT: patternId=arrow_right, rotation=180\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
205
+ }
206
+ }
cube2/data/C199.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C199",
4
+ "name": "Goal Roll C199",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "circle",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "heart",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "B",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "M",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "circle",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "heart",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "B",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "M",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "circle",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C199/initial_net.png",
117
+ "targetTopFaceImage": "../images/C199/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 2,
121
+ "tier": 2,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 199,
125
+ "moveCount": 4,
126
+ "sourceLevelPath": "levels/reconstruct/generated-199.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "W",
132
+ "W"
133
+ ],
134
+ "observedPathFaces": [
135
+ {
136
+ "patternId": "heart",
137
+ "rotation": 90,
138
+ "flipHorizontal": false,
139
+ "flipVertical": true
140
+ },
141
+ {
142
+ "patternId": "circle",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "M",
149
+ "rotation": 0,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "B",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ }
159
+ ],
160
+ "answer": {
161
+ "directions": [
162
+ "E",
163
+ "S",
164
+ "W",
165
+ "W"
166
+ ]
167
+ },
168
+ "legacy_answer": {
169
+ "TOP": {
170
+ "patternId": "?",
171
+ "rotation": 0
172
+ },
173
+ "FRONT": {
174
+ "patternId": "circle",
175
+ "rotation": 180
176
+ },
177
+ "RIGHT": {
178
+ "patternId": "heart",
179
+ "rotation": 270
180
+ },
181
+ "BACK": {
182
+ "patternId": "B",
183
+ "rotation": 0
184
+ },
185
+ "LEFT": {
186
+ "patternId": "?",
187
+ "rotation": 0
188
+ },
189
+ "BOTTOM": {
190
+ "patternId": "M",
191
+ "rotation": 270
192
+ }
193
+ },
194
+ "prompt": {
195
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
196
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C199\n- task_type: roll_to_target_top_face\n- difficulty: 2\n- target_top_face: patternId=circle, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=B, rotation=0]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=?, rotation=0] [RIGHT: patternId=heart, rotation=270]\n [FRONT: patternId=circle, rotation=180]\n [BOTTOM: patternId=M, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=B, rotation=0\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=heart, rotation=270\n- FRONT: patternId=circle, rotation=180\n- BOTTOM: patternId=M, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
197
+ }
198
+ }