Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 5, 2024
1 parent 2d81c07 commit 7585d79
Show file tree
Hide file tree
Showing 51 changed files with 612 additions and 264 deletions.
32 changes: 21 additions & 11 deletions content/adventures/ar.yaml

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions content/adventures/bg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,8 @@ adventures:
{print} 2.5 + 2.5
13:
story_text: We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two {if}'s but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement needs to be correct.
story_text: We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two {if}'s but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement
needs to be correct.
example_code: |
```
name = {ask} 'what is your name?'
Expand Down Expand Up @@ -2564,7 +2565,8 @@ adventures:
_
```
6:
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting numbers. \nThen, see if you can compose a song using the numbers.\n"
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting\
\ numbers. \nThen, see if you can compose a song using the numbers.\n"
example_code: |
```
number = {ask} 'Say a starting number between 1 and 67'
Expand Down Expand Up @@ -4197,6 +4199,9 @@ adventures:
{forward} 100
{turn} {left}
```
story_text_2: |
### Exercise
This is the start of a little staircase. Can you make it have 5 steps?
example_code_2: |
```
{forward} 20
Expand All @@ -4205,7 +4210,6 @@ adventures:
{turn} {left}
{forward} 20
```
story_text_2: "### Exercise\nThis is the start of a little staircase. Can you make it have 5 steps?\n"
2:
story_text: |
В първо ниво нашата костенурка можеше да се движи само само в посока ляво или дясно. Това бързо доскучава, нали?
Expand Down
9 changes: 6 additions & 3 deletions content/adventures/bn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,8 @@ adventures:
{repeat} 3 {times} {print} 'Hedy is fun!'
```
8:
story_text: "ask এবং print ঠিক একই ভাবেই কাজ করবে. কিন্তু if এবং repeat পরিবর্তিত হয়েছে! আপনি এখন কোডের গ্রুপ গুলোকে একসাথে এক্সিকিউট করতে পারেন , তবে আপনাকে কোডটিকে ইন্ডেণ্ট করতে হবে . তার মানে লাইনের শুরুতে চারটা স্পেশ দেওয়া. একটি লাইনের ব্লক তৈরি করেতে চাইলেও ঠিক একই কাজ করতে হবে\tif আপনি একটি `পুনরাবৃত্তি` এবং একটি `if ` একত্রিত করতে চান আপনাকে প্রত্রেকটি ব্লক ইন্ডেণ্ট করতে হবে. আরও বিশদের জন্যে উদাহরণ কোডটি দেখুন!\n"
story_text: "ask এবং print ঠিক একই ভাবেই কাজ করবে. কিন্তু if এবং repeat পরিবর্তিত হয়েছে! আপনি এখন কোডের গ্রুপ গুলোকে একসাথে এক্সিকিউট করতে পারেন , তবে আপনাকে কোডটিকে ইন্ডেণ্ট করতে হবে . তার মানে লাইনের শুরুতে চারটা স্পেশ দেওয়া. একটি লাইনের ব্লক তৈরি করেতে চাইলেও ঠিক একই কাজ করতে হবে\t\
if আপনি একটি `পুনরাবৃত্তি` এবং একটি `if ` একত্রিত করতে চান আপনাকে প্রত্রেকটি ব্লক ইন্ডেণ্ট করতে হবে. আরও বিশদের জন্যে উদাহরণ কোডটি দেখুন!\n"
example_code: |
```
{repeat} 5 {times}
Expand Down Expand Up @@ -1267,7 +1268,8 @@ adventures:
{print} 2.5 + 2.5
13:
story_text: We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two if's but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement needs to be correct.
story_text: We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two if's but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement
needs to be correct.
example_code: |
```
name = {ask} 'what is your name?'
Expand Down Expand Up @@ -2490,7 +2492,8 @@ adventures:
_
```
6:
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting numbers. \nThen, see if you can compose a song using the numbers.\n"
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting\
\ numbers. \nThen, see if you can compose a song using the numbers.\n"
example_code: |
```
number = {ask} 'Say a starting number between 1 and 67'
Expand Down
3 changes: 2 additions & 1 deletion content/adventures/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,8 @@ adventures:
_
```
6:
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting numbers. \nThen, see if you can compose a song using the numbers.\n"
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting\
\ numbers. \nThen, see if you can compose a song using the numbers.\n"
example_code: |
```
number = {ask} 'Say a starting number between 1 and 67'
Expand Down
16 changes: 9 additions & 7 deletions content/adventures/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,8 @@ adventures:
description: Vysvětlení úrovně
levels:
1:
story_text: "V první úrovni můžeš používat příkazy `{print}`, `{ask}` a `{echo}`.\n Zapiš svůj kód do levého okna. Nebo stiskni žluté tlačítko v ukázce kódu, které kód zapíše za tebe.\nKód si vždy vyzkoušej pomocí zeleného tlačítka 'Spustit kód' pod levým programovým polem.\n\nMůžeš vypsat text na obrazovku užitím příkazu `{print}`. \n"
story_text: "V první úrovni můžeš používat příkazy `{print}`, `{ask}` a `{echo}`.\n Zapiš svůj kód do levého okna. Nebo stiskni žluté tlačítko v ukázce kódu, které kód zapíše za tebe.\nKód si vždy vyzkoušej pomocí zeleného tlačítka 'Spustit kód' pod levým programovým polem.\n\nMůžeš vypsat\
\ text na obrazovku užitím příkazu `{print}`. \n"
example_code: |
```
{print} Hello world!
Expand Down Expand Up @@ -1346,12 +1347,12 @@ adventures:
print 'Dostala jsem správnou odpověď!'
16:
story_text: Už i naše seznamy mají vlastní závorky! Budeme je psát do hranatých závorek a jejich jednotlivé položky do jednoduchých uvozovek ('), které už známe.
example_code: |2
example_code: |4
```
ovoce = ['jablko', 'banán', 'třešně']
print ovoce
```
```
ovoce = ['jablko', 'banán', 'třešně']
print ovoce
```
17:
story_text: |-
Nyní trochu změníme odsazení. Pokaždé, když potřebujeme odsazení, je třeba zapsat znak `:` na řádku před tímto odsazením.
Expand Down Expand Up @@ -2572,7 +2573,8 @@ adventures:
_
```
6:
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting numbers. \nThen, see if you can compose a song using the numbers.\n"
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting\
\ numbers. \nThen, see if you can compose a song using the numbers.\n"
example_code: |
```
number = {ask} 'Say a starting number between 1 and 67'
Expand Down
20 changes: 14 additions & 6 deletions content/adventures/cy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,8 @@ adventures:
description: Esboniad lefel
levels:
1:
story_text: "In Level 1 you can use the commands `{print}`, `{ask}` and `{echo}`.\n Type your code in the programming field. Or press the green button in the example code block, and the code will be typed for you!\nTry the code yourself with the green 'Run code' button under the programming field.\n\nYou can print text to the screen using the `{print}` command. \n"
story_text: "In Level 1 you can use the commands `{print}`, `{ask}` and `{echo}`.\n Type your code in the programming field. Or press the green button in the example code block, and the code will be typed for you!\nTry the code yourself with the green 'Run code' button under the programming\
\ field.\n\nYou can print text to the screen using the `{print}` command. \n"
example_code: |
```
{print} Hello world!
Expand Down Expand Up @@ -1326,7 +1327,8 @@ adventures:
{print} 2.5 + 2.5
13:
story_text: We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two {if}'s but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement needs to be correct.
story_text: We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two {if}'s but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement
needs to be correct.
example_code: |
```
name = {ask} 'what is your name?'
Expand Down Expand Up @@ -2076,7 +2078,8 @@ adventures:
{else} {print} 'Oh no! You are being eaten by a...' monsters {at} {random}
```
9:
story_text: "In this level you can use nesting, which allows you to make the haunted house even more interactive!\n\n### Exercise\nNow it's very hard to win this game, can you make it easier to win?\nChange your code so it only has one wrong door and two correct doors instead of one correct door and two wrong ones? \nTip: This means changing the variable correct_door into wrong_door, and switching the `{if}` and `{else}` code.\nAnd of course you may also change the story and make it your own. Change the monsters or make it a happy game show where you get a gift!\n"
story_text: "In this level you can use nesting, which allows you to make the haunted house even more interactive!\n\n### Exercise\nNow it's very hard to win this game, can you make it easier to win?\nChange your code so it only has one wrong door and two correct doors instead of one correct\
\ door and two wrong ones? \nTip: This means changing the variable correct_door into wrong_door, and switching the `{if}` and `{else}` code.\nAnd of course you may also change the story and make it your own. Change the monsters or make it a happy game show where you get a gift!\n"
example_code: |
```
{print} 'Escape from the Haunted House!'
Expand All @@ -2099,7 +2102,9 @@ adventures:
{print} 'Great! You survived!'
```
11:
story_text: "In this level we've changed the `{for}` command so we can tell the player where they are. \n\n### Exercise 1\nFinish the program so the player knows which room they are in.\n\n### Exercise 2\nMake the program into an adventure by following these steps:\n\n1. Make a list of choices (like: fight or flight)\n2. Make sure the player can choose an option with `{ask}`\n3. Is answer correct? Then they may proceed to the next monster. Do they give a wrong answer? Let the player know with a `{print}`. \n\n **(extra)** If you make a wrong choice, a monster is still shown! How could you change that?\n"
story_text: "In this level we've changed the `{for}` command so we can tell the player where they are. \n\n### Exercise 1\nFinish the program so the player knows which room they are in.\n\n### Exercise 2\nMake the program into an adventure by following these steps:\n\n1. Make a list of\
\ choices (like: fight or flight)\n2. Make sure the player can choose an option with `{ask}`\n3. Is answer correct? Then they may proceed to the next monster. Do they give a wrong answer? Let the player know with a `{print}`. \n\n **(extra)** If you make a wrong choice, a monster is\
\ still shown! How could you change that?\n"
example_code: |
```
{print} 'Escape from the Haunted House!'
Expand Down Expand Up @@ -2561,7 +2566,8 @@ adventures:
_
```
6:
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting numbers. \nThen, see if you can compose a song using the numbers.\n"
story_text: "Instead of playing notes, you can also play numbers now. Simply type `{play} 1` for the lowest note, `{play} 70` for the highest note, or anything in between.\n\n### Exercise\n This calls for musical maths! Try out the example code a couple of times with different starting\
\ numbers. \nThen, see if you can compose a song using the numbers.\n"
example_code: |
```
number = {ask} 'Say a starting number between 1 and 67'
Expand Down Expand Up @@ -3359,7 +3365,9 @@ adventures:
{print} 'Enjoy your meal!'
```
9:
story_text: "In this level you can use nesting to make your restaurant more realistic and more fun!\n\n### Exercise\nThe indentation was removed in the example code. \nCan you figure out how much indentation each line needs in order for the code to work properly?\nIf the customer orders pizza, Hedy shouldn't ask what sauce the costumer wants.\n\n**(extra)** A restaurant does not stock all sauces. Make a list of available sauces and give a reply with each order whether you sell it. <br>\n**(extra)** Pizzas have toppings. Ask customers what they want.<br>\n**(extra)** Do customers want a drink? Ask them too! <br> \n"
story_text: "In this level you can use nesting to make your restaurant more realistic and more fun!\n\n### Exercise\nThe indentation was removed in the example code. \nCan you figure out how much indentation each line needs in order for the code to work properly?\nIf the customer orders\
\ pizza, Hedy shouldn't ask what sauce the costumer wants.\n\n**(extra)** A restaurant does not stock all sauces. Make a list of available sauces and give a reply with each order whether you sell it. <br>\n**(extra)** Pizzas have toppings. Ask customers what they want.<br>\n**(extra)**\
\ Do customers want a drink? Ask them too! <br> \n"
example_code: |
```
{print} 'Welcome to Restaurant Chez Hedy!'
Expand Down
Loading

0 comments on commit 7585d79

Please sign in to comment.