diff --git a/content/adventures/ar.yaml b/content/adventures/ar.yaml
index 7f821ea1069..5f33cbb1b7f 100644
--- a/content/adventures/ar.yaml
+++ b/content/adventures/ar.yaml
@@ -2573,14 +2573,14 @@ adventures:
في المستوى التالي ستتعلم كيفية تشغيل بعض الأغاني الموجودة.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -4973,8 +4973,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -4989,6 +4990,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5022,6 +5025,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5038,6 +5042,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/bg.yaml b/content/adventures/bg.yaml
index 631ecd76861..2679bfb3bba 100644
--- a/content/adventures/bg.yaml
+++ b/content/adventures/bg.yaml
@@ -2726,14 +2726,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5116,8 +5116,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5132,6 +5133,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5165,6 +5168,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5181,6 +5185,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/bn.yaml b/content/adventures/bn.yaml
index dd31c351e95..8b28b280623 100644
--- a/content/adventures/bn.yaml
+++ b/content/adventures/bn.yaml
@@ -2652,14 +2652,14 @@ adventures:
In the next level you'll learn how to play some existing songs।
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5048,8 +5048,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5064,6 +5065,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5097,6 +5100,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5113,6 +5117,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ca.yaml b/content/adventures/ca.yaml
index 3da27651e9a..d94eaaac4f5 100644
--- a/content/adventures/ca.yaml
+++ b/content/adventures/ca.yaml
@@ -2733,14 +2733,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5172,8 +5172,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5188,6 +5189,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5221,6 +5224,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5237,6 +5241,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/cs.yaml b/content/adventures/cs.yaml
index 723117ea067..9f96a35fb91 100644
--- a/content/adventures/cs.yaml
+++ b/content/adventures/cs.yaml
@@ -2724,14 +2724,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5148,8 +5148,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5164,6 +5165,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5197,6 +5200,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5213,6 +5217,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/cy.yaml b/content/adventures/cy.yaml
index 78453438885..024a501ccc5 100644
--- a/content/adventures/cy.yaml
+++ b/content/adventures/cy.yaml
@@ -2716,14 +2716,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5126,8 +5126,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5142,6 +5143,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5175,6 +5178,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5191,6 +5195,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/da.yaml b/content/adventures/da.yaml
index 2822d13e828..ffab6f08a73 100644
--- a/content/adventures/da.yaml
+++ b/content/adventures/da.yaml
@@ -2713,14 +2713,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5124,8 +5124,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5140,6 +5141,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5173,6 +5176,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5189,6 +5193,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/de.yaml b/content/adventures/de.yaml
index 9fa6e2a9fa5..7c25728b297 100644
--- a/content/adventures/de.yaml
+++ b/content/adventures/de.yaml
@@ -2768,14 +2768,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5142,8 +5142,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5158,6 +5159,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5191,6 +5194,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5207,6 +5211,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/el.yaml b/content/adventures/el.yaml
index c702f9315e1..14d24386b25 100644
--- a/content/adventures/el.yaml
+++ b/content/adventures/el.yaml
@@ -2603,14 +2603,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -4972,8 +4972,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -4988,6 +4989,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5021,6 +5024,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5037,6 +5041,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/en.yaml b/content/adventures/en.yaml
index 652d1f37a89..9c6fdcce2b3 100644
--- a/content/adventures/en.yaml
+++ b/content/adventures/en.yaml
@@ -5149,8 +5149,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5165,6 +5166,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5200,6 +5203,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5216,6 +5220,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/eo.yaml b/content/adventures/eo.yaml
index b3d68062887..097c751fedb 100644
--- a/content/adventures/eo.yaml
+++ b/content/adventures/eo.yaml
@@ -2682,14 +2682,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5062,8 +5062,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5078,6 +5079,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5111,6 +5114,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5127,6 +5131,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/es.yaml b/content/adventures/es.yaml
index 8d25009c5ce..76a693497c9 100644
--- a/content/adventures/es.yaml
+++ b/content/adventures/es.yaml
@@ -2731,14 +2731,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5120,8 +5120,9 @@ adventures:
¡Vuelve a crear los dibujos con la tortuga!
- Colmena (6)
- Abanico (5)
+ Colmena (6)
+ Abanico (5)
+ Copo de nieve (13)
example_code: |
Sugerencia Colmena:
@@ -5136,6 +5137,8 @@ adventures:
Sugerencia Ventilador:
Empieza como el ventilador que hiciste en el nivel 7. O toma una parte de la sugerencia para la colmena, porque los códigos son muy parecidos.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Ejercicio
@@ -5174,6 +5177,7 @@ adventures:
Calle en diferentes tamaños
Calle coloreada
+ Snow Storm
example_code: |
La Calle de la Pista en diferentes tamaños
```
@@ -5190,6 +5194,23 @@ adventures:
{define} dibuja_una_casa {with} color_elegido
_
```
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
+
14:
story_text: |
### Ejercicio
diff --git a/content/adventures/et.yaml b/content/adventures/et.yaml
index a7f5ebfdd4e..9c3d42855ba 100644
--- a/content/adventures/et.yaml
+++ b/content/adventures/et.yaml
@@ -2696,14 +2696,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5082,8 +5082,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5098,6 +5099,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5131,6 +5134,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5147,6 +5151,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/fa.yaml b/content/adventures/fa.yaml
index 1b8b3682e71..38034de3688 100644
--- a/content/adventures/fa.yaml
+++ b/content/adventures/fa.yaml
@@ -2691,14 +2691,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5085,8 +5085,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5101,6 +5102,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5134,6 +5137,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5150,6 +5154,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/fi.yaml b/content/adventures/fi.yaml
index 9287fa4269a..ea6283b318c 100644
--- a/content/adventures/fi.yaml
+++ b/content/adventures/fi.yaml
@@ -2714,14 +2714,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5153,8 +5153,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5169,6 +5170,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5202,6 +5205,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5218,6 +5222,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/fr.yaml b/content/adventures/fr.yaml
index 5d736390093..1c33c8bf618 100644
--- a/content/adventures/fr.yaml
+++ b/content/adventures/fr.yaml
@@ -5229,8 +5229,9 @@ adventures:
Refait les dessins avec la tortue !
- Ruche (6)
- Ventilateur (5)
+ Ruche (6)
+ Ventilateur (5)
+ Flocon de neige (13)
example_code: |
Aide pour la ruche :
@@ -5245,6 +5246,8 @@ adventures:
Aide pour le ventilateur :
Commence comme pour le ventilateur que tu as fait au niveau 7. Ou inspire-toi de l'aide pour la ruche, le code est très similaire.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercice
@@ -5278,6 +5281,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5294,6 +5298,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/fy.yaml b/content/adventures/fy.yaml
index b896b32b643..690f079f43f 100644
--- a/content/adventures/fy.yaml
+++ b/content/adventures/fy.yaml
@@ -2772,14 +2772,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5202,8 +5202,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5218,6 +5219,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5251,6 +5254,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5267,6 +5271,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/he.yaml b/content/adventures/he.yaml
index 91d651c2951..96ea2d39f83 100644
--- a/content/adventures/he.yaml
+++ b/content/adventures/he.yaml
@@ -2680,14 +2680,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5079,8 +5079,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5095,6 +5096,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5128,6 +5131,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5144,6 +5148,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/hi.yaml b/content/adventures/hi.yaml
index b0dbd0f07f2..8e46f88da1a 100644
--- a/content/adventures/hi.yaml
+++ b/content/adventures/hi.yaml
@@ -2725,14 +2725,14 @@ adventures:
In the next level you'll learn how to play some existing songs।
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5129,8 +5129,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5145,6 +5146,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5178,6 +5181,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5194,6 +5198,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/hu.yaml b/content/adventures/hu.yaml
index ade8a628f84..00d7a8b3137 100644
--- a/content/adventures/hu.yaml
+++ b/content/adventures/hu.yaml
@@ -2727,14 +2727,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5149,8 +5149,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5165,6 +5166,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5198,6 +5201,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5214,6 +5218,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ia.yaml b/content/adventures/ia.yaml
index 8a49bc71b03..3aee29eaa08 100644
--- a/content/adventures/ia.yaml
+++ b/content/adventures/ia.yaml
@@ -2747,14 +2747,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5143,8 +5143,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5159,6 +5160,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5192,6 +5195,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5208,6 +5212,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/id.yaml b/content/adventures/id.yaml
index e71f4e15f8b..9e6df80329d 100644
--- a/content/adventures/id.yaml
+++ b/content/adventures/id.yaml
@@ -2695,14 +2695,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5071,8 +5071,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5087,6 +5088,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5120,6 +5123,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5136,6 +5140,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/it.yaml b/content/adventures/it.yaml
index 91bbecf0479..ac1fe8ec489 100644
--- a/content/adventures/it.yaml
+++ b/content/adventures/it.yaml
@@ -2768,14 +2768,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5130,8 +5130,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5146,6 +5147,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5179,6 +5182,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5195,6 +5199,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ja.yaml b/content/adventures/ja.yaml
index 4f782abc29f..c116f6d6850 100644
--- a/content/adventures/ja.yaml
+++ b/content/adventures/ja.yaml
@@ -2679,14 +2679,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5079,8 +5079,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5095,6 +5096,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5128,6 +5131,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5144,6 +5148,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/kmr.yaml b/content/adventures/kmr.yaml
index 83fdd0ceeab..e792aae4fd3 100644
--- a/content/adventures/kmr.yaml
+++ b/content/adventures/kmr.yaml
@@ -2708,14 +2708,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5110,8 +5110,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5126,6 +5127,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5159,6 +5162,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5175,6 +5179,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ko.yaml b/content/adventures/ko.yaml
index 0405fbdd02d..f1c1550af02 100644
--- a/content/adventures/ko.yaml
+++ b/content/adventures/ko.yaml
@@ -2756,14 +2756,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5147,8 +5147,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5163,6 +5164,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5196,6 +5199,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5212,6 +5216,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/mi.yaml b/content/adventures/mi.yaml
index ab9f6c02f03..9f63c3dda9c 100644
--- a/content/adventures/mi.yaml
+++ b/content/adventures/mi.yaml
@@ -2770,14 +2770,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5167,8 +5167,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5183,6 +5184,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5216,6 +5219,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5232,6 +5236,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/nb_NO.yaml b/content/adventures/nb_NO.yaml
index a458d002fc1..decd2a876aa 100644
--- a/content/adventures/nb_NO.yaml
+++ b/content/adventures/nb_NO.yaml
@@ -2679,14 +2679,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5072,8 +5072,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5088,6 +5089,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5121,6 +5124,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5137,6 +5141,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/nl.yaml b/content/adventures/nl.yaml
index d250273ccae..71cf37314dd 100644
--- a/content/adventures/nl.yaml
+++ b/content/adventures/nl.yaml
@@ -2711,14 +2711,14 @@ adventures:
In het volgende level leer je enkele bestaande nummer spelen.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5096,8 +5096,9 @@ adventures:
Maak de figuren na met de schildpad!
- Honingraat (6)
- Waaier (5)
+ Honingraat (6)
+ Waaier (5)
+ Sneeuwvlok (13)
example_code: |
Hint voor de honingraat:
@@ -5112,6 +5113,8 @@ adventures:
Hint voor de waaier:
Start zoals je deed voor de waaier in level 7. Of kijk naar de hint voor de honingraat, want de code lijkt er erg op.
+
+ Hint voor de sneeuwvlok: Maak eerst een pootje van de sneeuwvlok en herhaal dat 6 keer.
12:
story_text: |
### Opdracht
@@ -5149,6 +5152,7 @@ adventures:
Straat met huizen van verschillende groottes
Gekleurde straat
+ Sneeuwstorm
example_code: |
Hint voor de straat met huizen van verschillende groottes
```
@@ -5165,6 +5169,23 @@ adventures:
{define} teken_een_huis {with} gekozen_kleur
_
```
+
+ Hint Snow Storm
+ ```
+ {define} teken_sneeuwvlok {with} lengte, kleur
+ _
+
+ getallen = 10, 20, 30
+ kleuren = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_getal = _
+ random_kleur = _
+ {call} teken_sneeuwvlok {with} random_getal, random_kleur
+ {color} wit
+ {turn} random_getal * 5
+ {forward} 80
+ ```
14:
story_text: |
### Opdracht
diff --git a/content/adventures/pa_PK.yaml b/content/adventures/pa_PK.yaml
index c53d9cec7a3..523dc3abf90 100644
--- a/content/adventures/pa_PK.yaml
+++ b/content/adventures/pa_PK.yaml
@@ -2684,14 +2684,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5083,8 +5083,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5099,6 +5100,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5132,6 +5135,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5148,6 +5152,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/pap.yaml b/content/adventures/pap.yaml
index d1a37535cbb..88f36907cad 100644
--- a/content/adventures/pap.yaml
+++ b/content/adventures/pap.yaml
@@ -2745,14 +2745,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5128,8 +5128,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5144,6 +5145,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5177,6 +5180,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5193,6 +5197,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/pl.yaml b/content/adventures/pl.yaml
index 5464b35c41b..4e441bd179a 100644
--- a/content/adventures/pl.yaml
+++ b/content/adventures/pl.yaml
@@ -2643,14 +2643,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -4927,8 +4927,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -4943,6 +4944,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -4976,6 +4979,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -4992,6 +4996,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Ćwiczenie
diff --git a/content/adventures/pt_BR.yaml b/content/adventures/pt_BR.yaml
index fcdb3499132..e1039b414e2 100644
--- a/content/adventures/pt_BR.yaml
+++ b/content/adventures/pt_BR.yaml
@@ -5047,8 +5047,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5063,6 +5064,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5096,6 +5099,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5112,6 +5116,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/pt_PT.yaml b/content/adventures/pt_PT.yaml
index a73f078508b..eed87bd074e 100644
--- a/content/adventures/pt_PT.yaml
+++ b/content/adventures/pt_PT.yaml
@@ -2608,14 +2608,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5007,8 +5007,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5023,6 +5024,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5056,6 +5059,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5072,6 +5076,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ro.yaml b/content/adventures/ro.yaml
index ea77e89756c..8f5d4fcd339 100644
--- a/content/adventures/ro.yaml
+++ b/content/adventures/ro.yaml
@@ -2708,14 +2708,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5115,8 +5115,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5131,6 +5132,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5164,6 +5167,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5180,6 +5184,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ru.yaml b/content/adventures/ru.yaml
index d03c9b0b9a1..659b52df368 100644
--- a/content/adventures/ru.yaml
+++ b/content/adventures/ru.yaml
@@ -2668,14 +2668,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5097,8 +5097,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5113,6 +5114,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5146,6 +5149,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5162,6 +5166,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/sl.yaml b/content/adventures/sl.yaml
index 0c5b2bf198d..f8aa7389d2d 100644
--- a/content/adventures/sl.yaml
+++ b/content/adventures/sl.yaml
@@ -1417,14 +1417,74 @@ adventures:
story_text_2: "Christmas lights \n"
example_code_2: "Hint Christmas Lights:\n\nStart by moving to the left side of the screen with an invisible white line. Then hang up the Christmas lights!\n```\n{color} white\n{turn} -90\n{forward} 300\n{turn} 90\n\ncolors = red, blue, yellow, purple, green, orange, pink\n{for} chosen_color {in} colors\n_\n```\n"
11:
- story_text: "### Exercise\nRecreate the drawings with the turtle!\n\n\nBeehive (6)
\nFan (5)
\n
\n"
- example_code: "Hint Beehive:\n```\n{for} amount_of_combs {in} {range} 1 {to} _\n {for} walls_of_one_comb {in} {range} 1 {to} _\n {forward} _\n {turn} _\n {forward} _\n {turn} _\n```\n\nHint Fan:\nStart out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.\n"
+ story_text: |
+ ### Exercise
+ Recreate the drawings with the turtle!
+
+
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
+
+ example_code: |
+ Hint Beehive:
+ ```
+ {for} amount_of_combs {in} {range} 1 {to} _
+ {for} walls_of_one_comb {in} {range} 1 {to} _
+ {forward} _
+ {turn} _
+ {forward} _
+ {turn} _
+ ```
+
+ Hint Fan:
+ Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: "### Exercise\nRecreate the drawings with the turtle!\nHint: Bracelet designing program. Firstly, define a function **for each shape** you want to use on the bacelet. Then, add the shapes to the bacelet like this:\n\nBracelet Designing program \n"
example_code: "```\n{define} draw_a_square\n_\n\n{color} white\n{turn} -90\n{forward} 300\n{turn} 180\n\n{for} i {in} {range} 1 {to} 5\n {color} gray\n {forward} 100\n shape = {ask} 'What kind of shape would you like next on the bracelet?'\n chosen_color = {ask} 'In which color?'\n {color} chosen_color\n {if} shape = 'square'\n {call} draw_a_square\n```\n"
13:
- story_text: "### Exercise\nRecreate the drawings with the turtle!\n\nStreet in different sizes \nColored street \n"
- example_code: "Hint Street in different sizes\n```\n{define} draw_a_house {with} size\n_\n\n{call} draw_a_house {with} 90\n{call} draw_a_house {with} 60\n{call} draw_a_house {with} 30\n```\n\nHint Colored street\n```\n{define} draw_a_house {with} chosen_color\n_\n```\n"
+ story_text: |
+ ### Exercise
+ Recreate the drawings with the turtle!
+
+ Street in different sizes
+ Colored street
+ Snow Storm
+ example_code: |
+ Hint Street in different sizes
+ ```
+ {define} draw_a_house {with} size
+ _
+
+ {call} draw_a_house {with} 90
+ {call} draw_a_house {with} 60
+ {call} draw_a_house {with} 30
+ ```
+
+ Hint Colored street
+ ```
+ {define} draw_a_house {with} chosen_color
+ _
+ ```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: "### Exercise\nCreate a program that asks the player how many corners their figure should have and then creates that figure.\nThe figure in the image is the output when the player fills in 10.\n\n\n
\n
\n
\n"
example_code: "```\n{define} calculate_degrees {with} amount_of_corners\n _ 360 / amount_of_corners\n\n\n{define} draw_figure {with} degrees\n _\n {forward} 400/amount_of_corners\n {turn} _\n\namount_of_corners = {ask} _\ndegrees = {call} _ {with} _\n\n{call} _ {with}\n{call} _ {with}\n```\n"
diff --git a/content/adventures/sq.yaml b/content/adventures/sq.yaml
index 7d07900973b..594d890d94f 100644
--- a/content/adventures/sq.yaml
+++ b/content/adventures/sq.yaml
@@ -2698,14 +2698,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5111,8 +5111,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5127,6 +5128,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5160,6 +5163,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5176,6 +5180,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/sr.yaml b/content/adventures/sr.yaml
index 82609719daf..a93267c6097 100644
--- a/content/adventures/sr.yaml
+++ b/content/adventures/sr.yaml
@@ -2675,14 +2675,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5077,8 +5077,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5093,6 +5094,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5126,6 +5129,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5142,6 +5146,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/sv.yaml b/content/adventures/sv.yaml
index e5c7395c1ad..39db7afc8ef 100644
--- a/content/adventures/sv.yaml
+++ b/content/adventures/sv.yaml
@@ -2768,14 +2768,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5166,8 +5166,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5182,6 +5183,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5215,6 +5218,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5231,6 +5235,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/sw.yaml b/content/adventures/sw.yaml
index 0946ea8597b..4790f8a40f1 100644
--- a/content/adventures/sw.yaml
+++ b/content/adventures/sw.yaml
@@ -2750,14 +2750,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5181,8 +5181,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5197,6 +5198,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5230,6 +5233,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5246,6 +5250,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/te.yaml b/content/adventures/te.yaml
index 86ef9509754..35af4766765 100644
--- a/content/adventures/te.yaml
+++ b/content/adventures/te.yaml
@@ -2713,14 +2713,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5152,8 +5152,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5168,6 +5169,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5201,6 +5204,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5217,6 +5221,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/th.yaml b/content/adventures/th.yaml
index 700a705995b..f69a40cc449 100644
--- a/content/adventures/th.yaml
+++ b/content/adventures/th.yaml
@@ -2686,14 +2686,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5085,8 +5085,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5101,6 +5102,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5134,6 +5137,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5150,6 +5154,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/tl.yaml b/content/adventures/tl.yaml
index 67e64d186ca..7a4a3cb54da 100644
--- a/content/adventures/tl.yaml
+++ b/content/adventures/tl.yaml
@@ -2715,14 +2715,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5154,8 +5154,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5170,6 +5171,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5203,6 +5206,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5219,6 +5223,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/tn.yaml b/content/adventures/tn.yaml
index 76c344cd9b7..38132c3a0fc 100644
--- a/content/adventures/tn.yaml
+++ b/content/adventures/tn.yaml
@@ -2695,14 +2695,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5099,8 +5099,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5115,6 +5116,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5148,6 +5151,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5164,6 +5168,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/tr.yaml b/content/adventures/tr.yaml
index 1c0a3ffc4c4..314f8abb03e 100644
--- a/content/adventures/tr.yaml
+++ b/content/adventures/tr.yaml
@@ -2792,14 +2792,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5209,8 +5209,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5225,6 +5226,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5258,6 +5261,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5274,6 +5278,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/uk.yaml b/content/adventures/uk.yaml
index 6ea4934bf12..d79d62702ca 100644
--- a/content/adventures/uk.yaml
+++ b/content/adventures/uk.yaml
@@ -2687,14 +2687,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5088,8 +5088,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5104,6 +5105,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5137,6 +5140,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5153,6 +5157,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/ur.yaml b/content/adventures/ur.yaml
index 63854f199d0..0be16d5268d 100644
--- a/content/adventures/ur.yaml
+++ b/content/adventures/ur.yaml
@@ -2692,14 +2692,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5091,8 +5091,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5107,6 +5108,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5140,6 +5143,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5156,6 +5160,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/vi.yaml b/content/adventures/vi.yaml
index a2529d8ac85..0ad36d5f770 100644
--- a/content/adventures/vi.yaml
+++ b/content/adventures/vi.yaml
@@ -2736,14 +2736,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5175,8 +5175,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5191,6 +5192,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5224,6 +5227,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5240,6 +5244,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/adventures/zh_Hans.yaml b/content/adventures/zh_Hans.yaml
index 4164582c74f..da1d7044127 100644
--- a/content/adventures/zh_Hans.yaml
+++ b/content/adventures/zh_Hans.yaml
@@ -1923,10 +1923,12 @@ adventures:
### 练习
这首歌的下一节是:
+ ```not_hedy_code
昨晚我躺在枕头上的时候
昨晚我躺在床上的时候
昨晚我躺在枕头上的时候
我梦见我的邦妮死去了
+ ```
你能用和示例同样的方法编写这段诗句吗?
example_code: |
@@ -5040,8 +5042,9 @@ adventures:
用小海龟重画图画!
- 蜂巢 (6)
- 扇形 (5)
+ 蜂巢 (6)
+ 扇形 (5)
+ Snowflake (13)
example_code: |
蜂巢的提示:
@@ -5056,14 +5059,18 @@ adventures:
扇形的提示:
仿照你在第7关制作的扇形开始。或者看一下蜂巢的提示,因为代码非常相似。
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### 练习
- 用乌龟重新绘制图纸!
- 提示:手镯设计程序。首先,为手镯上要使用的每个形状定义一个函数。然后,将形状添加到手镯中,如下所示:
-
- 手镯设计程序
+ 用乌龟重新绘制图画!
+
+ 首先,为您想要在手环上使用的每种形状**定义一个函数。 然后,将形状添加到手镯中,如下所示:
+
+ 手链设计程序
example_code: |
+ 提示手链设计程序
```
{define} draw_a_square
_
@@ -5089,6 +5096,7 @@ adventures:
不同大小的街道
彩色的街道
+ Snow Storm
example_code: |
不同大小的街道的提示
```
@@ -5105,6 +5113,24 @@ adventures:
{define} 画一栋房子 {with} 选定的颜色
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
+
14:
story_text: |
### 练习
diff --git a/content/adventures/zh_Hant.yaml b/content/adventures/zh_Hant.yaml
index 6e268a215c0..c83a5346c8a 100644
--- a/content/adventures/zh_Hant.yaml
+++ b/content/adventures/zh_Hant.yaml
@@ -2715,14 +2715,14 @@ adventures:
In the next level you'll learn how to play some existing songs.
example_code: |-
```
- play C4
- play D4
- play E4
- play F4
- play G4
- play A4
- play B4
- play C5
+ {play} C4
+ {play} D4
+ {play} E4
+ {play} F4
+ {play} G4
+ {play} A4
+ {play} B4
+ {play} C5
```
2:
story_text: |
@@ -5154,8 +5154,9 @@ adventures:
Recreate the drawings with the turtle!
- Beehive (6)
- Fan (5)
+ Beehive (6)
+ Fan (5)
+ Snowflake (13)
example_code: |
Hint Beehive:
@@ -5170,6 +5171,8 @@ adventures:
Hint Fan:
Start out like the fan you made in level 7. Or take a peak at the hint for the beehive, because the codes are very similar.
+
+ Hint Snowflake: Start by making one 'leg' and repeat it 6 times.
12:
story_text: |
### Exercise
@@ -5203,6 +5206,7 @@ adventures:
Street in different sizes
Colored street
+ Snow Storm
example_code: |
Hint Street in different sizes
```
@@ -5219,6 +5223,23 @@ adventures:
{define} draw_a_house {with} chosen_color
_
```
+
+ Hint Snow Storm
+ ```
+ {define} draw_snowflake {with} length, color
+ _
+
+ numbers = 10, 20, 30
+ colors = _
+
+ {for} i {in} {range} 1 {to} 5
+ random_number = _
+ random_color = _
+ {call} draw_snowflake {with} random_number, random_color
+ {color} white
+ {turn} random_number * 5
+ {forward} 80
+ ```
14:
story_text: |
### Exercise
diff --git a/content/slides/ar.yaml b/content/slides/ar.yaml
index 5aa223eca50..914e23fdd66 100644
--- a/content/slides/ar.yaml
+++ b/content/slides/ar.yaml
@@ -1043,6 +1043,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1062,6 +1088,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 16!
17:
@@ -1093,6 +1152,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/bg.yaml b/content/slides/bg.yaml
index c24831668ed..a4df437908e 100644
--- a/content/slides/bg.yaml
+++ b/content/slides/bg.yaml
@@ -123,7 +123,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -192,7 +192,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -257,7 +257,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -272,7 +272,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -310,7 +310,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -335,7 +335,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -358,7 +358,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -404,7 +404,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -469,7 +469,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -492,7 +492,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -514,7 +514,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -529,7 +529,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -558,7 +558,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -601,7 +601,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -693,7 +693,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -730,7 +730,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -767,7 +767,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -832,7 +832,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -942,7 +942,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1024,7 +1024,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,6 +1153,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/bn.yaml b/content/slides/bn.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/bn.yaml
+++ b/content/slides/bn.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/ca.yaml b/content/slides/ca.yaml
index af79ab2926a..07acf133bf3 100644
--- a/content/slides/ca.yaml
+++ b/content/slides/ca.yaml
@@ -123,7 +123,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -192,7 +192,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -257,7 +257,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -272,7 +272,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -310,7 +310,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -335,7 +335,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -358,7 +358,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -404,7 +404,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -469,7 +469,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -492,7 +492,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -514,7 +514,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -529,7 +529,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -558,7 +558,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -601,7 +601,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -693,7 +693,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -730,7 +730,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -767,7 +767,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -832,7 +832,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -942,7 +942,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1024,7 +1024,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,6 +1153,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/cs.yaml b/content/slides/cs.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/cs.yaml
+++ b/content/slides/cs.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/cy.yaml b/content/slides/cy.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/cy.yaml
+++ b/content/slides/cy.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/da.yaml b/content/slides/da.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/da.yaml
+++ b/content/slides/da.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/de.yaml b/content/slides/de.yaml
index 707c9bc4464..7ac727bf3cd 100644
--- a/content/slides/de.yaml
+++ b/content/slides/de.yaml
@@ -123,7 +123,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -192,7 +192,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -257,7 +257,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -272,7 +272,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -310,7 +310,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -335,7 +335,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -358,7 +358,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -404,7 +404,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -469,7 +469,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -492,7 +492,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -514,7 +514,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -529,7 +529,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -558,7 +558,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -601,7 +601,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -693,7 +693,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -730,7 +730,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -767,7 +767,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -832,7 +832,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -942,7 +942,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1024,7 +1024,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,6 +1153,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/el.yaml b/content/slides/el.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/el.yaml
+++ b/content/slides/el.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/en.yaml b/content/slides/en.yaml
index 0eabd68e833..d8450538917 100644
--- a/content/slides/en.yaml
+++ b/content/slides/en.yaml
@@ -1050,6 +1050,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1069,6 +1095,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 16!
17:
@@ -1100,6 +1159,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/eo.yaml b/content/slides/eo.yaml
index 30f995448ee..22105a8f7e0 100644
--- a/content/slides/eo.yaml
+++ b/content/slides/eo.yaml
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/es.yaml b/content/slides/es.yaml
index 3a9fd1c7461..1546e783370 100644
--- a/content/slides/es.yaml
+++ b/content/slides/es.yaml
@@ -1049,6 +1049,32 @@ levels:
respuesta = {ask} '¿Cuánto es 5 veces 5?'
{print} 'Se ha dado una respuesta correcta'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: ¡Vamos a probarlo!
text: ¡Disfruta las aventuras en el nivel 15!
16:
@@ -1068,6 +1094,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} 'El número de la suerte de 'amigos[i] ' es ' numeros_suerte[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: ¡Vamos a probarlo!
text: ¡Disfruta las aventuras en el nivel 16!
17:
@@ -1099,6 +1158,28 @@ levels:
{else}:
{print} 'Más suerte la próxima vez..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: ¡Vamos a probarlo!
text: ¡Disfruta las aventuras en el nivel 17!
18:
diff --git a/content/slides/et.yaml b/content/slides/et.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/et.yaml
+++ b/content/slides/et.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/fa.yaml b/content/slides/fa.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/fa.yaml
+++ b/content/slides/fa.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/fi.yaml b/content/slides/fi.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/fi.yaml
+++ b/content/slides/fi.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/fr.yaml b/content/slides/fr.yaml
index 2e871fba46b..a4e1644d851 100644
--- a/content/slides/fr.yaml
+++ b/content/slides/fr.yaml
@@ -1029,7 +1029,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1049,6 +1049,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1068,8 +1094,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1099,6 +1158,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/fy.yaml b/content/slides/fy.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/fy.yaml
+++ b/content/slides/fy.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/he.yaml b/content/slides/he.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/he.yaml
+++ b/content/slides/he.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/hi.yaml b/content/slides/hi.yaml
index 061184dd041..9c401f0cab9 100644
--- a/content/slides/hi.yaml
+++ b/content/slides/hi.yaml
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/hu.yaml b/content/slides/hu.yaml
index 59f536db558..c29d97f1d14 100644
--- a/content/slides/hu.yaml
+++ b/content/slides/hu.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,6 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 16!
17:
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/ia.yaml b/content/slides/ia.yaml
index 0eabd68e833..4db210368e2 100644
--- a/content/slides/ia.yaml
+++ b/content/slides/ia.yaml
@@ -1050,6 +1050,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1069,8 +1095,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1100,6 +1159,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/id.yaml b/content/slides/id.yaml
index 5d96d3b0026..faaace1957f 100644
--- a/content/slides/id.yaml
+++ b/content/slides/id.yaml
@@ -1053,6 +1053,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Mari kita mencobanya!
text: Nikmati petualangan di level 15!
16:
@@ -1072,6 +1098,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Mari kita mencobanya!
text: Nikmati petualangan di level 16!
17:
@@ -1103,6 +1162,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Mari kita coba!
text: Nikmati petualangan di level 17!
18:
diff --git a/content/slides/it.yaml b/content/slides/it.yaml
index 0985d402bc8..127a48b11e5 100644
--- a/content/slides/it.yaml
+++ b/content/slides/it.yaml
@@ -1046,6 +1046,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1065,8 +1091,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1096,6 +1155,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/ja.yaml b/content/slides/ja.yaml
index 745d0c3161e..f2248504006 100644
--- a/content/slides/ja.yaml
+++ b/content/slides/ja.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,6 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 16!
17:
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/kmr.yaml b/content/slides/kmr.yaml
index 2786f4ff3ee..6d1e0f19fc6 100644
--- a/content/slides/kmr.yaml
+++ b/content/slides/kmr.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -253,7 +253,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -268,7 +268,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -306,7 +306,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -331,7 +331,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -354,7 +354,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -400,7 +400,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -465,7 +465,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -488,7 +488,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -510,7 +510,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -525,7 +525,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -554,7 +554,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -597,7 +597,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -689,7 +689,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -726,7 +726,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -763,7 +763,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -828,7 +828,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -938,7 +938,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1020,7 +1020,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1040,6 +1040,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1059,6 +1085,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 16!
17:
@@ -1090,6 +1149,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/ko.yaml b/content/slides/ko.yaml
index bc20ca5a38e..8fe7ca0fc4e 100644
--- a/content/slides/ko.yaml
+++ b/content/slides/ko.yaml
@@ -955,6 +955,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: 한번 해보자!
text: 레벨 15의 모험을 즐기세요!
16:
@@ -974,6 +1000,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: 한번 해보자!
text: 레벨 16의 모험을 즐기세요!
17:
@@ -1005,6 +1064,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: 한번 해보자!
text: 레벨 17의 모험을 즐기세요!
18:
diff --git a/content/slides/mi.yaml b/content/slides/mi.yaml
index b2799d6c230..2304a829087 100644
--- a/content/slides/mi.yaml
+++ b/content/slides/mi.yaml
@@ -127,7 +127,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -196,7 +196,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -261,7 +261,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -276,7 +276,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -314,7 +314,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Clear
text: |-
@@ -343,7 +343,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -366,7 +366,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -412,7 +412,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -477,7 +477,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -500,7 +500,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -522,7 +522,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -537,7 +537,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -566,7 +566,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -609,7 +609,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -701,7 +701,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -738,7 +738,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -775,7 +775,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -840,7 +840,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -950,7 +950,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1032,7 +1032,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1052,6 +1052,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1071,8 +1097,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1102,6 +1161,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/nb_NO.yaml b/content/slides/nb_NO.yaml
index c353d40bc11..b5b2646c820 100644
--- a/content/slides/nb_NO.yaml
+++ b/content/slides/nb_NO.yaml
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,6 +1153,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/nl.yaml b/content/slides/nl.yaml
index f9877deb57c..504ab94ba59 100644
--- a/content/slides/nl.yaml
+++ b/content/slides/nl.yaml
@@ -98,7 +98,7 @@ levels:
editor: /hedy/1
7:
header: Programmeren maar!
- text: Je kan de gele knopjes gebruiken om voorbeeldcodes te kopiëren.
+ text: Avonturen worden in tabjes getoond.
editor: /hedy#print_command
8:
header: Programmeren!
@@ -1037,6 +1037,32 @@ levels:
answer = {ask} 'Hoeveel is 5 maal 5?'
{print} 'Je antwoord is goed'
3:
+ header: Debugging
+ text: Laten we deze code debuggen!
+ code: |-
+ getallen = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} getal
+ i = + 1
+
+ random_getal = getallen {random}
+ gokjes = 10
+
+ {while} guess = 0
+ antwoord = 'Raad mijn getal:'
+ {if} antwoord >= random_getal
+ {print} 'Lager!'
+ gokjes = gok -1
+ {if} antwoord > random_getal
+ {print} 'Hoger!'
+ gokjes = gokjes
+ {else} antwoord = random_getal
+ {print} 'Goedzo! Je hebt het geraden'
+ gokjes = 10
+
+ debug: 'True'
+ 4:
header: Proberen maar!
text: Veel plezier met de avonturen in level 15!
16:
@@ -1056,6 +1082,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} vrienden[i] 'zijn geluks nummer is ' geluks_nummers[i]
3:
+ header: Debugging
+ text: Laten we deze code debuggen!
+ code: |-
+ {print} 'Test je vriendschap'
+ {onderwerpen} = ['lied', 'film', 'eten', 'drinken']
+ antwoorden_speler_1 = []
+ antwoorden_speler_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ antwoord = {ask} 'Wat is je favoriete ' onderwerpen[i]
+ {add} answer {to} antwoorden_speler_1
+
+ {print} 'Speler 2, jouw beurt!'
+ {for} i {in} {range} 0 {to} 4
+ antwoorden_speler_2 = {ask} 'Wat is speler 2s favoriete ' onderwerpen
+ {add} antwoorden_speler_2 {in} antwoorden_speler_2
+ {if} antwoorden_speler_2[2] == antwoorden_speler[1]
+ {print} 'Juist!'
+ {else}
+ {print} 'Fout!'
+ score = score - 25
+
+ {print} 'Je hebt een score van ' score '%'
+
+ {if} score = 100
+ {print} 'Je bent een geweldige vriend(in)'
+ {if} score < 100 {or} score >= 50
+ {print} 'Dat kan beter'
+ {else} score < 50
+ {print} 'Jij noemt jezelf een vriend(in)?!'
+ debug: 'True'
+ 4:
header: Proberen maar!
text: Veel plezier met de avonturen in level 16!
17:
@@ -1087,6 +1146,28 @@ levels:
{else}:
{print} 'Meer geluk volgende keer..'
4:
+ header: Debugging
+ text: Laten we deze code debuggen!
+ code: |-
+ {define} vraag_richting
+ richting = {ask} 'Waar wil je heen?'
+ {if} richting = 'terug'
+ {turn} 180
+ {else} richting == 'rechts'
+ {turn} 90
+ {else} richting == 'links'
+ {turn} 270
+ {forward} 100
+
+ doorspelen = 'yes'
+
+ {while} doorspelen == 'yes'
+ {print} vraag_richting
+ {sleep}
+ doorspelen = 'Wil je nog iets tekenen?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Aan het werk!
text: Veel plezier met de avonturen in level 17!
18:
diff --git a/content/slides/pa_PK.yaml b/content/slides/pa_PK.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/pa_PK.yaml
+++ b/content/slides/pa_PK.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/pap.yaml b/content/slides/pap.yaml
index b2799d6c230..2304a829087 100644
--- a/content/slides/pap.yaml
+++ b/content/slides/pap.yaml
@@ -127,7 +127,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -196,7 +196,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -261,7 +261,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -276,7 +276,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -314,7 +314,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Clear
text: |-
@@ -343,7 +343,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -366,7 +366,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -412,7 +412,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -477,7 +477,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -500,7 +500,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -522,7 +522,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -537,7 +537,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -566,7 +566,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -609,7 +609,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -701,7 +701,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -738,7 +738,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -775,7 +775,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -840,7 +840,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -950,7 +950,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1032,7 +1032,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1052,6 +1052,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1071,8 +1097,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1102,6 +1161,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/pl.yaml b/content/slides/pl.yaml
index ec5c0a6eb26..edd8dcaae77 100644
--- a/content/slides/pl.yaml
+++ b/content/slides/pl.yaml
@@ -127,7 +127,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -196,7 +196,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -261,7 +261,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -276,7 +276,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -314,7 +314,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -339,7 +339,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -362,7 +362,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -408,7 +408,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -473,7 +473,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -496,7 +496,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -518,7 +518,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -533,7 +533,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -562,7 +562,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -605,7 +605,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -697,7 +697,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -734,7 +734,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -771,7 +771,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -836,7 +836,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -946,7 +946,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1028,7 +1028,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1048,6 +1048,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1067,8 +1093,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1098,6 +1157,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/pt_BR.yaml b/content/slides/pt_BR.yaml
index b38d4fbb0b0..d7a8e5c4a59 100644
--- a/content/slides/pt_BR.yaml
+++ b/content/slides/pt_BR.yaml
@@ -1041,6 +1041,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1060,8 +1086,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Bem-vindo(a) ao nível 17
@@ -1091,6 +1150,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/pt_PT.yaml b/content/slides/pt_PT.yaml
index 9479d65a273..4f065090f7e 100644
--- a/content/slides/pt_PT.yaml
+++ b/content/slides/pt_PT.yaml
@@ -1,7 +1,7 @@
levels:
0:
1:
- header: Welcome to Hedy!
+ header: Bem-vindo(a) ao Hedy!
text: Hedy is a programming language.
2:
header: Programming
@@ -25,7 +25,7 @@ levels:
* Create computer drawings and draw these on paper or fabric
* Build your own apps to use on your phone
5:
- header: Programming in Hedy
+ header: Programar em Hedy
text: In Hedy we use special codes, like `{print}`.
code: '{print} Welcome to Hedy!'
6:
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/ro.yaml b/content/slides/ro.yaml
index 8370ade7137..b2111732a00 100644
--- a/content/slides/ro.yaml
+++ b/content/slides/ro.yaml
@@ -120,7 +120,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -189,7 +189,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -254,7 +254,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -269,7 +269,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -307,7 +307,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -332,7 +332,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -355,7 +355,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -401,7 +401,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -466,7 +466,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -489,7 +489,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -511,7 +511,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -526,7 +526,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -555,7 +555,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -598,7 +598,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -690,7 +690,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -727,7 +727,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -764,7 +764,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -829,7 +829,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -939,7 +939,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1021,7 +1021,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1041,6 +1041,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1060,8 +1086,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1091,6 +1150,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/ru.yaml b/content/slides/ru.yaml
index 24740dcd08e..839b6b642f1 100644
--- a/content/slides/ru.yaml
+++ b/content/slides/ru.yaml
@@ -123,7 +123,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -192,7 +192,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -257,7 +257,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -272,7 +272,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -310,7 +310,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -335,7 +335,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -358,7 +358,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -404,7 +404,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -469,7 +469,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -492,7 +492,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -514,7 +514,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -529,7 +529,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -558,7 +558,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -601,7 +601,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -693,7 +693,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -730,7 +730,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -767,7 +767,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -832,7 +832,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -942,7 +942,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1024,7 +1024,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,6 +1153,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/sl.yaml b/content/slides/sl.yaml
index ff5777c06f4..8501e49f35c 100644
--- a/content/slides/sl.yaml
+++ b/content/slides/sl.yaml
@@ -509,6 +509,32 @@ levels:
text: "We are going to learn a new loop, the while loop! The loop continues as long as the statement is true. So don't forget to change the value in the loop.\n\nIn the example code, we continue until a correct answer has been given. If the correct answer is never given, the loop will never end!"
code: "answer = 0\n{while} answer != 25\n answer = {ask} 'What is 5 times 5?'\n{print} 'A correct answer has been given'"
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -520,8 +546,41 @@ levels:
text: We are going to make lists the Python way, with square brackets around the lists! We also keep the quotation marks around each item like we have learned in previous levels. We use square brackets to point out a place in a list. The at random command can not be used anymore.
code: "friends = ['Ahmed', 'Ben', 'Cayden']\n{print} friends[1] ' is the first friend on the list.'\n{print} friends[2] ' is the second friend on the list.'\n{print} friends[3] ' is the third friend on the list.'\n#now we will match 2 lists using the variable i\nlucky_numbers = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} friends[i] 's lucky number is ' lucky_numbers[i]"
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -535,6 +594,28 @@ levels:
text: 'In this level you can also use a new command: elif. elif is short for else if and you need it when you want to make 3 (or more!) options. Check it out!'
code: "prices = ['1 million dollars', 'an apple pie', 'nothing']\nyour_price = prices[{random}]\n{print} 'You win ' your_price\n{if} your_price == '1 million dollars' :\n {print} 'Yeah! You are rich!'\n{elif} your_price == 'an apple pie' :\n {print} 'Lovely, an apple pie!'\n{else}:\n {print} 'Better luck next time..'"
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/sq.yaml b/content/slides/sq.yaml
index 9479d65a273..93034dd498b 100644
--- a/content/slides/sq.yaml
+++ b/content/slides/sq.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,6 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 16!
17:
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/sr.yaml b/content/slides/sr.yaml
index 8ed647d0572..54e9face85f 100644
--- a/content/slides/sr.yaml
+++ b/content/slides/sr.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/sv.yaml b/content/slides/sv.yaml
index 1fc3be2943e..3b2139ee788 100644
--- a/content/slides/sv.yaml
+++ b/content/slides/sv.yaml
@@ -127,7 +127,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -196,7 +196,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Låt den roliga programmeringen börja!
text: Ha det kul med äventyren på nivå 2!
@@ -261,7 +261,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Nu sätter vi igång!
text: Ha det kul med äventyren på nivå 3!
@@ -276,7 +276,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixa det med citattecken
text: |-
@@ -314,7 +314,7 @@ levels:
Försök att skriva ut en sammandragning som engelska "you're" eller "I'm" på skärmen nedan och se vad som händer …
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Rensa
text: |-
@@ -343,7 +343,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Klara, färdiga, gå!
text: Ha det kul med äventyren på nivå 4!
@@ -364,7 +364,7 @@ levels:
header: Glöm inte att skriva ut
text: Glöm inte att använda kommandot `{print}` när du använder kommandot `{if}`.
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: annars
text: |-
@@ -410,7 +410,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Nu kör vi!
text: Ha det kul med äventyren på nivå 5!
@@ -475,7 +475,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Nu sätter vi igång!
text: Ha det kul med äventyren på nivå 6!
@@ -498,7 +498,7 @@ levels:
header: Glöm inte kommandot skriv
text: Glöm inte kommandot `{print}` när du använder kommandot upprepa.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Upprepa ett fråga-kommando
text: Du kan också upprepa ett `{ask}`-, `{if}`- eller `{else}`-kommando flera gånger.
@@ -520,7 +520,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Klara, färdiga, gå!
text: Ha det kul med äventyren på nivå 7!
@@ -535,7 +535,7 @@ levels:
Du kunde bara upprepa en kodrad.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat}-kommandon nu'
text: |-
@@ -564,7 +564,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: om och annars nu
text: |-
@@ -607,7 +607,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Vi kollar in äventyren!
text: Ha det kul med äventyren på nivå 8!
@@ -699,7 +699,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Nu kör vi!
text: Ha det kul med äventyren på nivå 9!
@@ -736,7 +736,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Dags att programmera!
text: Ha det kul med äventyren på nivå 10!
@@ -773,7 +773,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Låt oss börja programmera!
text: Ha det kul med äventyren på nivå 11!
@@ -836,7 +836,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -944,7 +944,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1026,7 +1026,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1046,6 +1046,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Vi testar det!
text: Ha det kul med äventyren på nivå 15!
16:
@@ -1065,6 +1091,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Vi testar det!
text: Ha det kul med äventyren på nivå 16!
17:
@@ -1098,6 +1157,11 @@ levels:
4:
header: Vi testar det!
text: Ha det kul med äventyren på nivå 17!
+ debug: 'True'
+ code: "{define} ask_direction\n direction = {ask} 'Where do you want to go?'\n {if} direction = 'backwards'\n {turn} 180\n {else} direction == 'right'\n {turn} 90\n {else} direction == 'left'\n {turn} 270\n {forward} 100\n\ncontinue = 'yes'\n\n{while} continue == 'yes'\n {print} ask_direction\n {sleep}\n continue = 'do you want to draw some more?'\n {sleep}"
+ 5:
+ header: Let's try it out!
+ text: Enjoy the adventures in level 17!
18:
1:
header: Välkommen till nivå 18
diff --git a/content/slides/sw.yaml b/content/slides/sw.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/sw.yaml
+++ b/content/slides/sw.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/te.yaml b/content/slides/te.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/te.yaml
+++ b/content/slides/te.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/th.yaml b/content/slides/th.yaml
index e8a7fceec9b..aef2156eb3e 100644
--- a/content/slides/th.yaml
+++ b/content/slides/th.yaml
@@ -123,7 +123,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -192,7 +192,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -257,7 +257,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -272,7 +272,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -310,7 +310,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -335,7 +335,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -358,7 +358,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -404,7 +404,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -469,7 +469,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -492,7 +492,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -514,7 +514,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -529,7 +529,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -558,7 +558,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -601,7 +601,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -693,7 +693,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -730,7 +730,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -767,7 +767,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -832,7 +832,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -942,7 +942,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1024,7 +1024,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,6 +1153,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/tl.yaml b/content/slides/tl.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/tl.yaml
+++ b/content/slides/tl.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/tn.yaml b/content/slides/tn.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/tn.yaml
+++ b/content/slides/tn.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/tr.yaml b/content/slides/tr.yaml
index 5e0aa554ffc..e61684dce09 100644
--- a/content/slides/tr.yaml
+++ b/content/slides/tr.yaml
@@ -1046,6 +1046,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Hadi deneyelim!
text: Seviye 15'teki maceraların tadını çıkarın!
16:
@@ -1065,6 +1091,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
header: Hadi deneyelim!
text: Seviye 16'daki maceraların tadını çıkarın!
17:
@@ -1096,6 +1155,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Hadi deneyelim!
text: Seviye 17'deki maceraların tadını çıkarın!
18:
diff --git a/content/slides/uk.yaml b/content/slides/uk.yaml
index 058cc78cfe0..caf70a2ffd9 100644
--- a/content/slides/uk.yaml
+++ b/content/slides/uk.yaml
@@ -123,7 +123,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -192,7 +192,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -257,7 +257,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -272,7 +272,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -310,7 +310,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -335,7 +335,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -358,7 +358,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -404,7 +404,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -469,7 +469,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -492,7 +492,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -514,7 +514,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -529,7 +529,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -558,7 +558,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -601,7 +601,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -693,7 +693,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -730,7 +730,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -767,7 +767,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -832,7 +832,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -942,7 +942,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1024,7 +1024,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1044,6 +1044,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1063,8 +1089,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1094,8 +1153,30 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
text: Enjoy the adventures in level 17!
+ header: Let's try it out!
18:
1:
header: Welcome to level 18
diff --git a/content/slides/ur.yaml b/content/slides/ur.yaml
index 607d1514d43..500760e5b0f 100644
--- a/content/slides/ur.yaml
+++ b/content/slides/ur.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/vi.yaml b/content/slides/vi.yaml
index 30f2bd83581..dc100e4fd29 100644
--- a/content/slides/vi.yaml
+++ b/content/slides/vi.yaml
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/content/slides/zh_Hans.yaml b/content/slides/zh_Hans.yaml
index f0ab82e0a07..2eb535178eb 100644
--- a/content/slides/zh_Hans.yaml
+++ b/content/slides/zh_Hans.yaml
@@ -1056,6 +1056,32 @@ levels:
answer = {ask} '5 乘以 5 是多少?'
{print} '已给出正确答案'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = '猜猜我的数字:'
+ {if} answer >= random_number
+ {print} '小了'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} '大了!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} '对了'
+ guesses = 10
+
+ debug: '对的'
+ 4:
header: 让我们开始尝试!
text: 享受15级的冒险吧!
16:
@@ -1075,6 +1101,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] '的幸运数字是 ' lucky_numbers[i]
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} '友情测试'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} '你最爱的' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} '玩家2,轮到你了!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} '什么是玩家1 最喜爱的 ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} '对了!'
+ {else}
+ {print} '错了!'
+ score = score - 25
+
+ {print} '玩家2,你的分数 ' score '%'
+
+ {if} score = 100
+ {print} '你是位超赞的朋友'
+ {if} score < 100 {or} score >= 50
+ {print} '你能作的更好'
+ {else} score < 50
+ {print} '你真的认识这个人吗?!'
+ debug: '对的'
+ 4:
header: 让我们开始尝试!
text: 享受16级的冒险吧!
17:
@@ -1106,6 +1165,28 @@ levels:
{else}:
{print} '下次祝你好运..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} '你想去哪里?'
+ {if} direction = '后退'
+ {turn} 180
+ {else} direction == '右'
+ {turn} 90
+ {else} direction == '左'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = '你想再画一些吗?'
+ {sleep}
+ debug: '对的'
+ 5:
header: 我们来试一下!
text: 享受第17关的冒险吧!
18:
diff --git a/content/slides/zh_Hant.yaml b/content/slides/zh_Hant.yaml
index 9479d65a273..fa5f0ab8d6b 100644
--- a/content/slides/zh_Hant.yaml
+++ b/content/slides/zh_Hant.yaml
@@ -121,7 +121,7 @@ levels:
{print} What song would you like to hear?
{ask} I like that song too!
{print} Next up... {echo}
- debug: true
+ debug: 'True'
13:
header: Let the programming fun begin!
text: Enjoy the adventures in level 1!
@@ -190,7 +190,7 @@ levels:
{print} I'll go get your donut. {sleep}
{print} Here you go! A filling donut with toping!
{ask} Have a nice day!
- debug: true
+ debug: 'True'
8:
header: Let the programming fun begin!
text: Enjoy the adventures in level 2!
@@ -255,7 +255,7 @@ levels:
{print} or do you prefer... second_choice {at} {random}
{remove} second_choice {to} music_genres
{print} I like music_genre {random} best!
- debug: true
+ debug: 'True'
8:
header: Let's get to work!
text: Enjoy the adventures in level 3!
@@ -270,7 +270,7 @@ levels:
code: |-
name {is} Sophie
{print} My name is name
- debug: true
+ debug: 'True'
3:
header: Fixing it with quotation marks
text: |-
@@ -308,7 +308,7 @@ levels:
Please try to print a contraction like "you're" or "I'm" in the screen below and see what happens....
code: '{print} ''This won''t work!'''
- debug: true
+ debug: 'True'
9:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -333,7 +333,7 @@ levels:
colors {is} 'orange, silver, white, brown'
{print} 'I love the colors {at} {random} one!'
choice {is} {ask} Which one do you like?
- debug: true
+ debug: 'True'
11:
header: Ready, Set, Go!
text: Enjoy the adventures in level 4!
@@ -356,7 +356,7 @@ levels:
When using the `{if}` command, don't forget to use the `{print}` command.
This code will not work!
code: '{if} name {is} Hedy ''nice'''
- debug: true
+ debug: 'True'
4:
header: else
text: |-
@@ -402,7 +402,7 @@ levels:
item_to_declare {is} {ask} 'What would you like to declare'
{else} Alright
{print} Thank you. Please head to gate A22.'
- debug: true
+ debug: 'True'
8:
header: Let's go!
text: Enjoy the adventures in level 5!
@@ -467,7 +467,7 @@ levels:
{if} day {is} monday
total_price = total_price * 0.25
{print} 'That will be total_price please'
- debug: true
+ debug: 'True'
10:
header: Let's get to work!
text: Enjoy the adventures in level 6!
@@ -490,7 +490,7 @@ levels:
header: Don't forget the print command
text: When using the repeat command, do not forget the `{print}` command.
code: '{repeat} 5 {times} ''Help!'''
- debug: true
+ debug: 'True'
4:
header: Repeat an ask command
text: You can also repeat an `{ask}`, `{if}` or `{else}` command multiple times.
@@ -512,7 +512,7 @@ levels:
{if} yes
{print} 'Hurray!
{else} 'That's a shame... Oh well... time to build a shelter and find some food.'
- debug: true
+ debug: 'True'
6:
header: Ready Set Go!
text: Enjoy the adventures in level 7!
@@ -527,7 +527,7 @@ levels:
You could only repeat one line of code.
code: '{repeat} 5 {times} {print} ''Help!'''
- debug: true
+ debug: 'True'
3:
header: '{repeat} commands now'
text: |-
@@ -556,7 +556,7 @@ levels:
code: |-
{if} name {is} Hedy {print} 'nice'
{else} {print} 'boo!'
- debug: true
+ debug: 'True'
6:
header: if and else now
text: |-
@@ -599,7 +599,7 @@ levels:
{print} You chose a round trip ticket'
price * 2
{print} 'That will be ' price ' euros please'
- debug: true
+ debug: 'True'
10:
header: Let's check out the adventures!
text: Enjoy the adventures in level 8!
@@ -691,7 +691,7 @@ levels:
{else}
{print} 'Fun!'
{print} 'Thanks for filling in the safety questions everyone. Enjoy your jump!'
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 9!
@@ -728,7 +728,7 @@ levels:
{add} chosen_person {from} people
{print} 'Come and watch our show tonight!'
{print} 'Tickets are only available at the counter
- debug: true
+ debug: 'True'
5:
header: Time to program!
text: Enjoy the adventures in level 10!
@@ -765,7 +765,7 @@ levels:
{repeat} {for} numbers {in} {range} 1 {to} 10 {times}
{print} This is the table of multiplications for factor
{print} number ' x ' factor ' = ' i * factor
- debug: true
+ debug: 'True'
5:
header: Let's start programming!
text: Enjoy the adventures in level 11!
@@ -830,7 +830,7 @@ levels:
{call} new member
{else}
password = {ask} 'Please enter password'
- debug: true
+ debug: 'True'
8:
header: Ready to try it out?
text: Enjoy the adventures in level 12!
@@ -940,7 +940,7 @@ levels:
{call} happiness {with} person
{else} mood = sad
{define} sadness {to} name
- debug: true
+ debug: 'True'
9:
header: Let's go!
text: Enjoy the adventures in level 13!
@@ -1022,7 +1022,7 @@ levels:
{print} 'Shame.. I wont buy it'
{else}
{print} 'I will buy it! Thank you!'
- debug: true
+ debug: 'True'
7:
header: Let's get to work!
text: Enjoy the adventures in level 14!
@@ -1042,6 +1042,32 @@ levels:
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
3:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ numbers = 1, 2
+
+ {for} i {in} {range} 3 {to} 50
+ {add} x {to} numbers
+ i = + 1
+
+ random_number = numbers {random}
+ guesses = 10
+
+ {while} guess = 0
+ answer = 'Guess my number:'
+ {if} answer >= random_number
+ {print} 'lower'
+ guesses = guesses -1
+ {if} answer > random_number
+ {print} 'higher!'
+ guesses = guesses
+ {else} answer = random_number
+ {print} 'correct'
+ guesses = 10
+
+ debug: 'True'
+ 4:
header: Let's try it out!
text: Enjoy the adventures in level 15!
16:
@@ -1061,8 +1087,41 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
- header: Let's try it out!
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {print} 'Friendship test'
+ {subjects} = ['song', 'movie', 'food', 'drink']
+ answers_player_1 = []
+ answers_player_2 = []
+ score = 100
+
+ {for} i {in} {range} 1 {to} 4
+ answer = {ask} 'what is your favorite ' subjects[i]
+ {add} answer {to} answers_player_1
+
+ {print} 'Player 2, your turn!'
+ {for} i {in} {range} 0 {to} 4
+ answer_player_2 = {ask} 'what is player 1s favorite ' subjects
+ {add} answer_player_2 {in} answers_player_2
+ {if} answers_player_2[2] == answers_player_1[1]
+ {print} 'Correct!'
+ {else}
+ {print} 'Wrong!'
+ score = score - 25
+
+ {print} 'Player 2, you've scored ' score '%'
+
+ {if} score = 100
+ {print} 'You are an amazing friend'
+ {if} score < 100 {or} score >= 50
+ {print} 'You could do better'
+ {else} score < 50
+ {print} 'Do you even know this person?!'
+ debug: 'True'
+ 4:
text: Enjoy the adventures in level 16!
+ header: Let's try it out!
17:
1:
header: Welcome to level 17
@@ -1092,6 +1151,28 @@ levels:
{else}:
{print} 'Better luck next time..'
4:
+ header: Debugging
+ text: Let's debug this code!
+ code: |-
+ {define} ask_direction
+ direction = {ask} 'Where do you want to go?'
+ {if} direction = 'backwards'
+ {turn} 180
+ {else} direction == 'right'
+ {turn} 90
+ {else} direction == 'left'
+ {turn} 270
+ {forward} 100
+
+ continue = 'yes'
+
+ {while} continue == 'yes'
+ {print} ask_direction
+ {sleep}
+ continue = 'do you want to draw some more?'
+ {sleep}
+ debug: 'True'
+ 5:
header: Let's try it out!
text: Enjoy the adventures in level 17!
18:
diff --git a/grammars/level5-Additions.lark b/grammars/level5-Additions.lark
index 0eb0d273f73..98a7e0cbfe1 100644
--- a/grammars/level5-Additions.lark
+++ b/grammars/level5-Additions.lark
@@ -45,7 +45,7 @@ nospace: /[^\n, ]/
textwithspaces: /(?:[^#\n،,,、 ]| (?!else|başka|faese|अन्यथा|否则|muuten|muidu|senão|ellers|alie|altfel|иначе|inače|altrimenti|інакше|lainnya|arall|annars|değilse|anders|ndryshe|inaczej|sinon|ไม่อย่างนั้น|sonst|లేకపోతే|sino|ورنہ|وکھرا|אחרת|وإلا))+/ -> text //anything can be parsed except for a newline and a comma for list separators
//a space is allowed, but it may not be followed by an else. The part " (?!else))" means space not followed by (negative look ahead) else
//That is because allowing else in strings leads to issue #303
-textwithoutspaces: /(?:[^#\n،,,、 *+\-\/eidіиlలేไamfnsbअ否אو]|א(?!חרת )|و(?!إلا |کھرا |رنہ)|否(?!则 )|अ(?!न्यथा )|и(?!наче )|m(?!uidu |uuten )|d(?!eğilse )|b(?!aşka )|n(?!dryshe )|ไ(?!ม่อย่างนั้น )|l(?!ainnya )|f(?!aese )|e(?!lse |llers )|s(?!inon |enão |ino |onst )|і(?!накше )|i(?!naczej |nače )|లే (?!కపోతే )|a(?!nders |lie |ltfel |ltrimenti |nnars |rall ))+/ -> text //anything can be parsed except for spaces (plus: a newline and a comma for list separators)
+textwithoutspaces: /(?:[^#\n،,,、 *+\-\/eidіиlలేไamfnsbअ否אو]|א(?!חרת )|و(?!إلا |کھرا |رنہ)|否(?!则 )|अ(?!न्यथा )|и(?!наче )|m(?!uidu |uuten )|d(?!eğilse )|b(?!aşka )|n(?!dryshe )|ไ(?!ม่อย่างนั้น )|l(?!ainnya )|f(?!aese )|e(?!lse |llers )|s(?!inon |enão |ino |onst )|і(?!накше )|i(?!naczej |nače )|లే (?!కపోతే )|a(?!nders |lie |ltfel |ltrimenti |nnars |rall ))+/ _END_BLOCK* -> text //anything can be parsed except for spaces (plus: a newline and a comma for list separators)
//the part e(?!lse)|i(?!f)) means e not followed by lse, and i not followed by f
// this is because allowing else and if in invalid leads to ambiguity in the grammar
// note that the i's look similar but are not: inaczej versus інакше!
diff --git a/grammars/terminals.lark b/grammars/terminals.lark
index a10bb7f1ab0..e5e8db00027 100644
--- a/grammars/terminals.lark
+++ b/grammars/terminals.lark
@@ -1,6 +1,10 @@
-COMMENT: _HASH /([^\n]*)/
+// A comment has a negative lookahead to ensure it cannot parse _END_BLOCKS
+COMMENT: /#(?!ENDBLOCK)[^\n]*/
%ignore COMMENT
+// Internal symbol added by the preprocess_blocks function to indicate the end of blocks
+_END_BLOCK: "#ENDBLOCK"
+
NEGATIVE_NUMBER: _MINUS /\p{Nd}+/ ("." /\p{Nd}+/)?
POSITIVE_NUMBER: /\p{Nd}+/ ("." /\p{Nd}+/)?
NUMBER: NEGATIVE_NUMBER | POSITIVE_NUMBER
@@ -14,10 +18,6 @@ NAME: LETTER_OR_UNDERSCORE LETTER_OR_NUMERAL*
LETTER_OR_UNDERSCORE: /[\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}_]+/
LETTER_OR_NUMERAL: LETTER_OR_UNDERSCORE | /[\p{Mn}\p{Mc}\p{Nd}\p{Pc}·]+/
-// Internal symbol added by the preprocess_blocks function to indicate the end of blocks
-_END_BLOCK: "#ENDBLOCK"
-
-
//symbols. they start with an underscore so they don't appear in the parse tree (Lark convention)
_EOL: "\r"?"\n"+
_SPACE: " "+
diff --git a/tests/test_level/test_level_09.py b/tests/test_level/test_level_09.py
index 16e4847bb1a..2dbcf498540 100644
--- a/tests/test_level/test_level_09.py
+++ b/tests/test_level/test_level_09.py
@@ -165,6 +165,30 @@ def test_repeat_nested_in_repeat(self):
self.multi_level_tester(code=code, expected=expected, max_level=11)
+ def test_repeat_nested_multi_commands(self):
+ code = textwrap.dedent("""\
+ repeat 3 times
+ print 3
+ repeat 5 times
+ print 5
+ print 1""")
+
+ expected = textwrap.dedent(f"""\
+ for __i in range({self.int_cast_transpiled(3)}):
+ print(f'3')
+ for __i in range({self.int_cast_transpiled(5)}):
+ print(f'5')
+ time.sleep(0.1)
+ print(f'1')
+ time.sleep(0.1)""")
+
+ self.multi_level_tester(
+ code=code,
+ expected=expected,
+ max_level=11,
+ skip_faulty=False
+ )
+
def test_repeat_no_indentation(self):
code = textwrap.dedent("""\
repeat 3 times
diff --git a/tests/test_level/test_level_12.py b/tests/test_level/test_level_12.py
index 52eff652f7e..e88752f038f 100644
--- a/tests/test_level/test_level_12.py
+++ b/tests/test_level/test_level_12.py
@@ -1735,6 +1735,30 @@ def test_repeat_nested_in_repeat(self):
self.multi_level_tester(code=code, expected=expected, max_level=17)
+ def test_repeat_nested_multi_commands(self):
+ code = textwrap.dedent("""\
+ repeat 3 times
+ print 3
+ repeat 5 times
+ print 5
+ print 1""")
+
+ expected = textwrap.dedent(f"""\
+ for __i in range({self.int_cast_transpiled(3)}):
+ print(f'''3''')
+ for __i in range({self.int_cast_transpiled(5)}):
+ print(f'''5''')
+ time.sleep(0.1)
+ print(f'''1''')
+ time.sleep(0.1)""")
+
+ self.multi_level_tester(
+ code=code,
+ expected=expected,
+ max_level=17,
+ skip_faulty=False
+ )
+
#
# for list command
#
diff --git a/tests/test_level/test_level_18.py b/tests/test_level/test_level_18.py
index 82431bf40c9..5e68d1ce117 100644
--- a/tests/test_level/test_level_18.py
+++ b/tests/test_level/test_level_18.py
@@ -373,3 +373,29 @@ def test_if_list_access_lhs_and_or(self, op):
code=code,
expected=expected,
)
+
+ #
+ # repeat
+ #
+ def test_repeat_nested_multi_commands(self):
+ code = textwrap.dedent("""\
+ repeat 3 times
+ print(3)
+ repeat 5 times
+ print(5)
+ print(1)""")
+
+ expected = textwrap.dedent(f"""\
+ for __i in range({self.int_cast_transpiled(3)}):
+ print(f'''3''')
+ for __i in range({self.int_cast_transpiled(5)}):
+ print(f'''5''')
+ time.sleep(0.1)
+ print(f'''1''')
+ time.sleep(0.1)""")
+
+ self.multi_level_tester(
+ code=code,
+ expected=expected,
+ skip_faulty=False
+ )
diff --git a/tests/test_snippets/snippet_tester.py b/tests/test_snippets/snippet_tester.py
index bb1810fc0c1..a2859a675aa 100644
--- a/tests/test_snippets/snippet_tester.py
+++ b/tests/test_snippets/snippet_tester.py
@@ -303,6 +303,8 @@ def __getitem__(self, key):
return LocatedYamlValue(ret, self.yaml_path + [key])
def get(self, key, default=None):
+ if self.inner is None:
+ return None
"""Retrieve a single item from the inner value."""
ret = self.inner.get(key, default)
if ret is None:
diff --git a/tools/merge-weblate-resolving-conflicts.sh b/tools/merge-weblate-resolving-conflicts.sh
index 50e0e825ed3..41478e18bd8 100644
--- a/tools/merge-weblate-resolving-conflicts.sh
+++ b/tools/merge-weblate-resolving-conflicts.sh
@@ -11,7 +11,7 @@ git checkout -B weblate-hedy-adventures-conflicts weblate-main/main
# Normalize files in Weblate main repo
doit run _autopr _autopr_weblate
-git commit -am 'Normalize Weblate branch'
+git commit -am 'Normalize Weblate branch' --allow-empty
# Merge from origin, preferring Weblate's changes
git fetch origin
diff --git a/translations/ar/LC_MESSAGES/messages.po b/translations/ar/LC_MESSAGES/messages.po
index cc92e209bea..c76803cef4d 100644
--- a/translations/ar/LC_MESSAGES/messages.po
+++ b/translations/ar/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=0 && n%100<=2 ? 4 : 5);\n"
+"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
+"&& n%100<=10 ? 3 : n%100>=0 && n%100<=2 ? 4 : 5);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/cy/LC_MESSAGES/messages.po b/translations/cy/LC_MESSAGES/messages.po
index 4a289bdb1ec..6aba2f5384d 100644
--- a/translations/cy/LC_MESSAGES/messages.po
+++ b/translations/cy/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=5; plural=(n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? 4 : 0);\n"
+"Plural-Forms: nplurals=5; plural=(n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? "
+"4 : 0);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/pl/LC_MESSAGES/messages.po b/translations/pl/LC_MESSAGES/messages.po
index 8537c05ed71..945e3e1ba1e 100644
--- a/translations/pl/LC_MESSAGES/messages.po
+++ b/translations/pl/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/ro/LC_MESSAGES/messages.po b/translations/ro/LC_MESSAGES/messages.po
index bc65bfa6d4e..c3868663cd5 100644
--- a/translations/ro/LC_MESSAGES/messages.po
+++ b/translations/ro/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;\n"
+"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
+"20)) ? 1 : 2;\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/ru/LC_MESSAGES/messages.po b/translations/ru/LC_MESSAGES/messages.po
index 415f4a74cee..447234df7a0 100644
--- a/translations/ru/LC_MESSAGES/messages.po
+++ b/translations/ru/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/sl/LC_MESSAGES/messages.po b/translations/sl/LC_MESSAGES/messages.po
index fd7951a1616..8707c469f34 100644
--- a/translations/sl/LC_MESSAGES/messages.po
+++ b/translations/sl/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
+"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
+"n%100==4 ? 2 : 3;\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/sr/LC_MESSAGES/messages.po b/translations/sr/LC_MESSAGES/messages.po
index 56c8d5f6de3..fa92c1ead05 100644
--- a/translations/sr/LC_MESSAGES/messages.po
+++ b/translations/sr/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"
diff --git a/translations/uk/LC_MESSAGES/messages.po b/translations/uk/LC_MESSAGES/messages.po
index c4a4a3165a2..4d2c2fbbbee 100644
--- a/translations/uk/LC_MESSAGES/messages.po
+++ b/translations/uk/LC_MESSAGES/messages.po
@@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"