Skip to content

Commit

Permalink
Translated using Weblate (Dutch)
Browse files Browse the repository at this point in the history
Currently translated at 98.6% (727 of 737 strings)

Translated using Weblate (English)

Currently translated at 99.3% (732 of 737 strings)

Co-authored-by: Mark Giesen <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/en/
Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/nl/
Translation: Hedy/Adventures
  • Loading branch information
Mark-Giesen authored and weblate committed Apr 26, 2024
1 parent 8e849c6 commit 53d0040
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 192 deletions.
32 changes: 18 additions & 14 deletions content/adventures/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1998,9 +1998,9 @@ adventures:
An **argument** is a variable that is used within a function. It is not used outside the function.
For example in this code we've programmed the first verse of the song 'My Bonnie is over the ocean'.
In this example code the argument `place` is used. Place is a variable that is only used in the function, so an argument.
To use `place` we have programmed the line `define song with place`.
When the function is called, computer will replace the argument `place`, with the piece of text after `call song with`.
In this example code the argument 'place' is used. Place is a variable that is only used in the function, so an argument.
To use 'place' we have placed `{with} place` after `{define} song` .
When the function is called, computer will replace the argument 'place', with the piece of text after `{call} song {with}`.
### Exercise
The next verse of this song goes:
Expand Down Expand Up @@ -3515,7 +3515,7 @@ adventures:
Level 7 adds the `{repeat}` command. `{repeat}` can be used to execute one line of code multiple times. Like this:
### Exercise
Play around with the repeat command. Can you make the happy birthday song in only 3 lines of code instead of 4 now?
Play around with the `{repeat}` command. Can you make the happy birthday song in only 3 lines of code instead of 4 now?
example_code: |
```
{repeat} 3 {times} {print} 'Hedy is fun!'
Expand All @@ -3535,18 +3535,20 @@ adventures:
```
9:
story_text: |
Great job! You've reached another new level! In the previous level you've learned to use multiple lines of code in an {if} or {repeat} command. But you can't yet combine the two...
Good news! In this level you will be allowed to put an {if} inside an {if}, or inside a {repeat} command. Putting a block of code inside another block of code is called nesting. ``` Putting a block of code inside another block of code is called nesting.
Great job! You've reached another new level! In the previous level you've learned to use multiple lines of code in an `{if}` or `{repeat}` command.
But you can't yet combine the two...
Good news! In this level you will be allowed to put an `{if}` inside an `{if}`, `{repeat}` inside a `{repeat}` command and in eachother.
Give it a try!
example_code: |
```
answer = {ask} 'Are you ready to learn something new?'
{if} answer {is} yes
{print} 'Great! You can learn to use the repeat command in the if command!'
{print} 'Hooray!'
{print} 'Hooray!'
{print} 'Hooray!'
{else}
{print} 'Maybe you should practice some more in the previous level'
{repeat} 3 {times}
order = {ask} 'What would you like to order?'
{if} order {is} pizza
{print} 'Yammie'
{else}
{print} 'pizza is better!'
```
repeat_command_2:
name: '{repeat} 2'
default_save_name: repeat_command_2
Expand Down Expand Up @@ -3665,6 +3667,8 @@ adventures:
```
4:
story_text: |
In the restaurant you have to use quotation marks too when using the `{print}` or `{ask}` command.
### Exercise
Add the quotation marks to this code to make it work! Be careful: variables should not be in quotation marks.
Then, use the `{clear}` command to only show one line at a time in your output screen.
Expand Down
Loading

0 comments on commit 53d0040

Please sign in to comment.