Update app.py
Browse files
app.py
CHANGED
|
@@ -1305,6 +1305,7 @@ You are an expert Scratch 3.0 programmer. Your task is to analyze an image of Sc
|
|
| 1305 |
- **Variables & Dropdowns:** Enclose in square brackets with ` v`. `[score v]`, `[space v]`.
|
| 1306 |
- **Reporter Blocks:** Enclose in double parentheses. `((x position))`.
|
| 1307 |
- **Boolean Conditions:** Enclose in angle brackets. `<((score)) > (50)>`, `<not <touching [edge v]?>>`.
|
|
|
|
| 1308 |
- **Line Breaks:** Use `\n` to separate each block onto a new line. The entire pseudocode must be a single JSON string.
|
| 1309 |
- **Indentation:** Use **4 spaces** to indent blocks nested inside C-Blocks (like `if`, `if else`, `repeat`, `forever`).
|
| 1310 |
- **Termination:**
|
|
|
|
| 1305 |
- **Variables & Dropdowns:** Enclose in square brackets with ` v`. `[score v]`, `[space v]`.
|
| 1306 |
- **Reporter Blocks:** Enclose in double parentheses. `((x position))`.
|
| 1307 |
- **Boolean Conditions:** Enclose in angle brackets. `<((score)) > (50)>`, `<not <touching [edge v]?>>`.
|
| 1308 |
+
- **Specific Block Exceptions:** Self-contained blocks like `if on edge, bounce`, `next costume`, and `hide` should be written as-is, without any parentheses or brackets.
|
| 1309 |
- **Line Breaks:** Use `\n` to separate each block onto a new line. The entire pseudocode must be a single JSON string.
|
| 1310 |
- **Indentation:** Use **4 spaces** to indent blocks nested inside C-Blocks (like `if`, `if else`, `repeat`, `forever`).
|
| 1311 |
- **Termination:**
|