Update app.py
Browse files
app.py
CHANGED
|
@@ -1234,6 +1234,8 @@ If you find any "Code-Blocks" then,
|
|
| 1234 |
(([ballSpeed v]) * (1.1))
|
| 1235 |
```
|
| 1236 |
- **Every hat block script must end** with a final `end` on its own line.
|
|
|
|
|
|
|
| 1237 |
|
| 1238 |
3. **Pseudo‑code formatting**:
|
| 1239 |
- Represent each block or nested block on its own line.
|
|
@@ -1243,7 +1245,7 @@ If you find any "Code-Blocks" then,
|
|
| 1243 |
- a natural language breakdown of each step taken after the event, formatted as a multi-line string representing pseudo-code. Ensure clarity and granularity—each described action should map closely to a Scratch block or tight sequence.
|
| 1244 |
- **The pseudocode must be returned as a single string separated by `\n` (not as a list of strings).**
|
| 1245 |
- **Never use string concatenation (`+`) or arrays—only one continuous string.**
|
| 1246 |
-
-
|
| 1247 |
|
| 1248 |
4. **Logic content**:
|
| 1249 |
- Build clear flow for mechanics (movement, jumping, flying, scoring, collisions).
|
|
|
|
| 1234 |
(([ballSpeed v]) * (1.1))
|
| 1235 |
```
|
| 1236 |
- **Every hat block script must end** with a final `end` on its own line.
|
| 1237 |
+
- **[critical important]:Every nested control structure (forever, repeat, if, if-else, etc.) must also have its own `end` placed at the correct depth, ensuring proper closure of each block. The placement of `end` is critical for differentiating script meaning (e.g., Case 1 vs Case 2 nesting).**
|
| 1238 |
+
|
| 1239 |
|
| 1240 |
3. **Pseudo‑code formatting**:
|
| 1241 |
- Represent each block or nested block on its own line.
|
|
|
|
| 1245 |
- a natural language breakdown of each step taken after the event, formatted as a multi-line string representing pseudo-code. Ensure clarity and granularity—each described action should map closely to a Scratch block or tight sequence.
|
| 1246 |
- **The pseudocode must be returned as a single string separated by `\n` (not as a list of strings).**
|
| 1247 |
- **Never use string concatenation (`+`) or arrays—only one continuous string.**
|
| 1248 |
+
- **Every nested control structure (forever, repeat, if, if-else, etc.) must also have its own `end` placed at the correct depth, ensuring proper closure of each block. The placement of `end` is critical for differentiating script meaning (e.g., Case 1 vs Case 2 nesting).**
|
| 1249 |
|
| 1250 |
4. **Logic content**:
|
| 1251 |
- Build clear flow for mechanics (movement, jumping, flying, scoring, collisions).
|